FD.io VPP  v18.01.2-1-g9b554f3
Vector Packet Processing
socksvr_vlib.c File Reference
+ Include dependency graph for socksvr_vlib.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 dump_socket_clients (vlib_main_t *vm, api_main_t *am)
 
void vl_socket_api_send (vl_api_registration_t *rp, u8 *elem)
 
void vl_free_socket_registration_index (u32 pool_index)
 
void vl_api_socket_process_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)
 
static clib_error_tsend_fd_msg (int socket_fd, int fd_to_share)
 
void vl_api_memfd_segment_create_t_handler (vl_api_memfd_segment_create_t *mp)
 
clib_error_tsocksvr_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)
 

Macro Definition Documentation

#define foreach_vlib_api_msg
Value:
_(SOCKCLNT_CREATE, sockclnt_create) \
_(SOCKCLNT_DELETE, sockclnt_delete) \
_(MEMFD_SEGMENT_CREATE, memfd_segment_create)

Definition at line 580 of file socksvr_vlib.c.

#define vl_endianfun

Definition at line 45 of file socksvr_vlib.c.

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

Definition at line 39 of file socksvr_vlib.c.

#define vl_printfun

Definition at line 40 of file socksvr_vlib.c.

#define vl_typedefs   /* define message structures */

Definition at line 34 of file socksvr_vlib.c.

Function Documentation

void dump_socket_clients ( vlib_main_t vm,
api_main_t am 
)

Definition at line 50 of file socksvr_vlib.c.

+ Here is the call graph for this function:

static clib_error_t* send_fd_msg ( int  socket_fd,
int  fd_to_share 
)
static

Definition at line 454 of file socksvr_vlib.c.

+ Here is the caller graph for this function:

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

Definition at line 294 of file socksvr_vlib.c.

+ Here is the caller graph for this function:

static clib_error_t* socket_exit ( vlib_main_t vm)
static

Definition at line 657 of file socksvr_vlib.c.

static clib_error_t* socksvr_accept_ready ( clib_file_t uf)
static

Definition at line 373 of file socksvr_vlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* socksvr_api_init ( vlib_main_t vm)

Definition at line 586 of file socksvr_vlib.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 391 of file socksvr_vlib.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 682 of file socksvr_vlib.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 socksvr_vlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vl_api_memfd_segment_create_t_handler ( vl_api_memfd_segment_create_t mp)

Definition at line 487 of file socksvr_vlib.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 401 of file socksvr_vlib.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 427 of file socksvr_vlib.c.

+ Here is the call graph for this function:

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

Definition at line 143 of file socksvr_vlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vl_free_socket_registration_index ( u32  pool_index)

Definition at line 119 of file socksvr_vlib.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 269 of file socksvr_vlib.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 286 of file socksvr_vlib.c.

+ Here is the caller graph for this function:

void vl_socket_api_send ( vl_api_registration_t rp,
u8 elem 
)

Definition at line 79 of file socksvr_vlib.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 socksvr_vlib.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 157 of file socksvr_vlib.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 310 of file socksvr_vlib.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 706 of file socksvr_vlib.c.

+ Here is the caller graph for this function: