16 #ifndef SRC_VNET_SESSION_STREAM_SESSION_H_ 17 #define SRC_VNET_SESSION_STREAM_SESSION_H_ 59 typedef struct _stream_session_t
83 u32 svm_segment_index;
141 #define foreach_session_endpoint_fields \ 142 foreach_transport_connection_fields \ 143 _(u8, transport_proto) \ 145 typedef struct _session_endpoint
147 #define _(type, name) type name; 152 typedef struct _session_endpoint_extended
154 #define _(type, name) type name; 162 #define SESSION_IP46_ZERO \ 168 #define SESSION_ENDPOINT_NULL \ 170 .sw_if_index = ENDPOINT_INVALID_INDEX, \ 171 .ip = SESSION_IP46_ZERO, \ 172 .fib_index = ENDPOINT_INVALID_INDEX, \ 175 .transport_proto = 0, \ 177 #define SESSION_ENDPOINT_EXT_NULL \ 179 .sw_if_index = ENDPOINT_INVALID_INDEX, \ 180 .ip = SESSION_IP46_ZERO, \ 181 .fib_index = ENDPOINT_INVALID_INDEX, \ 184 .transport_proto = 0, \ 185 .app_index = ENDPOINT_INVALID_INDEX, \ 186 .opaque = ENDPOINT_INVALID_INDEX, \ 190 #define session_endpoint_to_transport(_sep) ((transport_endpoint_t *)_sep) session_type_t listener_session_type
Has transport embedded when listener not purely local.
struct app_session_ app_session_t
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
u32 session_index
Session index in owning pool.
u32 app_index
Application index.
struct _svm_fifo svm_fifo_t
u32 transport_listener_index
struct local_session_ local_session_t
session_type_t session_type
Type.
struct _stream_session_t stream_session_t
session_type_t session_type
Type.
struct _session_endpoint session_endpoint_t
svm_fifo_t * server_rx_fifo
fifo pointers.
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.
#define foreach_session_endpoint_fields
volatile u8 session_state
State.
static u8 session_endpoint_fib_proto(session_endpoint_t *sep)
u32 session_index
Session index.
svm_fifo_t * server_tx_fifo
struct _session_endpoint_extended session_endpoint_extended_t
u32 app_index
Server index.