FD.io VPP  v17.04-9-g99c0734
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_socket_api_send_with_data (vl_api_registration_t *rp, u8 *elem, u8 *data_vector)
 
static void vl_socket_api_send_with_length_internal (vl_api_registration_t *rp, u8 *elem, u32 msg_length, int free)
 
void vl_socket_api_send_with_length (vl_api_registration_t *rp, u8 *elem, u32 msg_length)
 
void vl_socket_api_send_with_length_no_free (vl_api_registration_t *rp, u8 *elem, u32 msg_length)
 
void vl_free_socket_registration_index (u32 pool_index)
 
static void socket_process_msg (unix_file_t *uf, vl_api_registration_t *rp, i8 *input_v)
 
clib_error_tvl_socket_read_ready (unix_file_t *uf)
 
void vl_socket_add_pending_output (unix_file_t *uf, vl_api_registration_t *rp, u8 *buffer, uword buffer_bytes)
 
static void socket_del_pending_output (unix_file_t *uf, vl_api_registration_t *rp, uword n_bytes)
 
clib_error_tvl_socket_write_ready (unix_file_t *uf)
 
clib_error_tvl_socket_error_ready (unix_file_t *uf)
 
void socksvr_file_add (unix_main_t *um, int fd)
 
static clib_error_tsocksvr_accept_ready (unix_file_t *uf)
 
static clib_error_tsocksvr_bogus_write (unix_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_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)
 
void socksvr_set_port (u16 port)
 
void socksvr_set_bind_address (u32 bind_address)
 
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)

Definition at line 538 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 52 of file socksvr_vlib.c.

+ Here is the call graph for this function:

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

Definition at line 372 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 633 of file socksvr_vlib.c.

static void socket_process_msg ( unix_file_t uf,
vl_api_registration_t rp,
i8 input_v 
)
inlinestatic

Definition at line 234 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_accept_ready ( unix_file_t uf)
static

Definition at line 451 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_api_init ( vlib_main_t vm)
static

Definition at line 543 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 ( unix_file_t uf)
static

Definition at line 476 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 657 of file socksvr_vlib.c.

+ Here is the call graph for this function:

void socksvr_file_add ( unix_main_t um,
int  fd 
)

Definition at line 431 of file socksvr_vlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void socksvr_set_bind_address ( u32  bind_address)

Definition at line 687 of file socksvr_vlib.c.

void socksvr_set_port ( u16  port)

Definition at line 680 of file socksvr_vlib.c.

void vl_api_sockclnt_create_t_handler ( vl_api_sockclnt_create_t mp)

Definition at line 486 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 512 of file socksvr_vlib.c.

+ Here is the call graph for this function:

void vl_free_socket_registration_index ( u32  pool_index)

Definition at line 215 of file socksvr_vlib.c.

+ Here is the caller graph for this function:

void vl_socket_add_pending_output ( unix_file_t uf,
vl_api_registration_t rp,
u8 buffer,
uword  buffer_bytes 
)

Definition at line 355 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 81 of file socksvr_vlib.c.

+ Here is the call graph for this function:

void vl_socket_api_send_with_data ( vl_api_registration_t rp,
u8 elem,
u8 data_vector 
)

Definition at line 116 of file socksvr_vlib.c.

+ Here is the call graph for this function:

void vl_socket_api_send_with_length ( vl_api_registration_t rp,
u8 elem,
u32  msg_length 
)

Definition at line 199 of file socksvr_vlib.c.

+ Here is the call graph for this function:

static void vl_socket_api_send_with_length_internal ( vl_api_registration_t rp,
u8 elem,
u32  msg_length,
int  free 
)
inlinestatic

Definition at line 161 of file socksvr_vlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vl_socket_api_send_with_length_no_free ( vl_api_registration_t rp,
u8 elem,
u32  msg_length 
)

Definition at line 207 of file socksvr_vlib.c.

+ Here is the call graph for this function:

clib_error_t* vl_socket_error_ready ( unix_file_t uf)

Definition at line 418 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 ( unix_file_t uf)

Definition at line 246 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 ( unix_file_t uf)

Definition at line 388 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 693 of file socksvr_vlib.c.

Variable Documentation

socket_main_t socket_main

Definition at line 49 of file socksvr_vlib.c.