FD.io VPP  v17.10-9-gd594711
Vector Packet Processing
session_lookup.h File Reference
+ Include dependency graph for session_lookup.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct _session_lookup session_lookup_t
 

Functions

stream_session_tstream_session_lookup_listener4 (ip4_address_t *lcl, u16 lcl_port, u8 proto)
 
stream_session_tstream_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. More...
 
stream_session_tstream_session_lookup_listener6 (ip6_address_t *lcl, u16 lcl_port, u8 proto)
 
stream_session_tstream_session_lookup6 (ip6_address_t *lcl, ip6_address_t *rmt, u16 lcl_port, u16 rmt_port, u8 proto)
 
transport_connection_tstream_session_lookup_transport_wt4 (ip4_address_t *lcl, ip4_address_t *rmt, u16 lcl_port, u16 rmt_port, u8 proto, u32 thread_index)
 
transport_connection_tstream_session_lookup_transport4 (ip4_address_t *lcl, ip4_address_t *rmt, u16 lcl_port, u16 rmt_port, u8 proto)
 
transport_connection_tstream_session_lookup_transport_wt6 (ip6_address_t *lcl, ip6_address_t *rmt, u16 lcl_port, u16 rmt_port, u8 proto, u32 thread_index)
 
transport_connection_tstream_session_lookup_transport6 (ip6_address_t *lcl, ip6_address_t *rmt, u16 lcl_port, u16 rmt_port, u8 proto)
 
stream_session_tstream_session_lookup_listener (ip46_address_t *lcl, u16 lcl_port, u8 proto)
 
u64 stream_session_half_open_lookup_handle (ip46_address_t *lcl, ip46_address_t *rmt, u16 lcl_port, u16 rmt_port, u8 proto)
 
transport_connection_tstream_session_half_open_lookup (ip46_address_t *lcl, ip46_address_t *rmt, u16 lcl_port, u16 rmt_port, u8 proto)
 
void stream_session_table_add_for_tc (transport_connection_t *tc, u64 value)
 
int stream_session_table_del_for_tc (transport_connection_t *tc)
 
int stream_session_table_del (stream_session_t *s)
 
void stream_session_half_open_table_del (transport_connection_t *tc)
 
void stream_session_half_open_table_add (transport_connection_t *tc, u64 value)
 
void session_lookup_init (void)
 

Typedef Documentation

typedef struct _session_lookup session_lookup_t

Function Documentation

void session_lookup_init ( void  )

Definition at line 583 of file session_lookup.c.

+ Here is the caller graph for this function:

transport_connection_t* stream_session_half_open_lookup ( ip46_address_t *  lcl,
ip46_address_t *  rmt,
u16  lcl_port,
u16  rmt_port,
u8  proto 
)

Definition at line 426 of file session_lookup.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u64 stream_session_half_open_lookup_handle ( ip46_address_t *  lcl,
ip46_address_t *  rmt,
u16  lcl_port,
u16  rmt_port,
u8  proto 
)

Definition at line 390 of file session_lookup.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void stream_session_half_open_table_add ( transport_connection_t tc,
u64  value 
)

Definition at line 226 of file session_lookup.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void stream_session_half_open_table_del ( transport_connection_t tc)

Definition at line 249 of file session_lookup.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

First it tries to find an established session, if this fails, it tries finding a listener session if this fails, it tries a lookup with a wildcarded local source (listener bound to all interfaces)

Definition at line 297 of file session_lookup.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

stream_session_t* stream_session_lookup6 ( ip6_address_t lcl,
ip6_address_t rmt,
u16  lcl_port,
u16  rmt_port,
u8  proto 
)

Definition at line 348 of file session_lookup.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

stream_session_t* stream_session_lookup_listener ( ip46_address_t *  lcl,
u16  lcl_port,
u8  proto 
)

Definition at line 373 of file session_lookup.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

stream_session_t* stream_session_lookup_listener4 ( ip4_address_t lcl,
u16  lcl_port,
u8  proto 
)

Definition at line 270 of file session_lookup.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

stream_session_t* stream_session_lookup_listener6 ( ip6_address_t lcl,
u16  lcl_port,
u8  proto 
)

Definition at line 323 of file session_lookup.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

transport_connection_t* stream_session_lookup_transport4 ( ip4_address_t lcl,
ip4_address_t rmt,
u16  lcl_port,
u16  rmt_port,
u8  proto 
)

Definition at line 479 of file session_lookup.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

transport_connection_t* stream_session_lookup_transport6 ( ip6_address_t lcl,
ip6_address_t rmt,
u16  lcl_port,
u16  rmt_port,
u8  proto 
)

Definition at line 542 of file session_lookup.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 
)

Definition at line 447 of file session_lookup.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 
)

Definition at line 510 of file session_lookup.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void stream_session_table_add_for_tc ( transport_connection_t tc,
u64  value 
)

Definition at line 161 of file session_lookup.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int stream_session_table_del ( stream_session_t s)

Definition at line 216 of file session_lookup.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int stream_session_table_del_for_tc ( transport_connection_t tc)

Definition at line 193 of file session_lookup.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: