16 #ifndef SRC_VNET_SESSION_STREAM_SESSION_H_ 17 #define SRC_VNET_SESSION_STREAM_SESSION_H_ 48 typedef struct _stream_session_t
72 u32 svm_segment_index;
130 #define foreach_session_endpoint_fields \ 131 foreach_transport_connection_fields \ 132 _(u8, transport_proto) \ 134 typedef struct _session_endpoint
136 #define _(type, name) type name; 141 typedef struct _session_endpoint_extended
143 #define _(type, name) type name; 151 #define SESSION_IP46_ZERO \ 157 #define SESSION_ENDPOINT_NULL \ 159 .sw_if_index = ENDPOINT_INVALID_INDEX, \ 160 .ip = SESSION_IP46_ZERO, \ 161 .fib_index = ENDPOINT_INVALID_INDEX, \ 164 .transport_proto = 0, \ 166 #define SESSION_ENDPOINT_EXT_NULL \ 168 .sw_if_index = ENDPOINT_INVALID_INDEX, \ 169 .ip = SESSION_IP46_ZERO, \ 170 .fib_index = ENDPOINT_INVALID_INDEX, \ 173 .transport_proto = 0, \ 174 .app_index = ENDPOINT_INVALID_INDEX, \ 175 .opaque = ENDPOINT_INVALID_INDEX, \ 179 #define session_endpoint_to_transport(_sep) ((transport_endpoint_t *)_sep) session_type_t listener_session_type
Has transport embedded when listener not purely local.
u8 pad[3]
log2 (size of the packing page block)
#define CLIB_CACHE_LINE_ALIGN_MARK(mark)
u32 client_index
Client data.
svm_fifo_t * server_tx_fifo
svm_fifo_t * rx_fifo
rx fifo
struct generic_session_ generic_session_t
struct _svm_fifo svm_fifo_t
volatile u8 session_state
session state
u32 transport_listener_index
struct local_session_ local_session_t
session_type_t session_type
Type.
struct _stream_session_t stream_session_t
struct _session_endpoint session_endpoint_t
svm_fifo_t * server_rx_fifo
fifo pointers.
u32 svm_segment_index
Segment index where fifos were allocated.
volatile u8 session_state
State.
u16 port
Port for connection.
u32 session_index
index in owning pool
#define foreach_session_endpoint_fields
static u8 session_endpoint_fib_proto(session_endpoint_t *sep)
session_type_t session_type
session type
u32 session_index
Session index.
svm_fifo_t * tx_fifo
tx fifo
struct _session_endpoint_extended session_endpoint_extended_t
u32 app_index
Server index.