FD.io VPP  v18.01.2-1-g9b554f3
Vector Packet Processing
transport_interface.h File Reference
+ Include dependency graph for transport_interface.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define transport_proto_foreach(VAR, BODY)
 

Typedefs

typedef struct _transport_proto_vft transport_proto_vft_t
 

Functions

void transport_register_protocol (transport_proto_t transport_proto, const transport_proto_vft_t *vft, fib_protocol_t fib_proto, u32 output_node)
 Register transport virtual function table. More...
 
transport_proto_vft_ttransport_protocol_get_vft (transport_proto_t tp)
 Get transport virtual function table. More...
 
void transport_update_time (f64 time_now, u8 thread_index)
 
void transport_enable_disable (vlib_main_t *vm, u8 is_en)
 

Variables

transport_proto_vft_ttp_vfts
 Per-type vector of transport protocol virtual function tables. More...
 

Macro Definition Documentation

#define transport_proto_foreach (   VAR,
  BODY 
)
Value:
do { \
for (VAR = 0; VAR < vec_len (tp_vfts); VAR++) \
if (tp_vfts[VAR].push_header != 0) \
do { BODY; } while (0); \
} while (0)
transport_proto_vft_t * tp_vfts
Per-type vector of transport protocol virtual function tables.
Definition: transport.c:23
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)

Definition at line 63 of file transport_interface.h.

Typedef Documentation

typedef struct _transport_proto_vft transport_proto_vft_t

Function Documentation

void transport_enable_disable ( vlib_main_t vm,
u8  is_en 
)

Definition at line 342 of file transport.c.

+ Here is the caller graph for this function:

transport_proto_vft_t* transport_protocol_get_vft ( transport_proto_t  transport_proto)

Get transport virtual function table.

Parameters
type- session type (not protocol type)

Definition at line 167 of file transport.c.

+ Here is the caller graph for this function:

void transport_register_protocol ( transport_proto_t  transport_proto,
const transport_proto_vft_t vft,
fib_protocol_t  fib_proto,
u32  output_node 
)

Register transport virtual function table.

Parameters
transport_proto- transport protocol type (i.e., TCP, UDP ..)
vft- virtual function table for transport proto
fib_proto- network layer protocol
output_node- output node index that session layer will hand off buffers to, for requested fib proto

Definition at line 149 of file transport.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void transport_update_time ( f64  time_now,
u8  thread_index 
)

Definition at line 331 of file transport.c.

+ Here is the caller graph for this function:

Variable Documentation

Per-type vector of transport protocol virtual function tables.

Generate typed init functions for multiple hash table styles...

Definition at line 23 of file transport.c.