FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
socket.c File Reference
+ Include dependency graph for socket.c:

Go to the source code of this file.

Functions

__clib_export void clib_socket_tx_add_formatted (clib_socket_t *s, char *fmt,...)
 
static word find_free_port (word sock)
 
static clib_error_tsocket_config (char *config, void *addr, socklen_t *addr_len, u32 ip4_default_address)
 
static clib_error_tdefault_socket_write (clib_socket_t *s)
 
static clib_error_tdefault_socket_read (clib_socket_t *sock, int n_bytes)
 
static clib_error_tdefault_socket_close (clib_socket_t *s)
 
static clib_error_tdefault_socket_sendmsg (clib_socket_t *s, void *msg, int msglen, int fds[], int num_fds)
 
static clib_error_tdefault_socket_recvmsg (clib_socket_t *s, void *msg, int msglen, int fds[], int num_fds)
 
static void socket_init_funcs (clib_socket_t *s)
 
__clib_export clib_error_tclib_socket_init (clib_socket_t *s)
 
__clib_export clib_error_tclib_socket_init_netns (clib_socket_t *s, u8 *namespace)
 
__clib_export clib_error_tclib_socket_accept (clib_socket_t *server, clib_socket_t *client)
 

Function Documentation

◆ clib_socket_accept()

__clib_export clib_error_t* clib_socket_accept ( clib_socket_t server,
clib_socket_t client 
)

Definition at line 593 of file socket.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_socket_init()

__clib_export clib_error_t* clib_socket_init ( clib_socket_t s)

Definition at line 403 of file socket.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_socket_init_netns()

__clib_export clib_error_t* clib_socket_init_netns ( clib_socket_t s,
u8 namespace 
)

Definition at line 557 of file socket.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_socket_tx_add_formatted()

__clib_export void clib_socket_tx_add_formatted ( clib_socket_t s,
char *  fmt,
  ... 
)

Definition at line 65 of file socket.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ default_socket_close()

static clib_error_t* default_socket_close ( clib_socket_t s)
static

Definition at line 287 of file socket.c.

+ Here is the caller graph for this function:

◆ default_socket_read()

static clib_error_t* default_socket_read ( clib_socket_t sock,
int  n_bytes 
)
static

Definition at line 250 of file socket.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ default_socket_recvmsg()

static clib_error_t* default_socket_recvmsg ( clib_socket_t s,
void *  msg,
int  msglen,
int  fds[],
int  num_fds 
)
static

Definition at line 328 of file socket.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ default_socket_sendmsg()

static clib_error_t* default_socket_sendmsg ( clib_socket_t s,
void *  msg,
int  msglen,
int  fds[],
int  num_fds 
)
static

Definition at line 295 of file socket.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ default_socket_write()

static clib_error_t* default_socket_write ( clib_socket_t s)
static

Definition at line 199 of file socket.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_free_port()

static word find_free_port ( word  sock)
static

Definition at line 75 of file socket.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ socket_config()

static clib_error_t* socket_config ( char *  config,
void *  addr,
socklen_t *  addr_len,
u32  ip4_default_address 
)
static

Definition at line 99 of file socket.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ socket_init_funcs()

static void socket_init_funcs ( clib_socket_t s)
static

Definition at line 388 of file socket.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: