34 #define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__) 41 #define foreach_session_api_msg \ 42 _(MAP_ANOTHER_SEGMENT_REPLY, map_another_segment_reply) \ 43 _(APPLICATION_ATTACH, application_attach) \ 44 _(APPLICATION_DETACH, application_detach) \ 45 _(BIND_URI, bind_uri) \ 46 _(UNBIND_URI, unbind_uri) \ 47 _(CONNECT_URI, connect_uri) \ 48 _(DISCONNECT_SESSION, disconnect_session) \ 49 _(DISCONNECT_SESSION_REPLY, disconnect_session_reply) \ 50 _(ACCEPT_SESSION_REPLY, accept_session_reply) \ 51 _(RESET_SESSION_REPLY, reset_session_reply) \ 52 _(BIND_SOCK, bind_sock) \ 53 _(UNBIND_SOCK, unbind_sock) \ 54 _(CONNECT_SOCK, connect_sock) \ 55 _(SESSION_ENABLE_DISABLE, session_enable_disable) \ 56 _(APP_NAMESPACE_ADD_DEL, app_namespace_add_del) \ 57 _(SESSION_RULE_ADD_DEL, session_rule_add_del) \ 58 _(SESSION_RULES_DUMP, session_rules_dump) \ 59 _(APPLICATION_TLS_CERT_ADD, application_tls_cert_add) \ 60 _(APPLICATION_TLS_KEY_ADD, application_tls_key_add) \ 61 _(APP_WORKER_ADD_DEL, app_worker_add_del) \ 104 fd_flags |= SESSION_FD_F_MEMFD_SEGMENT;
110 memset (mp, 0,
sizeof (*mp));
111 mp->_vl_msg_id = clib_host_to_net_u16 (VL_API_MAP_ANOTHER_SEGMENT);
139 memset (mp, 0,
sizeof (*mp));
140 mp->_vl_msg_id = clib_host_to_net_u16 (VL_API_UNMAP_SEGMENT);
151 u32 wrk_map_index,
u64 mq_addr,
167 memset (mp, 0,
sizeof (*mp));
169 clib_host_to_net_u16 (VL_API_APP_CUT_THROUGH_REGISTRATION_ADD);
180 mp->
fd_flags |= SESSION_FD_F_MQ_EVENTFD;
218 memset (mp, 0,
sizeof (*mp));
220 mp->_vl_msg_id = clib_host_to_net_u16 (VL_API_ACCEPT_SESSION);
241 tc = tp_vft->get_connection (s->connection_index, s->thread_index);
242 mp->
port = tc->rmt_port;
298 memset (mp, 0,
sizeof (*mp));
299 mp->_vl_msg_id = clib_host_to_net_u16 (VL_API_DISCONNECT_SESSION);
322 memset (mp, 0,
sizeof (*mp));
323 mp->_vl_msg_id = clib_host_to_net_u16 (VL_API_RESET_SESSION);
349 mp->_vl_msg_id = clib_host_to_net_u16 (VL_API_CONNECT_SESSION_REPLY);
386 clib_host_to_net_u32 (VNET_API_ERROR_SESSION_CONNECT) : 0;
427 session_event_t *evt;
436 memset (evt, 0,
sizeof (*evt));
459 tc = tp_vft->get_connection (s->connection_index, s->thread_index);
460 mp->
port = tc->rmt_port;
514 session_event_t *evt;
522 memset (evt, 0,
sizeof (*evt));
538 session_event_t *evt;
546 memset (evt, 0,
sizeof (*evt));
561 session_event_t *evt;
567 memset (evt, 0,
sizeof (*evt));
583 session_event_t *evt;
599 memset (evt, 0,
sizeof (*evt));
647 clib_host_to_net_u32 (VNET_API_ERROR_SESSION_CONNECT) : 0;
663 session_event_t *evt;
680 memset (evt, 0,
sizeof (*evt));
731 vl_api_session_enable_disable_reply_t *rmp;
756 rv = VNET_API_ERROR_FEATURE_DISABLED;
762 "Out of options, fix api message definition");
764 memset (a, 0,
sizeof (*a));
775 rv = VNET_API_ERROR_INVALID_VALUE;
797 fd_flags |= SESSION_FD_F_VPP_MQ_SEGMENT;
798 fds[n_fds] = evt_q_segment->
fd;
804 fd_flags |= SESSION_FD_F_MEMFD_SEGMENT;
805 fds[n_fds] = a->segment->fd;
810 fd_flags |= SESSION_FD_F_MQ_EVENTFD;
826 memcpy (rmp->segment_name, segp->name, vec_len (segp->name));
827 rmp->segment_name_length = vec_len (segp->name);
843 vl_api_application_detach_reply_t *rmp;
844 int rv = VNET_API_ERROR_INVALID_VALUE_2;
850 rv = VNET_API_ERROR_FEATURE_DISABLED;
879 rv = VNET_API_ERROR_FEATURE_DISABLED;
886 memset (a, 0,
sizeof (*a));
887 a->uri = (
char *) mp->
uri;
893 rv = VNET_API_ERROR_APPLICATION_NOT_ATTACHED;
934 vl_api_unbind_uri_reply_t *rmp;
941 rv = VNET_API_ERROR_FEATURE_DISABLED;
948 a->uri = (
char *) mp->
uri;
954 rv = VNET_API_ERROR_APPLICATION_NOT_ATTACHED;
972 rv = VNET_API_ERROR_FEATURE_DISABLED;
979 memset (a, 0,
sizeof (*a));
980 a->uri = (
char *) mp->
uri;
991 rv = VNET_API_ERROR_APPLICATION_NOT_ATTACHED;
1018 rv = VNET_API_ERROR_FEATURE_DISABLED;
1031 rv = VNET_API_ERROR_APPLICATION_NOT_ATTACHED;
1068 u32 index, thread_index;
1123 clib_warning (
"server %u doesn't own local handle %llu",
1139 if (s->app_wrk_index != mp->
context)
1166 ip46_address_t *ip46;
1171 rv = VNET_API_ERROR_FEATURE_DISABLED;
1178 rv = VNET_API_ERROR_APPLICATION_NOT_ATTACHED;
1182 ip46 = (ip46_address_t *) mp->
ip;
1183 memset (a, 0,
sizeof (*a));
1184 a->sep.is_ip4 = mp->
is_ip4;
1186 a->sep.port = mp->
port;
1187 a->sep.fib_index = mp->
vrf;
1189 a->sep.transport_proto = mp->
proto;
1236 vl_api_unbind_sock_reply_t *rmp;
1244 rv = VNET_API_ERROR_FEATURE_DISABLED;
1276 rv = VNET_API_ERROR_FEATURE_DISABLED;
1284 ip46_address_t *ip46 = (ip46_address_t *) mp->
ip;
1286 memset (a, 0,
sizeof (*a));
1289 a->sep.is_ip4 = mp->
is_ip4;
1291 a->sep.port = mp->
port;
1292 a->sep.transport_proto = mp->
proto;
1293 a->sep.fib_index = mp->
vrf;
1312 rv = VNET_API_ERROR_APPLICATION_NOT_ATTACHED;
1342 rv = VNET_API_ERROR_FEATURE_DISABLED;
1353 rv = VNET_API_ERROR_INVALID_VALUE;
1359 .wrk_index = clib_net_to_host_u32 (mp->
wrk_index),
1376 fd_flags |= SESSION_FD_F_MEMFD_SEGMENT;
1377 fds[n_fds] = args.segment->fd;
1382 fd_flags |= SESSION_FD_F_MQ_EVENTFD;
1391 rmp->
wrk_index = clib_host_to_net_u32 (args.wrk_index);
1394 if (
vec_len (args.segment->name))
1397 vec_len (args.segment->name));
1416 u32 appns_index = 0;
1421 rv = VNET_API_ERROR_FEATURE_DISABLED;
1427 rv = VNET_API_ERROR_INVALID_VALUE;
1435 .secret = clib_net_to_host_u64 (mp->
secret),
1436 .sw_if_index = clib_net_to_host_u32 (mp->
sw_if_index),
1437 .ip4_fib_id = clib_net_to_host_u32 (mp->
ip4_fib_id),
1438 .ip6_fib_id = clib_net_to_host_u32 (mp->
ip6_fib_id),
1453 rv = VNET_API_ERROR_UNSPECIFIED;
1462 rmp->
appns_index = clib_host_to_net_u32 (appns_index);
1470 vl_api_session_rule_add_del_reply_t *rmp;
1477 memset (&args, 0,
sizeof (args));
1480 table_args->lcl.fp_len = mp->
lcl_plen;
1481 table_args->lcl.fp_proto = fib_proto;
1482 table_args->rmt.fp_len = mp->
rmt_plen;
1483 table_args->rmt.fp_proto = fib_proto;
1484 table_args->lcl_port = mp->
lcl_port;
1485 table_args->rmt_port = mp->
rmt_port;
1486 table_args->action_index = clib_net_to_host_u32 (mp->
action_index);
1487 table_args->is_add = mp->
is_add;
1488 mp->
tag[
sizeof (mp->
tag) - 1] = 0;
1489 table_args->tag =
format (0,
"%s", mp->
tag);
1490 args.appns_index = clib_net_to_host_u32 (mp->
appns_index);
1491 args.scope = mp->
scope;
1494 memset (&table_args->lcl.fp_addr, 0, sizeof (table_args->lcl.fp_addr));
1495 memset (&table_args->rmt.fp_addr, 0, sizeof (table_args->rmt.fp_addr));
1510 u8 transport_proto,
u32 appns_index,
u8 * tag,
1514 session_mask_or_match_4_t *match =
1515 (session_mask_or_match_4_t *) & rule->match;
1516 session_mask_or_match_4_t *mask =
1517 (session_mask_or_match_4_t *) & rule->mask;
1520 memset (rmp, 0,
sizeof (*rmp));
1521 rmp->_vl_msg_id = ntohs (VL_API_SESSION_RULES_DETAILS);
1531 rmp->
action_index = clib_host_to_net_u32 (rule->action_index);
1535 rmp->
appns_index = clib_host_to_net_u32 (appns_index);
1547 u8 transport_proto,
u32 appns_index,
u8 * tag,
1551 session_mask_or_match_6_t *match =
1552 (session_mask_or_match_6_t *) & rule->match;
1553 session_mask_or_match_6_t *mask =
1554 (session_mask_or_match_6_t *) & rule->mask;
1557 memset (rmp, 0,
sizeof (*rmp));
1558 rmp->_vl_msg_id = ntohs (VL_API_SESSION_RULES_DETAILS);
1568 rmp->
action_index = clib_host_to_net_u32 (rule->action_index);
1572 rmp->
appns_index = clib_host_to_net_u32 (appns_index);
1584 u8 tp,
u8 is_local,
u32 appns_index,
1587 mma_rule_16_t *rule16;
1588 mma_rule_40_t *rule40;
1589 mma_rules_table_16_t *srt16;
1590 mma_rules_table_40_t *srt40;
1597 srt16 = &srt->session_rules_tables_16;
1599 ri = mma_rules_table_rule_index_16 (srt16, rule16);
1600 tag = session_rules_table_rule_tag (srt, ri, 1);
1601 send_session_rule_details4 (rule16, is_local, tp, appns_index, tag,
1610 srt40 = &srt->session_rules_tables_40;
1612 ri = mma_rules_table_rule_index_40 (srt40, rule40);
1613 tag = session_rules_table_rule_tag (srt, ri, 1);
1614 send_session_rule_details6 (rule40, is_local, tp, appns_index, tag,
1637 st->active_fib_proto, tp,
1638 st->is_local, st->appns_index, reg,
1657 rv = VNET_API_ERROR_FEATURE_DISABLED;
1662 rv = VNET_API_ERROR_APPLICATION_NOT_ATTACHED;
1665 memset (a, 0,
sizeof (*a));
1667 cert_len = clib_net_to_host_u16 (mp->
cert_len);
1668 if (cert_len > 10000)
1670 rv = VNET_API_ERROR_INVALID_VALUE;
1682 REPLY_MACRO (VL_API_APPLICATION_TLS_CERT_ADD_REPLY);
1697 rv = VNET_API_ERROR_FEATURE_DISABLED;
1702 rv = VNET_API_ERROR_APPLICATION_NOT_ATTACHED;
1705 memset (a, 0,
sizeof (*a));
1707 key_len = clib_net_to_host_u16 (mp->
key_len);
1708 if (key_len > 10000)
1710 rv = VNET_API_ERROR_INVALID_VALUE;
1722 REPLY_MACRO (VL_API_APPLICATION_TLS_KEY_ADD_REPLY);
1740 #define vl_msg_name_crc_list 1742 #undef vl_msg_name_crc_list 1747 #define _(id,n,crc) vl_msg_api_add_msg_name_crc (am, #n "_" #crc, id); 1748 foreach_vl_msg_name_crc_session;
1765 vl_msg_api_set_handlers(VL_API_##N, #n, \ 1766 vl_api_##n##_t_handler, \ 1768 vl_api_##n##_t_endian, \ 1769 vl_api_##n##_t_print, \ 1770 sizeof(vl_api_##n##_t), 1);
#define vec_validate(V, I)
Make sure vector is long enough for given index (no header, unspecified alignment) ...
static void vl_api_disconnect_session_reply_t_handler(vl_api_disconnect_session_reply_t *mp)
struct _vnet_app_worker_add_del_args vnet_app_worker_add_del_args_t
session_type_t listener_session_type
Has transport embedded when listener not purely local.
app_worker_t * app_worker_get(u32 wrk_index)
#define APP_NAMESPACE_INVALID_INDEX
static clib_error_t * session_api_hookup(vlib_main_t *vm)
u64 server_event_queue_address
static void mq_send_session_reset_cb(stream_session_t *s)
void * svm_msg_q_msg_data(svm_msg_q_t *mq, svm_msg_q_msg_t *msg)
Get data for message in queue.
clib_error_t * vnet_app_namespace_add_del(vnet_app_namespace_add_del_args_t *a)
static session_handle_t application_local_session_handle(local_session_t *ls)
vpp->client reset session API
VL_MSG_API_REAPER_FUNCTION(application_reaper_cb)
struct _session_rules_table_t session_rules_table_t
u8 application_has_global_scope(application_t *app)
struct _transport_connection transport_connection_t
u64 vpp_event_queue_address
struct _vnet_connect_args vnet_connect_args_t
u64 vpp_event_queue_address
static int send_del_segment_callback(u32 api_client_index, const ssvm_private_t *fs)
int vnet_bind_uri(vnet_bind_args_t *a)
static void vl_api_app_namespace_add_del_t_handler(vl_api_app_namespace_add_del_t *mp)
void mq_send_local_session_disconnected_cb(u32 app_wrk_index, local_session_t *ls)
void ip_set(ip46_address_t *dst, void *src, u8 is_ip4)
clib_error_t * vnet_unbind(vnet_unbind_args_t *a)
#define REPLY_MACRO2(t, body)
static void vl_api_send_msg(vl_api_registration_t *rp, u8 *elem)
u8 * message_bounce
Don't automatically free message buffer vetor.
static void vl_api_map_another_segment_reply_t_handler(vl_api_map_another_segment_reply_t *mp)
struct _transport_proto_vft transport_proto_vft_t
local_session_t * application_get_local_session_from_handle(session_handle_t handle)
Bind to an ip:port pair for a given transport protocol.
static int svm_msg_q_get_producer_eventfd(svm_msg_q_t *mq)
struct _vnet_app_namespace_add_del_args vnet_app_namespace_add_del_args_t
static int mq_send_session_bound_cb(u32 app_wrk_index, u32 api_context, session_handle_t handle, int rv)
client->vpp, reply to an accept message
application_t * application_lookup(u32 api_client_index)
u32 wrk_map_index
Worker index in app's map pool.
Request for map server summary status.
static void vl_api_unbind_sock_t_handler(vl_api_unbind_sock_t *mp)
static void session_parse_handle(session_handle_t handle, u32 *index, u32 *thread_index)
transport_connection_t * session_get_transport(stream_session_t *s)
#define foreach_session_api_msg
struct _vnet_application_add_tls_cert_args_t vnet_app_add_tls_cert_args_t
static u8 session_manager_is_enabled()
u8 application_use_mq_for_ctrl(application_t *app)
void * vl_msg_api_alloc(int nbytes)
u64 app_event_queue_address
clib_error_t * vnet_app_add_tls_cert(vnet_app_add_tls_cert_args_t *a)
static stream_session_t * listen_session_get_from_handle(session_handle_t handle)
app_worker_t * application_get_worker(application_t *app, u32 wrk_map_index)
int svm_msg_q_lock_and_alloc_msg_w_ring(svm_msg_q_t *mq, u32 ring_index, u8 noblock, svm_msg_q_msg_t *msg)
Lock message queue and allocate message buffer on ring.
Reply for app worker add/del.
int send_session_connected_callback(u32 app_wrk_index, u32 api_context, stream_session_t *s, u8 is_fail)
int application_is_proxy(application_t *app)
clib_error_t * vnet_session_rule_add_del(session_rule_add_del_args_t *args)
static void vl_api_connect_uri_t_handler(vl_api_connect_uri_t *mp)
memset(h->entries, 0, sizeof(h->entries[0])*entries)
int vnet_unbind_uri(vnet_unbind_args_t *a)
static svm_msg_q_t * session_manager_get_vpp_event_queue(u32 thread_index)
static void vl_api_session_enable_disable_t_handler(vl_api_session_enable_disable_t *mp)
#define pool_foreach(VAR, POOL, BODY)
Iterate through pool.
struct _vnet_disconnect_args_t vnet_disconnect_args_t
static void send_session_reset_callback(stream_session_t *s)
int application_local_session_connect_notify(local_session_t *ls)
u32 transport_listener_index
Transport listener index.
struct _stream_session_cb_vft session_cb_vft_t
vl_api_registration_t * vl_mem_api_client_index_to_registration(u32 handle)
struct _vnet_unbind_args_t vnet_unbind_args_t
vpp/server->client, connect reply – used for all connect_* messages
session_type_t session_type
Type.
static stream_session_t * listen_session_get(u32 index)
add/del application namespace
static void vl_api_application_tls_cert_add_t_handler(vl_api_application_tls_cert_add_t *mp)
void stream_session_cleanup(stream_session_t *s)
Cleanup transport and session state.
static local_session_t * application_get_local_listen_session(application_t *app, u32 session_index)
static void send_session_rule_details4(mma_rule_16_t *rule, u8 is_local, u8 transport_proto, u32 appns_index, u8 *tag, vl_api_registration_t *reg, u32 context)
u32 app_namespace_index_from_id(const u8 *ns_id)
struct _stream_session_t stream_session_t
u64 server_event_queue_address
struct _vnet_app_attach_args_t vnet_app_attach_args_t
transport_proto_vft_t * transport_protocol_get_vft(transport_proto_t transport_proto)
Get transport virtual function table.
static void vl_api_app_worker_add_del_t_handler(vl_api_app_worker_add_del_t *mp)
vpp->client unmap shared memory segment
static transport_proto_t session_get_transport_proto(stream_session_t *s)
static void vl_api_session_rules_dump_t_handler(vl_api_one_map_server_dump_t *mp)
clib_error_t * vnet_app_add_tls_key(vnet_app_add_tls_key_args_t *a)
static session_cb_vft_t session_cb_vft
#define VL_API_INVALID_FI
static void vl_api_accept_session_reply_t_handler(vl_api_accept_session_reply_t *mp)
svm_queue_t * vl_input_queue
shared memory only: pointer to client input queue
struct _session_rule_add_del_args session_rule_add_del_args_t
client->vpp, attach application to session layer
u8 hostname[hostname_len]
static u8 session_handle_is_local(session_handle_t handle)
static void vl_api_disconnect_session_t_handler(vl_api_disconnect_session_t *mp)
static int session_send_fds(vl_api_registration_t *reg, int fds[], int n_fds)
static session_handle_t session_handle(stream_session_t *s)
static u8 application_local_session_listener_has_transport(local_session_t *ls)
static clib_error_t * application_reaper_cb(u32 client_index)
static int send_add_segment_callback(u32 api_client_index, const ssvm_private_t *sp)
clib_error_t * vnet_connect(vnet_connect_args_t *a)
u32 wrk_index
Worker index in global worker pool.
static stream_session_t * session_get_if_valid(u64 si, u32 thread_index)
stream_session_t * app_worker_first_listener(app_worker_t *app, u8 fib_proto, u8 transport_proto)
clib_error_t * vnet_session_enable_disable(vlib_main_t *vm, u8 is_en)
u64 vpp_event_queue_address
volatile u8 session_state
State.
vpp->client, accept this session
u32 ip6_mask_to_preflen(ip6_address_t *mask)
API main structure, used by both vpp and binary API clients.
u64 client_event_queue_address
static int mq_try_lock_and_alloc_msg(svm_msg_q_t *app_mq, svm_msg_q_msg_t *msg)
An API client registration, only in vpp/vlib.
static int send_session_accept_callback(stream_session_t *s)
void vl_msg_api_send_shmem(svm_queue_t *q, u8 *elem)
svm_queue_t * vl_api_client_index_to_input_queue(u32 index)
#define vec_free(V)
Free vector's memory (no header).
#define ENDPOINT_INVALID_INDEX
transport_service_type_t session_transport_service_type(stream_session_t *s)
#define clib_warning(format, args...)
#define clib_memcpy(a, b, c)
u16 port
Port for connection.
u32 ip4_mask_to_preflen(ip4_address_t *mask)
int vnet_disconnect_session(vnet_disconnect_args_t *a)
static void send_session_rules_table_details(session_rules_table_t *srt, u8 fib_proto, u8 tp, u8 is_local, u32 appns_index, vl_api_registration_t *reg, u32 context)
static vl_api_registration_t * vl_api_client_index_to_registration(u32 index)
u32 app_wrk_index
Server index.
Application attach reply.
static clib_error_t * vl_api_send_fd_msg(vl_api_registration_t *reg, int fds[], int n_fds)
static u32 vl_api_registration_file_index(vl_api_registration_t *reg)
static u8 session_has_transport(stream_session_t *s)
application_t * application_get(u32 app_index)
static void send_session_rule_details6(mma_rule_40_t *rule, u8 is_local, u8 transport_proto, u32 appns_index, u8 *tag, vl_api_registration_t *reg, u32 context)
static stream_session_t * session_get_from_handle_if_valid(session_handle_t handle)
ssvm_private_t * session_manager_get_evt_q_segment(void)
#define uword_to_pointer(u, type)
static int svm_msg_q_get_consumer_eventfd(svm_msg_q_t *mq)
void svm_msg_q_add_and_unlock(svm_msg_q_t *mq, svm_msg_q_msg_t *msg)
Producer enqueue one message to queue with mutex held.
u64 server_event_queue_address
enable/disable session layer
static void vl_api_connect_sock_t_handler(vl_api_connect_sock_t *mp)
clib_error_t * vnet_bind(vnet_bind_args_t *a)
static local_session_t * application_get_local_listener_w_handle(session_handle_t handle)
Reply for app namespace add/del.
u64 app_event_queue_address
client->vpp, attach application to session layer
static int mq_send_session_accepted_cb(stream_session_t *s)
struct _vnet_application_add_tls_key_args_t vnet_app_add_tls_key_args_t
static void vl_api_bind_sock_t_handler(vl_api_bind_sock_t *mp)
vpp->client, please map an additional shared memory segment
#define clib_error_report(e)
ask app to add a new cut-through registration
u32 api_client_index
Binary API connection index, ~0 if internal.
struct _vnet_app_detach_args_t vnet_app_detach_args_t
static uword pointer_to_uword(const void *p)
Connect to a remote peer.
static vlib_main_t * vlib_get_main(void)
static void vl_api_application_attach_t_handler(vl_api_application_attach_t *mp)
static void setup_message_id_table(api_main_t *am)
u32 app_index
App index in app pool.
bidirectional disconnect API
static session_cb_vft_t session_mq_cb_vft
add/del application worker
static void mq_send_session_disconnected_cb(stream_session_t *s)
clib_error_t * vnet_connect_uri(vnet_connect_args_t *a)
transport_connection_t * listen_session_get_transport(stream_session_t *s)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
clib_error_t * vnet_application_attach(vnet_app_attach_args_t *a)
Attach application to vpp.
#define STATIC_ASSERT(truth,...)
static void vl_api_application_tls_key_add_t_handler(vl_api_application_tls_key_add_t *mp)
#define clib_error_get_code(err)
VLIB_API_INIT_FUNCTION(session_api_hookup)
u64 client_event_queue_address
struct _session_lookup_table session_table_t
struct _svm_queue svm_queue_t
void * vl_mem_api_alloc_as_if_client_w_reg(vl_api_registration_t *reg, int nbytes)
static void send_session_disconnect_callback(stream_session_t *s)
static void vl_api_application_detach_t_handler(vl_api_application_detach_t *mp)
struct _session_rules_table_add_del_args session_rule_table_add_del_args_t
u32 app_index
Index of owning app.
#define session_table_foreach(VAR, BODY)
Application add TLS certificate.
static int send_app_cut_through_registration_add(u32 api_client_index, u32 wrk_map_index, u64 mq_addr, u64 peer_mq_addr)
client->vpp reset session reply
static u32 vlib_num_workers()
static void vl_api_session_rule_add_del_t_handler(vl_api_session_rule_add_del_t *mp)
u64 vpp_event_queue_address
bidirectional disconnect reply API
segment_manager_properties_t * application_segment_manager_properties(application_t *app)
static fib_protocol_t session_get_fib_proto(stream_session_t *s)
static int mq_send_session_connected_cb(u32 app_wrk_index, u32 api_context, stream_session_t *s, u8 is_fail)
svm_msg_q_t * event_queue
Application listens for events on this svm queue.
int vnet_application_detach(vnet_app_detach_args_t *a)
Detach application from vpp.
struct _vnet_bind_args_t vnet_bind_args_t
static u8 session_type_is_ip4(session_type_t st)
static u64 listen_session_get_handle(stream_session_t *s)
static void vl_api_bind_uri_t_handler(vl_api_bind_uri_t *mp)
static void vl_api_reset_session_reply_t_handler(vl_api_reset_session_reply_t *mp)
clib_error_t * vnet_app_worker_add_del(vnet_app_worker_add_del_args_t *a)
u64 client_event_queue_address
non-blocking call - works with both condvar and eventfd signaling
static void vl_api_unbind_uri_t_handler(vl_api_unbind_uri_t *mp)
ssvm_segment_type_t ssvm_type(const ssvm_private_t *ssvm)