FD.io VPP  v18.07-rc0-415-g6c78436
Vector Packet Processing
socket_api.c File Reference
+ Include dependency graph for socket_api.c:

Go to the source code of this file.

Macros

#define vl_typedefs   /* define message structures */
 
#define vl_print(handle, ...)   vlib_cli_output (handle, __VA_ARGS__)
 
#define vl_printfun
 
#define vl_endianfun
 
#define foreach_vlib_api_msg
 

Functions

void vl_sock_api_dump_clients (vlib_main_t *vm, api_main_t *am)
 
void vl_socket_api_send (vl_api_registration_t *rp, u8 *elem)
 
void vl_socket_free_registration_index (u32 pool_index)
 
void vl_socket_process_api_msg (clib_file_t *uf, vl_api_registration_t *rp, i8 *input_v)
 
clib_error_tvl_socket_read_ready (clib_file_t *uf)
 
void vl_socket_add_pending_output (clib_file_t *uf, vl_api_registration_t *rp, u8 *buffer, uword buffer_bytes)
 
void vl_socket_add_pending_output_no_flush (clib_file_t *uf, vl_api_registration_t *rp, u8 *buffer, uword buffer_bytes)
 
static void socket_del_pending_output (clib_file_t *uf, vl_api_registration_t *rp, uword n_bytes)
 
clib_error_tvl_socket_write_ready (clib_file_t *uf)
 
clib_error_tvl_socket_error_ready (clib_file_t *uf)
 
void socksvr_file_add (clib_file_main_t *fm, int fd)
 
static clib_error_tsocksvr_accept_ready (clib_file_t *uf)
 
static clib_error_tsocksvr_bogus_write (clib_file_t *uf)
 
void vl_api_sockclnt_create_t_handler (vl_api_sockclnt_create_t *mp)
 
void vl_api_sockclnt_delete_t_handler (vl_api_sockclnt_delete_t *mp)
 
clib_error_tvl_sock_api_send_fd_msg (int socket_fd, int fd_to_share)
 
vl_api_shm_elem_config_tvl_api_make_shm_config (vl_api_sock_init_shm_t *mp)
 
void vl_api_sock_init_shm_t_handler (vl_api_sock_init_shm_t *mp)
 
clib_error_tvl_sock_api_init (vlib_main_t *vm)
 
static clib_error_tsocket_exit (vlib_main_t *vm)
 
static clib_error_tsocksvr_config (vlib_main_t *vm, unformat_input_t *input)
 
clib_error_tvlibsocket_init (vlib_main_t *vm)
 

Variables

socket_main_t socket_main
 

Macro Definition Documentation

#define foreach_vlib_api_msg
Value:
_(SOCKCLNT_CREATE, sockclnt_create) \
_(SOCKCLNT_DELETE, sockclnt_delete) \
_(SOCK_INIT_SHM, sock_init_shm)

Definition at line 635 of file socket_api.c.

#define vl_endianfun

Definition at line 44 of file socket_api.c.

#define vl_print (   handle,
  ... 
)    vlib_cli_output (handle, __VA_ARGS__)

Definition at line 38 of file socket_api.c.

#define vl_printfun

Definition at line 39 of file socket_api.c.

#define vl_typedefs   /* define message structures */

Definition at line 33 of file socket_api.c.

Function Documentation

static void socket_del_pending_output ( clib_file_t uf,
vl_api_registration_t rp,
uword  n_bytes 
)
static

Definition at line 295 of file socket_api.c.

+ Here is the caller graph for this function:

static clib_error_t* socket_exit ( vlib_main_t vm)
static

Definition at line 704 of file socket_api.c.

static clib_error_t* socksvr_accept_ready ( clib_file_t uf)
static

Definition at line 373 of file socket_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* socksvr_bogus_write ( clib_file_t uf)
static

Definition at line 390 of file socket_api.c.

+ Here is the caller graph for this function:

static clib_error_t* socksvr_config ( vlib_main_t vm,
unformat_input_t input 
)
static

Definition at line 728 of file socket_api.c.

+ Here is the call graph for this function:

void socksvr_file_add ( clib_file_main_t fm,
int  fd 
)

Definition at line 353 of file socket_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

vl_api_shm_elem_config_t* vl_api_make_shm_config ( vl_api_sock_init_shm_t mp)

Definition at line 482 of file socket_api.c.

+ Here is the caller graph for this function:

void vl_api_sock_init_shm_t_handler ( vl_api_sock_init_shm_t mp)

Definition at line 540 of file socket_api.c.

+ Here is the call graph for this function:

void vl_api_sockclnt_create_t_handler ( vl_api_sockclnt_create_t mp)

Definition at line 400 of file socket_api.c.

+ Here is the call graph for this function:

void vl_api_sockclnt_delete_t_handler ( vl_api_sockclnt_delete_t mp)

Definition at line 426 of file socket_api.c.

+ Here is the call graph for this function:

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_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 ( clib_file_t uf,
vl_api_registration_t rp,
u8 buffer,
uword  buffer_bytes 
)

Definition at line 270 of file socket_api.c.

+ Here is the caller graph for this function:

void vl_socket_add_pending_output_no_flush ( clib_file_t uf,
vl_api_registration_t 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.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vl_socket_error_ready ( clib_file_t uf)

Definition at line 340 of file socket_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 ( clib_file_t uf)

Definition at line 158 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_write_ready ( clib_file_t uf)

Definition at line 311 of file socket_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vlibsocket_init ( vlib_main_t vm)

Definition at line 752 of file socket_api.c.

+ Here is the caller graph for this function:

Variable Documentation

socket_main_t socket_main

Definition at line 48 of file socket_api.c.