aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/peer.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-11-04 03:38:54 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-11-04 03:38:54 +0100
commitc62e2b8f94734246b5381d67186d80b1d7d82e64 (patch)
tree516cd07c35b3a278f11e6a71f22c88c03b21cf80 /src/peer.h
parentsocket: use dst_cache instead of handrolled cache (diff)
downloadwireguard-monolithic-historical-c62e2b8f94734246b5381d67186d80b1d7d82e64.tar.xz
wireguard-monolithic-historical-c62e2b8f94734246b5381d67186d80b1d7d82e64.zip
compat: stub out dst_cache for old kernels
Diffstat (limited to 'src/peer.h')
-rw-r--r--src/peer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/peer.h b/src/peer.h
index c97d934..466946b 100644
--- a/src/peer.h
+++ b/src/peer.h
@@ -10,7 +10,9 @@
#include <linux/netfilter.h>
#include <linux/spinlock.h>
#include <linux/kref.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
#include <net/dst_cache.h>
+#endif
struct wireguard_device;