|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
50 sep->port = clib_host_to_net_u16 (
port);
59 sep->port = clib_host_to_net_u16 (
port);
67 sep->ip.ip4.as_u32 = 1;
88 uri = (
char *)
format (0,
"%s%c", uri, 0);
95 return VNET_API_ERROR_INVALID_VALUE;
118 sep.app_wrk_index = 0;
137 return VNET_API_ERROR_INVALID_VALUE;
143 return VNET_API_ERROR_ADDRESS_NOT_IN_USE;
int vnet_listen(vnet_listen_args_t *a)
int vnet_connect(vnet_connect_args_t *a)
static session_endpoint_cfg_t * cache_sep
static fib_protocol_t fib_ip_proto(bool is_ip6)
Convert from boolean is_ip6 to FIB protocol.
#define clib_memcpy(d, s, n)
int vnet_unlisten(vnet_unlisten_args_t *a)
static u64 listen_session_get_handle(session_t *s)
static void clib_mem_free(void *p)
struct _session_endpoint_cfg session_endpoint_cfg_t
int vnet_connect_uri(vnet_connect_args_t *a)
struct _vnet_unlisten_args_t vnet_unlisten_args_t
#define SESSION_ENDPOINT_CFG_NULL
application_t * application_get(u32 app_index)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
uword unformat_transport_proto(unformat_input_t *input, va_list *args)
u32 application_session_table(application_t *app, u8 fib_proto)
struct _vnet_bind_args_t vnet_listen_args_t
#define vec_free(V)
Free vector's memory (no header).
description fragment has unexpected format
struct _session_endpoint session_endpoint_t
struct _vnet_connect_args vnet_connect_args_t
session_t * session_lookup_listener(u32 table_index, session_endpoint_t *sep)
Lookup listener, exact or proxy (inaddr_any:0) match.
int parse_uri(char *uri, session_endpoint_cfg_t *sep)
int vnet_bind_uri(vnet_listen_args_t *a)
int vnet_unbind_uri(vnet_unlisten_args_t *a)
uword unformat_vnet_uri(unformat_input_t *input, va_list *args)
unformat a vnet URI
static void * clib_mem_alloc(uword size)