FD.io VPP  v18.07-34-g55fbdb9
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"
 

Functions

void vl_socket_free_registration_index (u32 pool_index)
 
clib_error_tvl_socket_read_ready (struct clib_file *uf)
 
void vl_socket_add_pending_output (struct clib_file *uf, struct vl_api_registration_ *rp, u8 *buffer, uword buffer_bytes)
 
void vl_socket_add_pending_output_no_flush (struct clib_file *uf, struct vl_api_registration_ *rp, u8 *buffer, uword buffer_bytes)
 
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 (clib_file_t *uf, 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 fd_to_share)
 
clib_error_tvl_sock_api_recv_fd_msg (int socket_fd, int *fd_to_share, u32 wait)
 

Variables

socket_main_t socket_main
 

Macro Definition Documentation

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

Definition at line 25 of file socket_api.h.

Function Documentation

void vl_sock_api_dump_clients ( vlib_main_t vm,
api_main_t am 
)

Definition at line 51 of file socket_api.c.

+ Here is the call graph for this function:

clib_error_t* vl_sock_api_init ( vlib_main_t vm)

Definition at line 641 of file socket_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vl_sock_api_recv_fd_msg ( int  socket_fd,
int *  fd_to_share,
u32  wait 
)

Definition at line 180 of file socket_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vl_sock_api_send_fd_msg ( int  socket_fd,
int  fd_to_share 
)

Definition at line 452 of file socket_api.c.

+ Here is the caller graph for this function:

void vl_socket_add_pending_output ( struct clib_file uf,
struct vl_api_registration_ rp,
u8 buffer,
uword  buffer_bytes 
)

Definition at line 270 of file socket_api.c.

void vl_socket_add_pending_output_no_flush ( struct clib_file uf,
struct vl_api_registration_ rp,
u8 buffer,
uword  buffer_bytes 
)

Definition at line 287 of file socket_api.c.

+ Here is the caller graph for this function:

void vl_socket_api_send ( vl_api_registration_t rp,
u8 elem 
)

Definition at line 78 of file socket_api.c.

void vl_socket_free_registration_index ( u32  pool_index)

Definition at line 120 of file socket_api.c.

+ Here is the caller graph for this function:

void vl_socket_process_api_msg ( clib_file_t uf,
vl_api_registration_t rp,
i8 input_v 
)

Definition at line 144 of file socket_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vl_socket_read_ready ( struct clib_file uf)

Definition at line 158 of file socket_api.c.

clib_error_t* vl_socket_write_ready ( struct clib_file uf)

Definition at line 311 of file socket_api.c.

Variable Documentation

socket_main_t socket_main

Definition at line 48 of file socket_api.c.