16 #ifndef SRC_VNET_SESSION_STREAM_SESSION_H_ 17 #define SRC_VNET_SESSION_STREAM_SESSION_H_ 49 typedef struct _stream_session_t
73 u32 svm_segment_index;
131 #define foreach_session_endpoint_fields \ 132 foreach_transport_connection_fields \ 133 _(u8, transport_proto) \ 135 typedef struct _session_endpoint
137 #define _(type, name) type name; 142 typedef struct _session_endpoint_extended
144 #define _(type, name) type name; 152 #define SESSION_IP46_ZERO \ 158 #define SESSION_ENDPOINT_NULL \ 160 .sw_if_index = ENDPOINT_INVALID_INDEX, \ 161 .ip = SESSION_IP46_ZERO, \ 162 .fib_index = ENDPOINT_INVALID_INDEX, \ 165 .transport_proto = 0, \ 167 #define SESSION_ENDPOINT_EXT_NULL \ 169 .sw_if_index = ENDPOINT_INVALID_INDEX, \ 170 .ip = SESSION_IP46_ZERO, \ 171 .fib_index = ENDPOINT_INVALID_INDEX, \ 174 .transport_proto = 0, \ 175 .app_index = ENDPOINT_INVALID_INDEX, \ 176 .opaque = ENDPOINT_INVALID_INDEX, \ 180 #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.