From: t_jeang Date: Tue, 6 Jan 2009 12:05:21 +0000 (+0000) Subject: Backport of aa8223c7bb0b05183e1737881ed21827aa5b9e73 providing a X-Git-Tag: git-eddc9ec53be2ecdbf4efe0efd4a83052594f0ac0-backport X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a9dc42f1520f71de3bce8e9dcd22492b869beb8a;p=xenclient%2Fkernel.git Backport of aa8223c7bb0b05183e1737881ed21827aa5b9e73 providing a functional alternative without removing the th filed. commit aa8223c7bb0b05183e1737881ed21827aa5b9e73 Author: Arnaldo Carvalho de Melo Date: Tue Apr 10 21:04:22 2007 -0700 [SK_BUFF]: Introduce tcp_hdr(), remove skb->h.th Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller --- diff --git a/include/linux/tcp.h b/include/linux/tcp.h index 8ebf4979..cd641f8e 100644 --- a/include/linux/tcp.h +++ b/include/linux/tcp.h @@ -165,6 +165,11 @@ struct tcp_info #include #include +static inline struct tcphdr *tcp_hdr(const struct sk_buff *skb) +{ + return skb->h.th; +} + /* This defines a selective acknowledgement block. */ struct tcp_sack_block { __u32 start_seq;