50 sep->port = clib_host_to_net_u16 (
port);
59 sep->port = clib_host_to_net_u16 (
port);
68 sep->port = clib_host_to_net_u16 (
port);
77 sep->port = clib_host_to_net_u16 (
port);
82 &transport_proto, &sep->parent_handle))
85 sep->ip.ip4.as_u32 = 1;
106 uri = (
char *)
format (0,
"%s%c", uri, 0);
113 return VNET_API_ERROR_INVALID_VALUE;
118 cache_uri = (
u8 *) uri;
136 sep.app_wrk_index = 0;
155 return VNET_API_ERROR_INVALID_VALUE;
161 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
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
u32 application_session_table(application_t *app, u8 fib_proto)
static u64 listen_session_get_handle(session_t *s)
#define vec_free(V)
Free vector's memory (no header).
application_t * application_get(u32 app_index)
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)