FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
tunnel.c File Reference
+ Include dependency graph for tunnel.c:

Go to the source code of this file.

Functions

u8format_tunnel_mode (u8 *s, va_list *args)
 
uword unformat_tunnel_mode (unformat_input_t *input, va_list *args)
 
u8format_tunnel_encap_decap_flags (u8 *s, va_list *args)
 
uword unformat_tunnel_encap_decap_flags (unformat_input_t *input, va_list *args)
 
u8format_tunnel_flags (u8 *s, va_list *args)
 
uword unformat_tunnel_flags (unformat_input_t *input, va_list *args)
 
ip_address_family_t tunnel_get_af (const tunnel_t *t)
 
void tunnel_copy (const tunnel_t *src, tunnel_t *dst)
 
u8format_tunnel (u8 *s, va_list *args)
 
uword unformat_tunnel (unformat_input_t *input, va_list *args)
 
int tunnel_resolve (tunnel_t *t, fib_node_type_t child_type, index_t child_index)
 
void tunnel_unresolve (tunnel_t *t)
 
void tunnel_contribute_forwarding (const tunnel_t *t, dpo_id_t *dpo)
 
void tunnel_build_v6_hdr (const tunnel_t *t, ip_protocol_t next_proto, ip6_header_t *ip)
 
void tunnel_build_v4_hdr (const tunnel_t *t, ip_protocol_t next_proto, ip4_header_t *ip)
 

Variables

const u8 TUNNEL_ENCAP_DECAP_FLAG_MASK
 
const u8 TUNNEL_FLAG_MASK
 

Function Documentation

◆ format_tunnel()

u8* format_tunnel ( u8 s,
va_list *  args 
)

Definition at line 150 of file tunnel.c.

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

◆ format_tunnel_encap_decap_flags()

u8* format_tunnel_encap_decap_flags ( u8 s,
va_list *  args 
)

Definition at line 67 of file tunnel.c.

+ Here is the caller graph for this function:

◆ format_tunnel_flags()

u8* format_tunnel_flags ( u8 s,
va_list *  args 
)

Definition at line 96 of file tunnel.c.

+ Here is the caller graph for this function:

◆ format_tunnel_mode()

u8* format_tunnel_mode ( u8 s,
va_list *  args 
)

Definition at line 36 of file tunnel.c.

+ Here is the caller graph for this function:

◆ tunnel_build_v4_hdr()

void tunnel_build_v4_hdr ( const tunnel_t t,
ip_protocol_t  next_proto,
ip4_header_t ip 
)

Definition at line 247 of file tunnel.c.

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

◆ tunnel_build_v6_hdr()

void tunnel_build_v6_hdr ( const tunnel_t t,
ip_protocol_t  next_proto,
ip6_header_t ip 
)

Definition at line 229 of file tunnel.c.

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

◆ tunnel_contribute_forwarding()

void tunnel_contribute_forwarding ( const tunnel_t t,
dpo_id_t dpo 
)

Definition at line 218 of file tunnel.c.

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

◆ tunnel_copy()

void tunnel_copy ( const tunnel_t src,
tunnel_t dst 
)

Definition at line 131 of file tunnel.c.

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

◆ tunnel_get_af()

ip_address_family_t tunnel_get_af ( const tunnel_t t)

Definition at line 125 of file tunnel.c.

+ Here is the caller graph for this function:

◆ tunnel_resolve()

int tunnel_resolve ( tunnel_t t,
fib_node_type_t  child_type,
index_t  child_index 
)

Definition at line 189 of file tunnel.c.

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

◆ tunnel_unresolve()

void tunnel_unresolve ( tunnel_t t)

Definition at line 209 of file tunnel.c.

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

◆ unformat_tunnel()

uword unformat_tunnel ( unformat_input_t input,
va_list *  args 
)

Definition at line 168 of file tunnel.c.

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

◆ unformat_tunnel_encap_decap_flags()

uword unformat_tunnel_encap_decap_flags ( unformat_input_t input,
va_list *  args 
)

Definition at line 82 of file tunnel.c.

+ Here is the caller graph for this function:

◆ unformat_tunnel_flags()

uword unformat_tunnel_flags ( unformat_input_t input,
va_list *  args 
)

Definition at line 110 of file tunnel.c.

+ Here is the caller graph for this function:

◆ unformat_tunnel_mode()

uword unformat_tunnel_mode ( unformat_input_t input,
va_list *  args 
)

Definition at line 53 of file tunnel.c.

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

Variable Documentation

◆ TUNNEL_ENCAP_DECAP_FLAG_MASK

const u8 TUNNEL_ENCAP_DECAP_FLAG_MASK
Initial value:
= (
#define _(a, b, c)
0)

Definition at line 24 of file tunnel.c.

◆ TUNNEL_FLAG_MASK

const u8 TUNNEL_FLAG_MASK
Initial value:
= (
#define _(a, b, c)
0)

Definition at line 29 of file tunnel.c.

foreach_tunnel_encap_decap_flag
@ foreach_tunnel_encap_decap_flag
Definition: tunnel.h:55
foreach_tunnel_flag
@ foreach_tunnel_flag
Definition: tunnel.h:73