Message ID | 20210315132103.129386-1-linux@fw-web.de (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: wireguard: fix error with icmp{,v6}_ndo_send in 5.4 | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Guessing tree name failed - patch did not apply |
Hi, sorry, please ignore this wireguard was included with 5.6, my 5.4 uses external wireguard regards Frank
diff --git a/net/wireguard/compat/compat.h b/net/wireguard/compat/compat.h index 42f7beecaa5c..7cdb0b253c60 100644 --- a/net/wireguard/compat/compat.h +++ b/net/wireguard/compat/compat.h @@ -956,6 +956,7 @@ static inline int skb_ensure_writable(struct sk_buff *skb, int write_len) #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0) #include <net/netfilter/nf_nat_core.h> #endif +#if !IS_ENABLED(CONFIG_NF_NAT) static inline void icmp_ndo_send(struct sk_buff *skb_in, int type, int code, __be32 info) { struct sk_buff *cloned_skb = NULL; @@ -1014,6 +1015,7 @@ static inline void icmpv6_ndo_send(struct sk_buff *skb_in, u8 type, u8 code, __u out: consume_skb(cloned_skb); } +#endif #else #define icmp_ndo_send icmp_send #define icmpv6_ndo_send icmpv6_send