diff options
Diffstat (limited to 'include/linux/tcp.h')
-rw-r--r-- | include/linux/tcp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/tcp.h b/include/linux/tcp.h index 911d937fb4c1..c6b9f92e8289 100644 --- a/include/linux/tcp.h +++ b/include/linux/tcp.h | |||
@@ -180,7 +180,7 @@ struct tcp_md5sig { | |||
180 | 180 | ||
181 | static inline struct tcphdr *tcp_hdr(const struct sk_buff *skb) | 181 | static inline struct tcphdr *tcp_hdr(const struct sk_buff *skb) |
182 | { | 182 | { |
183 | return (struct tcphdr *)skb->h.raw; | 183 | return (struct tcphdr *)skb_transport_header(skb); |
184 | } | 184 | } |
185 | 185 | ||
186 | static inline unsigned int tcp_hdrlen(const struct sk_buff *skb) | 186 | static inline unsigned int tcp_hdrlen(const struct sk_buff *skb) |