FD.io VPP  v17.04-9-g99c0734
Vector Packet Processing
application_interface.c File Reference

VPP's application/session API bind/unbind/connect/disconnect calls. More...

+ Include dependency graph for application_interface.c:

Go to the source code of this file.

Functions

static u8 ip_is_zero (ip46_address_t *ip46_address, u8 is_ip4)
 
static u8 ip_is_local (ip46_address_t *ip46_address, u8 is_ip4)
 
int api_parse_session_handle (u64 handle, u32 *session_index, u32 *thread_index)
 
int vnet_bind_i (u32 api_client_index, ip46_address_t *ip46, u16 port_host_order, session_type_t sst, u64 *options, session_cb_vft_t *cb_fns, application_t **app, u32 *len_seg_name, char *seg_name)
 
int vnet_unbind_i (u32 api_client_index)
 
int vnet_connect_i (u32 api_client_index, u32 api_context, session_type_t sst, ip46_address_t *ip46, u16 port, u64 *options, void *mp, session_cb_vft_t *cb_fns)
 
uword unformat_vnet_uri (unformat_input_t *input, va_list *args)
 unformat a vnet URI More...
 
int parse_uri (char *uri, session_type_t *sst, ip46_address_t *addr, u16 *port_number_host_byte_order)
 
int vnet_bind_uri (vnet_bind_args_t *a)
 
session_type_t session_type_from_proto_and_ip (session_api_proto_t proto, u8 is_ip4)
 
int vnet_unbind_uri (char *uri, u32 api_client_index)
 
int vnet_connect_uri (vnet_connect_args_t *a)
 
int vnet_disconnect_session (u32 session_index, u32 thread_index)
 
int vnet_bind (vnet_bind_args_t *a)
 
int vnet_unbind (vnet_unbind_args_t *a)
 
int vnet_connect (vnet_connect_args_t *a)
 
int vnet_disconnect (vnet_disconnect_args_t *a)
 

Detailed Description

VPP's application/session API bind/unbind/connect/disconnect calls.

Definition in file application_interface.c.

Function Documentation

int api_parse_session_handle ( u64  handle,
u32 session_index,
u32 thread_index 
)

Definition at line 62 of file application_interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8 ip_is_local ( ip46_address_t *  ip46_address,
u8  is_ip4 
)
static

Definition at line 36 of file application_interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8 ip_is_zero ( ip46_address_t *  ip46_address,
u8  is_ip4 
)
static

Definition at line 27 of file application_interface.c.

+ Here is the caller graph for this function:

int parse_uri ( char *  uri,
session_type_t sst,
ip46_address_t *  addr,
u16 port_number_host_byte_order 
)

Definition at line 245 of file application_interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

session_type_t session_type_from_proto_and_ip ( session_api_proto_t  proto,
u8  is_ip4 
)

Definition at line 290 of file application_interface.c.

+ Here is the caller graph for this function:

uword unformat_vnet_uri ( unformat_input_t input,
va_list *  args 
)

unformat a vnet URI

fifo://name tcp://ip46-addr:port udp://ip46-addr:port

u8 ip46_address[16]; u16 port_in_host_byte_order; stream_session_type_t sst; u8 *fifo_name;

if (unformat (input, "%U", unformat_vnet_uri(), &ip46_address, &sst, &port, &fifo_name)) etc...

Definition at line 210 of file application_interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_bind ( vnet_bind_args_t a)

Definition at line 379 of file application_interface.c.

+ Here is the call graph for this function:

int vnet_bind_i ( u32  api_client_index,
ip46_address_t *  ip46,
u16  port_host_order,
session_type_t  sst,
u64 options,
session_cb_vft_t cb_fns,
application_t **  app,
u32 len_seg_name,
char *  seg_name 
)

Definition at line 82 of file application_interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_bind_uri ( vnet_bind_args_t a)

Definition at line 267 of file application_interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_connect ( vnet_connect_args_t a)

Definition at line 415 of file application_interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_connect_i ( u32  api_client_index,
u32  api_context,
session_type_t  sst,
ip46_address_t *  ip46,
u16  port,
u64 options,
void *  mp,
session_cb_vft_t cb_fns 
)

Definition at line 154 of file application_interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_connect_uri ( vnet_connect_args_t a)

Definition at line 341 of file application_interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_disconnect ( vnet_disconnect_args_t a)

Definition at line 433 of file application_interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_disconnect_session ( u32  session_index,
u32  thread_index 
)

Definition at line 367 of file application_interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_unbind ( vnet_unbind_args_t a)

Definition at line 397 of file application_interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_unbind_i ( u32  api_client_index)

Definition at line 135 of file application_interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_unbind_uri ( char *  uri,
u32  api_client_index 
)

Definition at line 311 of file application_interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: