projects
/
~tnikolova
/
compat
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
compat-4.5.h: Added skb_inner_transport_offset
[~tnikolova/compat/.git]
/
include
/
linux
/
compat-4.5.h
diff --git
a/include/linux/compat-4.5.h
b/include/linux/compat-4.5.h
index
6621346
..
c4fe561
100644
(file)
--- 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
#define NETIF_F_CSUM_MASK NETIF_F_ALL_CSUM
#endif
+#include <linux/skbuff.h>
+
+#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 */
#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(4,5,0)) */
#endif /* LINUX_4_5_COMPAT_H */