FD.io VPP  v21.06-3-gbb25fbf28
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_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 542 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 390 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 64 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 274 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 237 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 315 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 282 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 186 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 74 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 98 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 375 of file socket.c.

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