1 #ifndef __LINUX_TCP_WRAPPER_H
2 #define __LINUX_TCP_WRAPPER_H 1
4 #include_next <linux/tcp.h>
6 #include <linux/version.h>
7 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
10 static inline struct tcphdr *tcp_hdr(const struct sk_buff *skb)
12 return (struct tcphdr *)skb_transport_header(skb);
14 #endif /* __KERNEL__ */
16 #endif /* linux kernel < 2.6.22 */