FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
tunnel_types_api.c File Reference
+ Include dependency graph for tunnel_types_api.c:

Go to the source code of this file.

Functions

 STATIC_ASSERT (sizeof(vl_api_tunnel_encap_decap_flags_t)==sizeof(tunnel_encap_decap_flags_t), "tunnel API and internal flags enum size differ")
 
 STATIC_ASSERT (sizeof(vl_api_tunnel_flags_t)==sizeof(tunnel_flags_t), "tunnel API and internal flags enum size differ")
 
int tunnel_encap_decap_flags_decode (vl_api_tunnel_encap_decap_flags_t f, tunnel_encap_decap_flags_t *o)
 Conversion functions to/from (decode/encode) API types to VPP internal types. More...
 
vl_api_tunnel_encap_decap_flags_t tunnel_encap_decap_flags_encode (tunnel_encap_decap_flags_t f)
 
int tunnel_flags_decode (vl_api_tunnel_flags_t f, tunnel_flags_t *o)
 
vl_api_tunnel_flags_t tunnel_flags_encode (tunnel_flags_t f)
 
int tunnel_mode_decode (vl_api_tunnel_mode_t in, tunnel_mode_t *out)
 
vl_api_tunnel_mode_t tunnel_mode_encode (tunnel_mode_t in)
 
int tunnel_decode (const vl_api_tunnel_t *in, tunnel_t *out)
 
void tunnel_encode (const tunnel_t *in, vl_api_tunnel_t *out)
 

Function Documentation

◆ STATIC_ASSERT() [1/2]

STATIC_ASSERT ( sizeof(vl_api_tunnel_encap_decap_flags_t)  = =sizeof(tunnel_encap_decap_flags_t),
"tunnel API and internal flags enum size differ"   
)

◆ STATIC_ASSERT() [2/2]

STATIC_ASSERT ( sizeof(vl_api_tunnel_flags_t)  = =sizeof(tunnel_flags_t),
"tunnel API and internal flags enum size differ"   
)

◆ tunnel_decode()

int tunnel_decode ( const vl_api_tunnel_t *  in,
tunnel_t out 
)

Definition at line 103 of file tunnel_types_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ tunnel_encap_decap_flags_decode()

int tunnel_encap_decap_flags_decode ( vl_api_tunnel_encap_decap_flags_t  _f,
tunnel_encap_decap_flags_t out 
)

Conversion functions to/from (decode/encode) API types to VPP internal types.

These enum decode/encodes use 'int' as the type for the enum because one cannot forward declare an enum

Definition at line 34 of file tunnel_types_api.c.

+ Here is the caller graph for this function:

◆ tunnel_encap_decap_flags_encode()

vl_api_tunnel_encap_decap_flags_t tunnel_encap_decap_flags_encode ( tunnel_encap_decap_flags_t  f)

Definition at line 46 of file tunnel_types_api.c.

+ Here is the caller graph for this function:

◆ tunnel_encode()

void tunnel_encode ( const tunnel_t in,
vl_api_tunnel_t *  out 
)

Definition at line 147 of file tunnel_types_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ tunnel_flags_decode()

int tunnel_flags_decode ( vl_api_tunnel_flags_t  f,
tunnel_flags_t o 
)

Definition at line 52 of file tunnel_types_api.c.

+ Here is the caller graph for this function:

◆ tunnel_flags_encode()

vl_api_tunnel_flags_t tunnel_flags_encode ( tunnel_flags_t  f)

Definition at line 63 of file tunnel_types_api.c.

+ Here is the caller graph for this function:

◆ tunnel_mode_decode()

int tunnel_mode_decode ( vl_api_tunnel_mode_t  in,
tunnel_mode_t out 
)

Definition at line 69 of file tunnel_types_api.c.

+ Here is the caller graph for this function:

◆ tunnel_mode_encode()

vl_api_tunnel_mode_t tunnel_mode_encode ( tunnel_mode_t  in)

Definition at line 85 of file tunnel_types_api.c.

+ Here is the caller graph for this function: