diff options
Diffstat (limited to 'backport/backport-include/linux/skbuff.h')
-rw-r--r-- | backport/backport-include/linux/skbuff.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/backport/backport-include/linux/skbuff.h b/backport/backport-include/linux/skbuff.h index 4b4ca507..5a1725db 100644 --- a/backport/backport-include/linux/skbuff.h +++ b/backport/backport-include/linux/skbuff.h @@ -15,12 +15,17 @@ #define __pskb_copy LINUX_BACKPORT(__pskb_copy) extern struct sk_buff *__pskb_copy(struct sk_buff *skb, int headroom, gfp_t gfp_mask); +#endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0) #define skb_complete_wifi_ack LINUX_BACKPORT(skb_complete_wifi_ack) static inline void skb_complete_wifi_ack(struct sk_buff *skb, bool acked) { WARN_ON(1); } +#elif LINUX_VERSION_CODE < KERNEL_VERSION(3,18,0) +#define skb_complete_wifi_ack LINUX_BACKPORT(skb_complete_wifi_ack) +void skb_complete_wifi_ack(struct sk_buff *skb, bool acked); #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(3,2,0) @@ -386,4 +391,9 @@ static inline struct sk_buff *__pskb_copy_fclone(struct sk_buff *skb, } #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,18,0) +#define skb_clone_sk LINUX_BACKPORT(skb_clone_sk) +struct sk_buff *skb_clone_sk(struct sk_buff *skb); +#endif + #endif /* __BACKPORT_SKBUFF_H */ |