FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
socket.c File Reference
+ Include dependency graph for socket.c:

Go to the source code of this file.

Functions

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_error_tclib_socket_init (clib_socket_t *s)
 
clib_error_tclib_socket_accept (clib_socket_t *server, clib_socket_t *client)
 

Function Documentation

◆ clib_socket_accept()

clib_error_t* clib_socket_accept ( clib_socket_t server,
clib_socket_t client 
)

Definition at line 524 of file socket.c.

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

◆ clib_socket_init()

clib_error_t* clib_socket_init ( clib_socket_t s)

Definition at line 384 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()

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

Definition at line 58 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 268 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 231 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 309 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 276 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 180 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 68 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 92 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 369 of file socket.c.

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