FD.io VPP  v18.01.2-1-g9b554f3
Vector Packet Processing
application.h File Reference
+ Include dependency graph for application.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define APP_INVALID_INDEX   ((u32)~0)
 
#define APP_DROP_INDEX   (((u32)~0) - 1)
 
#define APP_NS_INVALID_INDEX   ((u32)~0)
 
#define APP_INVALID_SEGMENT_MANAGER_INDEX   ((u32) ~0)
 

Typedefs

typedef struct _stream_session_cb_vft session_cb_vft_t
 
typedef struct _application application_t
 

Enumerations

enum  application_type_t { APP_SERVER, APP_CLIENT, APP_N_TYPES }
 

Functions

application_tapplication_new ()
 
int application_init (application_t *app, u32 api_client_index, u64 *options, session_cb_vft_t *cb_fns)
 
void application_del (application_t *app)
 
application_tapplication_get (u32 index)
 
application_tapplication_get_if_valid (u32 index)
 
application_tapplication_lookup (u32 api_client_index)
 
u32 application_get_index (application_t *app)
 
int application_start_listen (application_t *app, session_endpoint_t *tep, u64 *handle)
 Start listening local transport endpoint for requested transport. More...
 
int application_stop_listen (application_t *srv, u64 handle)
 Stop listening on session associated to handle. More...
 
int application_open_session (application_t *app, session_endpoint_t *tep, u32 api_context)
 
int application_api_queue_is_full (application_t *app)
 
segment_manager_tapplication_get_listen_segment_manager (application_t *app, stream_session_t *s)
 
segment_manager_tapplication_get_connect_segment_manager (application_t *app)
 
int application_is_proxy (application_t *app)
 
int application_is_builtin (application_t *app)
 
int application_is_builtin_proxy (application_t *app)
 
int application_add_segment_notify (u32 app_index, u32 fifo_segment_index)
 
u32 application_session_table (application_t *app, u8 fib_proto)
 
u32 application_local_session_table (application_t *app)
 
u8application_name_from_index (u32 app_index)
 Returns app name. More...
 
u8 application_has_local_scope (application_t *app)
 
u8 application_has_global_scope (application_t *app)
 
u32 application_n_listeners (application_t *app)
 
stream_session_tapplication_first_listener (application_t *app, u8 fib_proto, u8 transport_proto)
 
void application_setup_proxy (application_t *app)
 
void application_remove_proxy (application_t *app)
 

Macro Definition Documentation

#define APP_DROP_INDEX   (((u32)~0) - 1)

Definition at line 106 of file application.h.

#define APP_INVALID_INDEX   ((u32)~0)

Definition at line 105 of file application.h.

#define APP_INVALID_SEGMENT_MANAGER_INDEX   ((u32) ~0)

Definition at line 108 of file application.h.

#define APP_NS_INVALID_INDEX   ((u32)~0)

Definition at line 107 of file application.h.

Typedef Documentation

typedef struct _application application_t
typedef struct _stream_session_cb_vft session_cb_vft_t

Enumeration Type Documentation

Enumerator
APP_SERVER 
APP_CLIENT 
APP_N_TYPES 

Definition at line 23 of file application.h.

Function Documentation

int application_add_segment_notify ( u32  app_index,
u32  fifo_segment_index 
)

Definition at line 478 of file application.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int application_api_queue_is_full ( application_t app)

Definition at line 77 of file application.c.

+ Here is the call graph for this function:

void application_del ( application_t app)

Definition at line 147 of file application.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

stream_session_t* application_first_listener ( application_t app,
u8  fib_proto,
u8  transport_proto 
)

Definition at line 511 of file application.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

application_t* application_get ( u32  index)

Definition at line 297 of file application.c.

+ Here is the caller graph for this function:

segment_manager_t* application_get_connect_segment_manager ( application_t app)

Definition at line 443 of file application.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

application_t* application_get_if_valid ( u32  index)

Definition at line 305 of file application.c.

+ Here is the caller graph for this function:

u32 application_get_index ( application_t app)

Definition at line 314 of file application.c.

+ Here is the caller graph for this function:

segment_manager_t* application_get_listen_segment_manager ( application_t app,
stream_session_t s 
)

Definition at line 450 of file application.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8 application_has_global_scope ( application_t app)

Definition at line 499 of file application.c.

+ Here is the caller graph for this function:

u8 application_has_local_scope ( application_t app)

Definition at line 493 of file application.c.

+ Here is the caller graph for this function:

int application_init ( application_t app,
u32  api_client_index,
u64 options,
session_cb_vft_t cb_fns 
)

Definition at line 231 of file application.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int application_is_builtin ( application_t app)

Definition at line 466 of file application.c.

+ Here is the caller graph for this function:

int application_is_builtin_proxy ( application_t app)

Definition at line 472 of file application.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int application_is_proxy ( application_t app)

Definition at line 460 of file application.c.

+ Here is the caller graph for this function:

u32 application_local_session_table ( application_t app)

Definition at line 67 of file application.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

application_t* application_lookup ( u32  api_client_index)

Definition at line 122 of file application.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 application_n_listeners ( application_t app)

Definition at line 505 of file application.c.

+ Here is the call graph for this function:

u8* application_name_from_index ( u32  app_index)

Returns app name.

Since the name is not stored per app, we generate it on the fly. It is the caller's responsibility to free the vector

Definition at line 101 of file application.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

application_t* application_new ( )

Definition at line 133 of file application.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int application_open_session ( application_t app,
session_endpoint_t tep,
u32  api_context 
)

Definition at line 421 of file application.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void application_remove_proxy ( application_t app)

Definition at line 670 of file application.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 application_session_table ( application_t app,
u8  fib_proto 
)

Definition at line 52 of file application.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void application_setup_proxy ( application_t app)

Definition at line 652 of file application.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int application_start_listen ( application_t srv,
session_endpoint_t sep,
u64 res 
)

Start listening local transport endpoint for requested transport.

Creates a 'dummy' stream session with state LISTENING to be used in session lookups, prior to establishing connection. Requests transport to build it's own specific listening connection.

Definition at line 347 of file application.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int application_stop_listen ( application_t srv,
u64  handle 
)

Stop listening on session associated to handle.

Definition at line 385 of file application.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: