diff options
author | Joe Holden <jwh@zorins.us> | 2019-05-12 17:41:50 +0000 |
---|---|---|
committer | Joe Holden <jwh@zorins.us> | 2019-05-12 17:41:50 +0000 |
commit | b0d812a14745610129eca6abe9d612588542b4c5 (patch) | |
tree | 3b7a6862d9d4c0bd281c456fb6d83891de9cb8e6 | |
parent | Allow the kernel to generate ipv6 fragments, apply the same to ipv4 for consistency (diff) | |
download | wireguard-monolithic-historical-jh/ignore-df.tar.xz wireguard-monolithic-historical-jh/ignore-df.zip |
compat: on older kernels, ignore_df might be local_dfjh/ignore-df
-rw-r--r-- | src/compat/compat.h | 3 |
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 |