FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
stream_session.h File Reference
+ Include dependency graph for stream_session.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  generic_session_
 
struct  local_session_
 

Macros

#define foreach_session_endpoint_fields
 
#define SESSION_IP46_ZERO
 
#define TRANSPORT_ENDPOINT_NULL
 
#define SESSION_ENDPOINT_NULL
 
#define SESSION_ENDPOINT_CFG_NULL
 
#define session_endpoint_to_transport(_sep)   ((transport_endpoint_t *)_sep)
 
#define session_endpoint_to_transport_cfg(_sep)   ((transport_endpoint_cfg_t *)_sep)
 

Typedefs

typedef u8 session_type_t
 
typedef struct generic_session_ generic_session_t
 
typedef struct _stream_session_t stream_session_t
 
typedef struct local_session_ local_session_t
 
typedef struct _session_endpoint session_endpoint_t
 
typedef struct _session_endpoint_cfg session_endpoint_cfg_t
 

Enumerations

enum  stream_session_state_t {
  SESSION_STATE_LISTENING, SESSION_STATE_CONNECTING, SESSION_STATE_ACCEPTING, SESSION_STATE_READY,
  SESSION_STATE_OPENED, SESSION_STATE_TRANSPORT_CLOSING, SESSION_STATE_CLOSING, SESSION_STATE_CLOSED_WAITING,
  SESSION_STATE_TRANSPORT_CLOSED, SESSION_STATE_CLOSED, SESSION_STATE_N_STATES
}
 

Functions

static u8 session_endpoint_fib_proto (session_endpoint_t *sep)
 

Macro Definition Documentation

◆ foreach_session_endpoint_fields

#define foreach_session_endpoint_fields
Value:
foreach_transport_endpoint_cfg_fields \
_(u8, transport_proto) \
unsigned char u8
Definition: types.h:56

Definition at line 157 of file stream_session.h.

◆ SESSION_ENDPOINT_CFG_NULL

#define SESSION_ENDPOINT_CFG_NULL
Value:
{ \
.sw_if_index = ENDPOINT_INVALID_INDEX, \
.fib_index = ENDPOINT_INVALID_INDEX, \
.is_ip4 = 0, \
.port = 0, \
.transport_proto = 0, \
.app_wrk_index = ENDPOINT_INVALID_INDEX, \
.hostname = 0, \
}
#define SESSION_IP46_ZERO
#define TRANSPORT_ENDPOINT_NULL
#define ENDPOINT_INVALID_INDEX
Definition: transport.h:153

Definition at line 203 of file stream_session.h.

◆ SESSION_ENDPOINT_NULL

#define SESSION_ENDPOINT_NULL
Value:
{ \
.sw_if_index = ENDPOINT_INVALID_INDEX, \
.fib_index = ENDPOINT_INVALID_INDEX, \
.is_ip4 = 0, \
.port = 0, \
.transport_proto = 0, \
}
#define SESSION_IP46_ZERO
#define TRANSPORT_ENDPOINT_NULL
#define ENDPOINT_INVALID_INDEX
Definition: transport.h:153

Definition at line 193 of file stream_session.h.

◆ session_endpoint_to_transport

#define session_endpoint_to_transport (   _sep)    ((transport_endpoint_t *)_sep)

Definition at line 217 of file stream_session.h.

◆ session_endpoint_to_transport_cfg

#define session_endpoint_to_transport_cfg (   _sep)    ((transport_endpoint_cfg_t *)_sep)

Definition at line 218 of file stream_session.h.

◆ SESSION_IP46_ZERO

#define SESSION_IP46_ZERO
Value:
{ \
.ip6 = { \
{ 0, 0, }, \
}, \
}

Definition at line 178 of file stream_session.h.

◆ TRANSPORT_ENDPOINT_NULL

#define TRANSPORT_ENDPOINT_NULL
Value:
{ \
.sw_if_index = ENDPOINT_INVALID_INDEX, \
.fib_index = ENDPOINT_INVALID_INDEX, \
.is_ip4 = 0, \
.port = 0, \
}
#define SESSION_IP46_ZERO
#define ENDPOINT_INVALID_INDEX
Definition: transport.h:153

Definition at line 185 of file stream_session.h.

Typedef Documentation

◆ generic_session_t

◆ local_session_t

◆ session_endpoint_cfg_t

typedef struct _session_endpoint_cfg session_endpoint_cfg_t

◆ session_endpoint_t

typedef struct _session_endpoint session_endpoint_t

◆ session_type_t

typedef u8 session_type_t

Definition at line 22 of file stream_session.h.

◆ stream_session_t

typedef struct _stream_session_t stream_session_t

Enumeration Type Documentation

◆ stream_session_state_t

Enumerator
SESSION_STATE_LISTENING 
SESSION_STATE_CONNECTING 
SESSION_STATE_ACCEPTING 
SESSION_STATE_READY 
SESSION_STATE_OPENED 
SESSION_STATE_TRANSPORT_CLOSING 
SESSION_STATE_CLOSING 
SESSION_STATE_CLOSED_WAITING 
SESSION_STATE_TRANSPORT_CLOSED 
SESSION_STATE_CLOSED 
SESSION_STATE_N_STATES 

Definition at line 27 of file stream_session.h.

Function Documentation

◆ session_endpoint_fib_proto()

static u8 session_endpoint_fib_proto ( session_endpoint_t sep)
inlinestatic

Definition at line 222 of file stream_session.h.

+ Here is the caller graph for this function: