FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
tunnel.h File Reference
+ Include dependency graph for tunnel.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define foreach_tunnel_mode
 
#define forech_tunnel_encap_decap_flag
 Keep these idenitical to those in ipip.api. More...
 
#define TUNNEL_FLAG_MASK   (0x1f)
 

Typedefs

typedef enum tunnel_mode_t_ tunnel_mode_t
 
typedef enum tunnel_encap_decap_flags_t_ tunnel_encap_decap_flags_t
 

Enumerations

enum  tunnel_mode_t_ { foreach_tunnel_mode }
 
enum  tunnel_encap_decap_flags_t_ { forech_tunnel_encap_decap_flag }
 

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)
 

Macro Definition Documentation

◆ foreach_tunnel_mode

#define foreach_tunnel_mode
Value:
_(P2P, "point-to-point") \
_(MP, "multi-point") \

Definition at line 23 of file tunnel.h.

◆ forech_tunnel_encap_decap_flag

#define forech_tunnel_encap_decap_flag
Value:
_(NONE, "none", 0x0) \
_(ENCAP_COPY_DF, "encap-copy-df", 0x1) \
_(ENCAP_SET_DF, "encap-set-df", 0x2) \
_(ENCAP_COPY_DSCP, "encap-copy-dscp", 0x4) \
_(ENCAP_COPY_ECN, "encap-copy-ecn", 0x8) \
_(DECAP_COPY_ECN, "decap-copy-ecn", 0x10)

Keep these idenitical to those in ipip.api.

Definition at line 40 of file tunnel.h.

◆ TUNNEL_FLAG_MASK

#define TUNNEL_FLAG_MASK   (0x1f)

Definition at line 55 of file tunnel.h.

Typedef Documentation

◆ tunnel_encap_decap_flags_t

◆ tunnel_mode_t

Enumeration Type Documentation

◆ tunnel_encap_decap_flags_t_

Enumerator
forech_tunnel_encap_decap_flag 

Definition at line 48 of file tunnel.h.

◆ tunnel_mode_t_

Enumerator
foreach_tunnel_mode 

Definition at line 27 of file tunnel.h.

Function Documentation

◆ format_tunnel_encap_decap_flags()

u8* format_tunnel_encap_decap_flags ( u8 s,
va_list *  args 
)

Definition at line 52 of file tunnel.c.

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

◆ format_tunnel_mode()

u8* format_tunnel_mode ( u8 s,
va_list *  args 
)

Definition at line 21 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 38 of file tunnel.c.

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