|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
24 #define foreach_tunnel_mode \
25 _(P2P, "point-to-point") \
26 _(MP, "multi-point") \
30 #define _(n, s) TUNNEL_MODE_##n,
41 #define foreach_tunnel_encap_decap_flag \
42 _ (NONE, "none", 0x0) \
43 _ (ENCAP_COPY_DF, "encap-copy-df", 0x1) \
44 _ (ENCAP_SET_DF, "encap-set-df", 0x2) \
45 _ (ENCAP_COPY_DSCP, "encap-copy-dscp", 0x4) \
46 _ (ENCAP_COPY_ECN, "encap-copy-ecn", 0x8) \
47 _ (DECAP_COPY_ECN, "decap-copy-ecn", 0x10) \
48 _ (ENCAP_INNER_HASH, "encap-inner-hash", 0x20) \
49 _ (ENCAP_COPY_HOP_LIMIT, "encap-copy-hop-limit", 0x40) \
50 _ (ENCAP_COPY_FLOW_LABEL, "encap-copy-flow-label", 0x80)
54 #define _(a,b,c) TUNNEL_ENCAP_DECAP_FLAG_##a = c,
65 #define foreach_tunnel_flag \
66 _ (RESOLVED, 0, "resolved") \
67 _ (TRACK_MTU, 1, "track-mtu")
72 #define _(n, b, s) TUNNEL_FLAG_##n = (1 << b),
const u8 TUNNEL_FLAG_MASK
enum tunnel_encap_decap_flags_t_ tunnel_encap_decap_flags_t
enum ip_dscp_t_ ip_dscp_t
#define foreach_tunnel_encap_decap_flag
Keep these idenitical to those in ipip.api.
u8 * format_tunnel_flags(u8 *s, va_list *args)
#define foreach_tunnel_flag
void tunnel_copy(const tunnel_t *src, tunnel_t *dst)
A representation of an IP tunnel config.
enum tunnel_flags_t_ tunnel_flags_t
#define foreach_tunnel_mode
u32 t_fib_index
derived data
u8 * format_tunnel_mode(u8 *s, va_list *args)
fib_node_index_t t_fib_entry_index
uword unformat_tunnel_encap_decap_flags(unformat_input_t *input, va_list *args)
enum fib_node_type_t_ fib_node_type_t
The types of nodes in a FIB graph.
void tunnel_build_v4_hdr(const tunnel_t *t, ip_protocol_t next_proto, ip4_header_t *ip)
uword unformat_tunnel_mode(unformat_input_t *input, va_list *args)
const u8 TUNNEL_ENCAP_DECAP_FLAG_MASK
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
u32 fib_node_index_t
A typedef of a node index.
void tunnel_build_v6_hdr(const tunnel_t *t, ip_protocol_t next_proto, ip6_header_t *ip)
uword unformat_tunnel_flags(unformat_input_t *input, va_list *args)
uword unformat_tunnel(unformat_input_t *input, va_list *args)
void tunnel_contribute_forwarding(const tunnel_t *t, dpo_id_t *dpo)
enum ip_protocol ip_protocol_t
enum tunnel_mode_t_ tunnel_mode_t
u8 * format_tunnel_encap_decap_flags(u8 *s, va_list *args)
tunnel_encap_decap_flags_t t_encap_decap_flags
u8 * format_tunnel(u8 *s, va_list *args)
int tunnel_resolve(tunnel_t *t, fib_node_type_t child_type, index_t child_index)
tunnel_encap_decap_flags_t_
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
struct tunnel_t_ tunnel_t
A representation of an IP tunnel config.
ip_address_family_t tunnel_get_af(const tunnel_t *t)
void tunnel_unresolve(tunnel_t *t)
enum ip_address_family_t_ ip_address_family_t