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), u8 * format_tunnel(u8 *s, va_list *args)
#define foreach_tunnel_encap_decap_flag
Keep these idenitical to those in ipip.api.
u32 t_fib_index
derived data
const u8 TUNNEL_ENCAP_DECAP_FLAG_MASK
uword unformat_tunnel_flags(unformat_input_t *input, va_list *args)
void tunnel_build_v4_hdr(const tunnel_t *t, ip_protocol_t next_proto, ip4_header_t *ip)
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
A representation of an IP tunnel config.
u8 * format_tunnel_flags(u8 *s, va_list *args)
#define foreach_tunnel_flag
uword unformat_tunnel_mode(unformat_input_t *input, va_list *args)
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)
tunnel_encap_decap_flags_t_
enum tunnel_flags_t_ tunnel_flags_t
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
enum ip_protocol ip_protocol_t
#define foreach_tunnel_mode
struct tunnel_t_ tunnel_t
A representation of an IP tunnel config.
enum tunnel_encap_decap_flags_t_ tunnel_encap_decap_flags_t
uword unformat_tunnel(unformat_input_t *input, va_list *args)
u32 fib_node_index_t
A typedef of a node index.
tunnel_encap_decap_flags_t t_encap_decap_flags
enum ip_dscp_t_ ip_dscp_t
void tunnel_unresolve(tunnel_t *t)
u8 * format_tunnel_mode(u8 *s, va_list *args)
enum ip_address_family_t_ ip_address_family_t
void tunnel_copy(const tunnel_t *src, tunnel_t *dst)
const u8 TUNNEL_FLAG_MASK
ip_address_family_t tunnel_get_af(const tunnel_t *t)
fib_node_index_t t_fib_entry_index
enum fib_node_type_t_ fib_node_type_t
The types of nodes in a FIB graph.
int tunnel_resolve(tunnel_t *t, fib_node_type_t child_type, index_t child_index)
uword unformat_tunnel_encap_decap_flags(unformat_input_t *input, va_list *args)
u8 * format_tunnel_encap_decap_flags(u8 *s, va_list *args)
enum tunnel_mode_t_ tunnel_mode_t