From 876874e0066384dd8cbcb73e37ffffd197c92b8e Mon Sep 17 00:00:00 2001 From: Vladimir Sokolovsky Date: Mon, 7 Nov 2016 15:46:24 +0200 Subject: [PATCH 1/1] compat-4.5.h: Added skb_inner_transport_offset Signed-off-by: Vladimir Sokolovsky --- include/linux/compat-4.5.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/linux/compat-4.5.h b/include/linux/compat-4.5.h index 6621346..c4fe561 100644 --- a/include/linux/compat-4.5.h +++ b/include/linux/compat-4.5.h @@ -11,6 +11,14 @@ #define NETIF_F_CSUM_MASK NETIF_F_ALL_CSUM #endif +#include + +#define skb_inner_transport_offset LINUX_BACKPORT(skb_inner_transport_offset) +static inline int skb_inner_transport_offset(const struct sk_buff *skb) +{ + return skb_inner_transport_header(skb) - skb->data; +} + #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(4,5,0)) */ #endif /* LINUX_4_5_COMPAT_H */ -- 2.17.1