FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
socket_api.h File Reference
+ Include dependency graph for socket_api.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  vl_socket_args_for_process_t
 
struct  socket_main_t
 

Macros

#define API_SOCKET_FILE   "/run/vpp/api.sock"
 
#define API_SOCKET_FILENAME   "api.sock"
 

Functions

static vl_api_registration_tvl_socket_get_registration (u32 reg_index)
 
void vl_socket_free_registration_index (u32 pool_index)
 
clib_error_tvl_socket_read_ready (struct clib_file *uf)
 
clib_error_tvl_socket_write_ready (struct clib_file *uf)
 
void vl_socket_api_send (vl_api_registration_t *rp, u8 *elem)
 
void vl_socket_process_api_msg (vl_api_registration_t *rp, i8 *input_v)
 
void vl_sock_api_dump_clients (vlib_main_t *vm, api_main_t *am)
 
clib_error_tvl_sock_api_init (vlib_main_t *vm)
 
clib_error_tvl_sock_api_send_fd_msg (int socket_fd, int fds[], int n_fds)
 
clib_error_tvl_sock_api_recv_fd_msg (int socket_fd, int fds[], int n_fds, u32 wait)
 
vl_api_registration_tvl_socket_api_client_handle_to_registration (u32 idx)
 
u8 vl_socket_api_registration_handle_is_valid (u32 reg_index)
 

Variables

socket_main_t socket_main
 

Macro Definition Documentation

◆ API_SOCKET_FILE

#define API_SOCKET_FILE   "/run/vpp/api.sock"

Definition at line 26 of file socket_api.h.

◆ API_SOCKET_FILENAME

#define API_SOCKET_FILENAME   "api.sock"

Definition at line 28 of file socket_api.h.

Function Documentation

◆ vl_sock_api_dump_clients()

void vl_sock_api_dump_clients ( vlib_main_t vm,
api_main_t am 
)

Definition at line 72 of file socket_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_sock_api_init()

clib_error_t* vl_sock_api_init ( vlib_main_t vm)

Definition at line 774 of file socket_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_sock_api_recv_fd_msg()

clib_error_t* vl_sock_api_recv_fd_msg ( int  socket_fd,
int  fds[],
int  n_fds,
u32  wait 
)

Definition at line 332 of file socket_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_sock_api_send_fd_msg()

clib_error_t* vl_sock_api_send_fd_msg ( int  socket_fd,
int  fds[],
int  n_fds 
)

Definition at line 559 of file socket_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_socket_api_client_handle_to_registration()

vl_api_registration_t* vl_socket_api_client_handle_to_registration ( u32  idx)

Definition at line 99 of file socket_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_socket_api_registration_handle_is_valid()

u8 vl_socket_api_registration_handle_is_valid ( u32  reg_index)

Definition at line 66 of file socket_api.c.

+ Here is the caller graph for this function:

◆ vl_socket_api_send()

void vl_socket_api_send ( vl_api_registration_t rp,
u8 elem 
)

Definition at line 114 of file socket_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_socket_free_registration_index()

void vl_socket_free_registration_index ( u32  pool_index)

Definition at line 169 of file socket_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_socket_get_registration()

static vl_api_registration_t* vl_socket_get_registration ( u32  reg_index)
inlinestatic

Definition at line 68 of file socket_api.h.

+ Here is the caller graph for this function:

◆ vl_socket_process_api_msg()

void vl_socket_process_api_msg ( vl_api_registration_t rp,
i8 input_v 
)

Definition at line 197 of file socket_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_socket_read_ready()

clib_error_t* vl_socket_read_ready ( struct clib_file uf)

Definition at line 260 of file socket_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_socket_write_ready()

clib_error_t* vl_socket_write_ready ( struct clib_file uf)

Definition at line 380 of file socket_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ socket_main

socket_main_t socket_main

Definition at line 48 of file socket_api.c.