16 #ifndef SRC_VNET_SESSION_SESSION_LOOKUP_H_ 17 #define SRC_VNET_SESSION_SESSION_LOOKUP_H_ 22 typedef struct _session_lookup
25 clib_bihash_16_8_t v4_session_hash;
26 clib_bihash_48_8_t v6_session_hash;
29 clib_bihash_16_8_t v4_half_open_hash;
30 clib_bihash_48_8_t v6_half_open_hash;
34 u16 lcl_port,
u8 proto);
37 u16 rmt_port,
u8 proto);
39 u16 lcl_port,
u8 proto);
42 u16 rmt_port,
u8 proto);
73 u16 lcl_port,
u8 proto);
77 u16 rmt_port,
u8 proto);
struct _transport_connection transport_connection_t
stream_session_t * stream_session_lookup_listener4(ip4_address_t *lcl, u16 lcl_port, u8 proto)
int stream_session_table_del(stream_session_t *s)
transport_connection_t * stream_session_lookup_transport_wt4(ip4_address_t *lcl, ip4_address_t *rmt, u16 lcl_port, u16 rmt_port, u8 proto, u32 thread_index)
stream_session_t * stream_session_lookup_listener(ip46_address_t *lcl, u16 lcl_port, u8 proto)
transport_connection_t * stream_session_lookup_transport_wt6(ip6_address_t *lcl, ip6_address_t *rmt, u16 lcl_port, u16 rmt_port, u8 proto, u32 thread_index)
stream_session_t * stream_session_lookup6(ip6_address_t *lcl, ip6_address_t *rmt, u16 lcl_port, u16 rmt_port, u8 proto)
struct _stream_session_t stream_session_t
void stream_session_half_open_table_del(transport_connection_t *tc)
struct _session_lookup session_lookup_t
transport_connection_t * stream_session_lookup_transport4(ip4_address_t *lcl, ip4_address_t *rmt, u16 lcl_port, u16 rmt_port, u8 proto)
void stream_session_half_open_table_add(transport_connection_t *tc, u64 value)
void stream_session_table_add_for_tc(transport_connection_t *tc, u64 value)
stream_session_t * stream_session_lookup_listener6(ip6_address_t *lcl, u16 lcl_port, u8 proto)
transport_connection_t * stream_session_half_open_lookup(ip46_address_t *lcl, ip46_address_t *rmt, u16 lcl_port, u16 rmt_port, u8 proto)
int stream_session_table_del_for_tc(transport_connection_t *tc)
stream_session_t * stream_session_lookup4(ip4_address_t *lcl, ip4_address_t *rmt, u16 lcl_port, u16 rmt_port, u8 proto)
Looks up a session based on the 5-tuple passed as argument.
u64 stream_session_half_open_lookup_handle(ip46_address_t *lcl, ip46_address_t *rmt, u16 lcl_port, u16 rmt_port, u8 proto)
void session_lookup_init(void)
transport_connection_t * stream_session_lookup_transport6(ip6_address_t *lcl, ip6_address_t *rmt, u16 lcl_port, u16 rmt_port, u8 proto)