44 u32 transport_proto = 0, port;
49 sep->transport_proto = transport_proto;
50 sep->port = clib_host_to_net_u16 (port);
58 sep->transport_proto = transport_proto;
59 sep->port = clib_host_to_net_u16 (port);
67 sep->transport_proto = transport_proto;
68 sep->port = clib_host_to_net_u16 (port);
76 sep->transport_proto = transport_proto;
77 sep->port = clib_host_to_net_u16 (port);
99 uri = (
char *)
format (0,
"%s%c", uri, 0);
106 return VNET_API_ERROR_INVALID_VALUE;
111 cache_uri = (
u8 *) uri;
129 sep.app_wrk_index = 0;
151 return VNET_API_ERROR_ADDRESS_NOT_IN_USE;
session_t * session_lookup_listener(u32 table_index, session_endpoint_t *sep)
Lookup listener, exact or proxy (inaddr_any:0) match.
struct _vnet_connect_args vnet_connect_args_t
struct _vnet_unlisten_args_t vnet_unlisten_args_t
u32 session_lookup_get_index_for_fib(u32 fib_proto, u32 fib_index)
int vnet_unlisten(vnet_unlisten_args_t *a)
struct _vnet_bind_args_t vnet_listen_args_t
#define clib_memcpy(d, s, n)
static session_endpoint_cfg_t * cache_sep
struct _session_endpoint_cfg session_endpoint_cfg_t
static u64 listen_session_get_handle(session_t *s)
#define vec_free(V)
Free vector's memory (no header).
int vnet_unbind_uri(vnet_unlisten_args_t *a)
uword unformat_transport_proto(unformat_input_t *input, va_list *args)
int vnet_listen(vnet_listen_args_t *a)
static void clib_mem_free(void *p)
static void * clib_mem_alloc(uword size)
int vnet_connect(vnet_connect_args_t *a)
int parse_uri(char *uri, session_endpoint_cfg_t *sep)
uword unformat_vnet_uri(unformat_input_t *input, va_list *args)
unformat a vnet URI
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
static fib_protocol_t fib_ip_proto(bool is_ip6)
Convert from boolean is_ip6 to FIB protocol.
int vnet_bind_uri(vnet_listen_args_t *a)
#define SESSION_ENDPOINT_CFG_NULL
struct _session_endpoint session_endpoint_t
int vnet_connect_uri(vnet_connect_args_t *a)