FD.io VPP  v17.10-9-gd594711
Vector Packet Processing
application_interface.h File Reference
+ Include dependency graph for application_interface.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define foreach_app_options_flags
 
#define VNET_CONNECT_REDIRECTED   123
 Server can handle delegated connect requests from local clients. More...
 

Typedefs

typedef struct _vnet_app_attach_args_t vnet_app_attach_args_t
 
typedef struct _vnet_app_detach_args_t vnet_app_detach_args_t
 
typedef struct _vnet_bind_args_t vnet_bind_args_t
 
typedef struct _vnet_unbind_args_t vnet_unbind_args_t
 
typedef struct _vnet_connect_args vnet_connect_args_t
 
typedef struct _vnet_disconnect_args_t vnet_disconnect_args_t
 
typedef enum _app_options app_options_t
 
typedef enum _app_options_flags app_options_flags_t
 

Enumerations

enum  app_attach_options_index_t {
  APP_EVT_QUEUE_SIZE, APP_OPTIONS_FLAGS, APP_OPTIONS_PREALLOC_FIFO_PAIRS, APP_OPTIONS_PRIVATE_SEGMENT_COUNT,
  APP_OPTIONS_PRIVATE_SEGMENT_SIZE, SESSION_OPTIONS_SEGMENT_SIZE, SESSION_OPTIONS_ADD_SEGMENT_SIZE, SESSION_OPTIONS_RX_FIFO_SIZE,
  SESSION_OPTIONS_TX_FIFO_SIZE, SESSION_OPTIONS_PREALLOCATED_FIFO_PAIRS, SESSION_OPTIONS_ACCEPT_COOKIE, SESSION_OPTIONS_N_OPTIONS
}
 

Functions

int vnet_application_attach (vnet_app_attach_args_t *a)
 Attaches application. More...
 
int vnet_application_detach (vnet_app_detach_args_t *a)
 
int vnet_bind_uri (vnet_bind_args_t *)
 
int vnet_unbind_uri (vnet_unbind_args_t *a)
 
int vnet_connect_uri (vnet_connect_args_t *a)
 
int vnet_disconnect_session (vnet_disconnect_args_t *a)
 
int vnet_bind (vnet_bind_args_t *a)
 
int vnet_connect (vnet_connect_args_t *a)
 
int vnet_unbind (vnet_unbind_args_t *a)
 
int api_parse_session_handle (u64 handle, u32 *session_index, u32 *thread_index)
 

Macro Definition Documentation

foreach_app_options_flags
Value:
_(USE_FIFO, "Use FIFO with redirects") \
_(ADD_SEGMENT, "Add segment and signal app if needed") \
_(BUILTIN_APP, "Application is builtin") \
_(IS_PROXY, "Application is proxying")

Definition at line 131 of file application_interface.h.

#define VNET_CONNECT_REDIRECTED   123

Server can handle delegated connect requests from local clients.

Server wants vpp to add segments when out of memory for fifos

Definition at line 157 of file application_interface.h.

Typedef Documentation

typedef enum _app_options_flags app_options_flags_t
typedef enum _app_options app_options_t
typedef struct _vnet_app_attach_args_t vnet_app_attach_args_t
typedef struct _vnet_app_detach_args_t vnet_app_detach_args_t
typedef struct _vnet_bind_args_t vnet_bind_args_t
typedef struct _vnet_connect_args vnet_connect_args_t
typedef struct _vnet_disconnect_args_t vnet_disconnect_args_t
typedef struct _vnet_unbind_args_t vnet_unbind_args_t

Enumeration Type Documentation

Enumerator
APP_EVT_QUEUE_SIZE 
APP_OPTIONS_FLAGS 
APP_OPTIONS_PREALLOC_FIFO_PAIRS 
APP_OPTIONS_PRIVATE_SEGMENT_COUNT 
APP_OPTIONS_PRIVATE_SEGMENT_SIZE 
SESSION_OPTIONS_SEGMENT_SIZE 
SESSION_OPTIONS_ADD_SEGMENT_SIZE 
SESSION_OPTIONS_RX_FIFO_SIZE 
SESSION_OPTIONS_TX_FIFO_SIZE 
SESSION_OPTIONS_PREALLOCATED_FIFO_PAIRS 
SESSION_OPTIONS_ACCEPT_COOKIE 
SESSION_OPTIONS_N_OPTIONS 

Definition at line 115 of file application_interface.h.

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:

int vnet_application_attach ( vnet_app_attach_args_t a)

Attaches application.

Allocates a vpp app, i.e., a structure that keeps back pointers to external app and a segment manager for shared memory fifo based communication with the external app.

Definition at line 257 of file application_interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_application_detach ( vnet_app_detach_args_t a)

Definition at line 282 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 373 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 )

Definition at line 298 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 392 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 337 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 ( vnet_disconnect_args_t a)

Definition at line 353 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 386 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 ( vnet_unbind_args_t a)

Definition at line 316 of file application_interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: