18 #ifndef __TUNNEL_DP_H__ 19 #define __TUNNEL_DP_H__ 27 if (flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP)
29 if (flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_ECN)
31 if ((flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_DF) &&
40 if (flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP)
42 if (flags & 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)
60 if (flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP)
62 if (flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_ECN)
70 if (flags & TUNNEL_ENCAP_DECAP_FLAG_DECAP_COPY_ECN)
78 if (flags & TUNNEL_ENCAP_DECAP_FLAG_DECAP_COPY_ECN)
86 if (flags & TUNNEL_ENCAP_DECAP_FLAG_DECAP_COPY_ECN)
94 if (flags & TUNNEL_ENCAP_DECAP_FLAG_DECAP_COPY_ECN)
vl_api_wireguard_peer_flags_t flags
static ip_dscp_t ip4_header_get_dscp(const ip4_header_t *ip4)
static void ip4_header_set_ecn_w_chksum(ip4_header_t *ip4, ip_ecn_t ecn)
static void ip4_header_set_dscp(ip4_header_t *ip4, ip_dscp_t dscp)
static_always_inline ip_ecn_t ip6_ecn_network_order(const ip6_header_t *ip6)
#define static_always_inline
static_always_inline void tunnel_decap_fixup_6o6(tunnel_encap_decap_flags_t flags, ip6_header_t *inner, const ip6_header_t *outer)
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_4o4(tunnel_encap_decap_flags_t flags, ip4_header_t *inner, const ip4_header_t *outer)
static_always_inline void tunnel_encap_fixup_4o6(tunnel_encap_decap_flags_t flags, const ip4_header_t *inner, ip6_header_t *outer)
static void ip4_header_set_ecn(ip4_header_t *ip4, ip_ecn_t ecn)
static void ip4_header_set_df(ip4_header_t *ip4)
enum tunnel_encap_decap_flags_t_ tunnel_encap_decap_flags_t
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_always_inline void ip6_set_ecn_network_order(ip6_header_t *ip6, ip_ecn_t ecn)
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 tunnel_decap_fixup_4o6(tunnel_encap_decap_flags_t flags, ip4_header_t *inner, const 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)
static u8 ip4_header_get_df(const ip4_header_t *ip4)
static_always_inline void tunnel_encap_fixup_6o4(tunnel_encap_decap_flags_t flags, const ip6_header_t *inner, ip4_header_t *outer)
static ip_ecn_t ip4_header_get_ecn(const ip4_header_t *ip4)