FD.io VPP  v18.10-34-gcce845e
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 SOCK_API_REG_HANDLE_BIT   (1<<31)
 
#define foreach_vlib_api_msg
 

Functions

static u32 sock_api_registration_handle (vl_api_registration_t *regp)
 
static u32 socket_api_registration_handle_to_index (u32 reg_index)
 
u8 vl_socket_api_registration_handle_is_valid (u32 reg_handle)
 
void vl_sock_api_dump_clients (vlib_main_t *vm, api_main_t *am)
 
vl_api_registration_tvl_socket_api_client_handle_to_registration (u32 handle)
 
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)
 
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 fds[], int n_fds)
 
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 677 of file socket_api.c.

#define SOCK_API_REG_HANDLE_BIT   (1<<31)

Definition at line 50 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 u32 sock_api_registration_handle ( vl_api_registration_t regp)
static

Definition at line 53 of file socket_api.c.

+ Here is the caller graph for this function:

static u32 socket_api_registration_handle_to_index ( u32  reg_index)
static

Definition at line 60 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 746 of file socket_api.c.

static clib_error_t* socksvr_accept_ready ( clib_file_t uf)
static

Definition at line 398 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 415 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 770 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 378 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 525 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 583 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 425 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 464 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 72 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 683 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  fds[],
int  n_fds 
)

Definition at line 495 of file socket_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

vl_api_registration_t* vl_socket_api_client_handle_to_registration ( u32  handle)

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:

u8 vl_socket_api_registration_handle_is_valid ( u32  reg_handle)

Definition at line 66 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 114 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 365 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 169 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 193 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 207 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 319 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 794 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.