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) &&
41 if (flags & (TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP |
42 TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_ECN))
47 if (flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP)
49 if (flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_ECN)
56 if ((flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_DF) &&
66 flags_and_fragment_offset);
75 if (flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP)
77 if (flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_ECN)
86 if (flags & (TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP |
87 TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_ECN))
92 if (flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP)
94 if (flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_ECN)
107 if (flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP)
109 if (flags & 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)
127 if (flags & TUNNEL_ENCAP_DECAP_FLAG_DECAP_COPY_ECN)
135 if (flags & TUNNEL_ENCAP_DECAP_FLAG_DECAP_COPY_ECN)
143 if (flags & TUNNEL_ENCAP_DECAP_FLAG_DECAP_COPY_ECN)
151 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)
#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 void tunnel_encap_fixup_6o4_w_chksum(tunnel_encap_decap_flags_t flags, const ip6_header_t *inner, 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 u16 ip_csum_fold(ip_csum_t c)