aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat/compat.h
diff options
context:
space:
mode:
authorJoe Holden <jwh@zorins.us>2019-05-07 17:30:31 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-29 01:23:24 +0200
commit3e887a391e13a4c752e577d73dabb48bdd6b2c3e (patch)
tree0e24bc279f4f40f461a04031de7a5b239eb64a9e /src/compat/compat.h
parentcompat: udp_tunnel: force cast sk_data_ready (diff)
downloadwireguard-linux-compat-3e887a391e13a4c752e577d73dabb48bdd6b2c3e.tar.xz
wireguard-linux-compat-3e887a391e13a4c752e577d73dabb48bdd6b2c3e.zip
socket: set ignore_df=1 on xmit
This allows the kernel to generate ipv6 fragments. Apply the same to ipv4 for consistency. Signed-off-by: Joe Holden <jwh@zorins.us> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat/compat.h')
-rw-r--r--src/compat/compat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h
index 6ee3ac8..e8fa1ab 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -778,6 +778,9 @@ struct __kernel_timespec {
#define skb_probe_transport_header(a) skb_probe_transport_header(a, 0)
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 16, 0) && !defined(ISRHEL7)
+#define ignore_df local_df
+#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0)
/* Note that all intentional uses of the non-_bh variety need to explicitly