summaryrefslogtreecommitdiffhomepage
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
parent5a45add2b3d3318ad7aa6c06c3d3612bb0094479 (diff)
compat: add missing headers for ip_tunnel_parse_protocol
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-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 &&