aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat/checksum
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-11-29 02:02:31 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2017-11-29 02:02:31 +0100
commitd698467a75c497a5b0dcb09775b7c2e9e12e0976 (patch)
tree3555d95d0f07a74edd81df6063af36a614222882 /src/compat/checksum
parentdevice: do not clear keys during sleep on Android (diff)
downloadwireguard-monolithic-historical-d698467a75c497a5b0dcb09775b7c2e9e12e0976.tar.xz
wireguard-monolithic-historical-d698467a75c497a5b0dcb09775b7c2e9e12e0976.zip
compat: fix 3.10 backport
For archs that do not provide the magic csum function, we need to provide the generic function. Also, some obscure 3.10s have backported the int size macros, so we ifndef around that to avoid potentially fatal warnings.
Diffstat (limited to 'src/compat/checksum')
-rw-r--r--src/compat/checksum/checksum_partial_compat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compat/checksum/checksum_partial_compat.h b/src/compat/checksum/checksum_partial_compat.h
index 5175d84..147b0a6 100644
--- a/src/compat/checksum/checksum_partial_compat.h
+++ b/src/compat/checksum/checksum_partial_compat.h
@@ -2,6 +2,8 @@
#include <net/esp.h>
#include <net/ip.h>
#include <net/ipv6.h>
+#include <net/ip6_checksum.h>
+
#define IP6_MF 0x0001
#define IP6_OFFSET 0xFFF8
static inline int skb_maybe_pull_tail(struct sk_buff *skb, unsigned int len, unsigned int max)