aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat/compat.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-07-29 09:54:05 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2020-07-29 10:14:15 +0200
commit4213ef0109a388311763542b4b0cf77f1d01777e (patch)
treee36ef5c87f0beb432e19864c73d7a17e58d76542 /src/compat/compat.h
parentcompat: ipv6_dst_lookup_flow was ported to rhel 7.9 beta (diff)
downloadwireguard-linux-compat-4213ef0109a388311763542b4b0cf77f1d01777e.tar.xz
wireguard-linux-compat-4213ef0109a388311763542b4b0cf77f1d01777e.zip
compat: add missing headers for ip_tunnel_parse_protocol
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat/compat.h')
-rw-r--r--src/compat/compat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h
index 7236cfe..fde263c 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -1048,6 +1048,8 @@ static inline void skb_reset_redirect(struct sk_buff *skb)
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 8, 0)
#include <linux/skbuff.h>
+#include <linux/ip.h>
+#include <linux/ipv6.h>
static inline __be16 ip_tunnel_parse_protocol(const struct sk_buff *skb)
{
if (skb_network_header(skb) >= skb->head &&