From 17b69106e17e7b372514549b4e35fd8733d2d81c Mon Sep 17 00:00:00 2001 From: Joe Holden Date: Tue, 7 May 2019 17:30:31 +0000 Subject: 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 --- src/compat/compat.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/compat') 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 -- cgit v1.2.3-59-g8ed1b