diff options
author | Bruno Wolff III <bruno@wolff.to> | 2019-03-14 13:25:34 -0500 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-14 12:49:42 -0600 |
commit | bea17c2bd2bcc0035bd0830e2f6592930dac574e (patch) | |
tree | ce39224ea1f6b31268b70cfab60ee1b06ff5cede /src/compat/compat.h | |
parent | 77e5db5286d52282459729b7580945528607eab8 (diff) |
compat: nf_nat_core.h was removed upstream
In d2c5c103b133 ("netfilter: nat: remove nf_nat_l3proto.h and
nf_nat_core.h").
Signed-off-by: Bruno Wolff III <bruno@wolff.to>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat/compat.h')
-rw-r--r-- | src/compat/compat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h index 7a61e4c..2dcdbae 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -792,7 +792,9 @@ struct __kernel_timespec { #include <net/ipv6.h> #include <net/icmp.h> #include <net/netfilter/nf_conntrack.h> +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0) #include <net/netfilter/nf_nat_core.h> +#endif static inline void new_icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info) { enum ip_conntrack_info ctinfo; |