|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
18 #ifndef __TUNNEL_DP_H__
19 #define __TUNNEL_DP_H__
45 TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_ECN)))
50 if (
flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP)
52 if (
flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_ECN)
69 flags_and_fragment_offset);
79 if (
flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP)
84 if (
flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP)
112 TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_ECN)))
117 if (
flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP)
119 if (
flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_ECN)
168 if (
flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP)
183 if (
flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP)
static_always_inline u32 ip6_hop_limit_network_order(const ip6_header_t *ip6)
enum tunnel_encap_decap_flags_t_ tunnel_encap_decap_flags_t
static_always_inline void tunnel_encap_fixup_mplso4(tunnel_encap_decap_flags_t flags, const mpls_unicast_header_t *inner, ip4_header_t *outer)
static_always_inline void tunnel_decap_fixup_4o6(tunnel_encap_decap_flags_t flags, ip4_header_t *inner, const ip6_header_t *outer)
static void ip4_header_set_ecn_w_chksum(ip4_header_t *ip4, ip_ecn_t ecn)
static u8 ip4_header_get_df(const ip4_header_t *ip4)
static_always_inline u32 ip6_flow_label_network_order(const ip6_header_t *ip6)
static_always_inline void tunnel_encap_fixup_mplso6(tunnel_encap_decap_flags_t flags, const vlib_buffer_t *b, const mpls_unicast_header_t *inner, ip6_header_t *outer)
static_always_inline void tunnel_encap_fixup_mplso4_w_chksum(tunnel_encap_decap_flags_t flags, const mpls_unicast_header_t *inner, ip4_header_t *outer)
static_always_inline void tunnel_encap_fixup_6o4(tunnel_encap_decap_flags_t flags, const ip6_header_t *inner, ip4_header_t *outer)
static_always_inline void ip6_set_dscp_network_order(ip6_header_t *ip6, ip_dscp_t dscp)
static_always_inline ip_dscp_t ip6_dscp_network_order(const ip6_header_t *ip6)
static void ip4_header_set_df(ip4_header_t *ip4)
static_always_inline void tunnel_encap_fixup_6o6(tunnel_encap_decap_flags_t flags, const ip6_header_t *inner, ip6_header_t *outer)
static_always_inline void tunnel_decap_fixup_6o4(tunnel_encap_decap_flags_t flags, ip6_header_t *inner, const ip4_header_t *outer)
#define static_always_inline
static_always_inline void tunnel_encap_fixup_6o4_w_chksum(tunnel_encap_decap_flags_t flags, const ip6_header_t *inner, ip4_header_t *outer)
#define IP_FLOW_HASH_DEFAULT
Default: 5-tuple + flowlabel without the "reverse" bit.
static void ip4_header_set_ecn(ip4_header_t *ip4, ip_ecn_t ecn)
static void ip4_header_set_dscp(ip4_header_t *ip4, ip_dscp_t dscp)
static u32 vnet_mpls_uc_get_exp(mpls_label_t label_exp_s_ttl)
static u32 mpls_compute_flow_hash(const mpls_unicast_header_t *hdr, flow_hash_config_t flow_hash_config)
static_always_inline void tunnel_encap_fixup_4o4(tunnel_encap_decap_flags_t flags, const ip4_header_t *inner, ip4_header_t *outer)
static_always_inline void ip6_set_flow_label_network_order(ip6_header_t *ip6, u32 flow_label)
static_always_inline void tunnel_decap_fixup_6o6(tunnel_encap_decap_flags_t flags, ip6_header_t *inner, const ip6_header_t *outer)
static ip_dscp_t ip4_header_get_dscp(const ip4_header_t *ip4)
static_always_inline void tunnel_decap_fixup_mplso6(tunnel_encap_decap_flags_t flags, mpls_unicast_header_t *inner, const ip6_header_t *outer)
static void ip4_header_set_ttl(ip4_header_t *ip4, u8 ttl)
static_always_inline void ip6_set_ecn_network_order(ip6_header_t *ip6, ip_ecn_t ecn)
static u32 ip4_compute_flow_hash(const ip4_header_t *ip, flow_hash_config_t flow_hash_config)
#define ip_csum_update(sum, old, new, type, field)
static ip_ecn_t ip4_header_get_ecn(const ip4_header_t *ip4)
static_always_inline ip_ecn_t ip6_ecn_network_order(const ip6_header_t *ip6)
static_always_inline void tunnel_decap_fixup_mplso4(tunnel_encap_decap_flags_t flags, mpls_unicast_header_t *inner, const ip4_header_t *outer)
static_always_inline void tunnel_encap_fixup_4o4_w_chksum(tunnel_encap_decap_flags_t flags, const ip4_header_t *inner, ip4_header_t *outer)
static_always_inline void tunnel_encap_fixup_4o6(tunnel_encap_decap_flags_t flags, const vlib_buffer_t *b, const ip4_header_t *inner, ip6_header_t *outer)
static u16 ip_csum_fold(ip_csum_t c)
static_always_inline void ip6_set_hop_limit_network_order(ip6_header_t *ip6, u8 hop_limit)
static u8 ip4_header_get_ttl(const ip4_header_t *ip4)
static_always_inline void tunnel_decap_fixup_4o4(tunnel_encap_decap_flags_t flags, ip4_header_t *inner, const ip4_header_t *outer)
VLIB buffer representation.
vl_api_wireguard_peer_flags_t flags