diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-27 15:26:38 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-27 15:26:38 +0100 |
commit | 5f4329244ddb2dd663dfb083dd9dc7c7f9cdc23f (patch) | |
tree | c9871bdd669e27d6a585a62d45331387c32191cf /src/compat/compat.h | |
parent | allowedips: maintain per-peer list of allowedips (diff) | |
download | wireguard-linux-compat-5f4329244ddb2dd663dfb083dd9dc7c7f9cdc23f.tar.xz wireguard-linux-compat-5f4329244ddb2dd663dfb083dd9dc7c7f9cdc23f.zip |
queueing: net-next has changed signature of skb_probe_transport_header
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat/compat.h')
-rw-r--r-- | src/compat/compat.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h index e08edca..7a61e4c 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -773,6 +773,11 @@ struct __kernel_timespec { #endif #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0) +#include <linux/skbuff.h> +#define skb_probe_transport_header(a) skb_probe_transport_header(a, 0) +#endif + /* https://github.com/ClangBuiltLinux/linux/issues/7 */ #if defined( __clang__) && (!defined(CONFIG_CLANG_VERSION) || CONFIG_CLANG_VERSION < 80000) #include <linux/bug.h> |