]> xenbits.xensource.com Git - xenclient/kernel.git/commitdiff
Backport of aa8223c7bb0b05183e1737881ed21827aa5b9e73 providing a git-eddc9ec53be2ecdbf4efe0efd4a83052594f0ac0-backport
authort_jeang <devnull@localhost>
Tue, 6 Jan 2009 12:05:21 +0000 (12:05 +0000)
committert_jeang <devnull@localhost>
Tue, 6 Jan 2009 12:05:21 +0000 (12:05 +0000)
functional alternative without removing the th filed.

commit aa8223c7bb0b05183e1737881ed21827aa5b9e73
Author: Arnaldo Carvalho de Melo <acme@redhat.com>
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 <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/tcp.h

index 8ebf497907f8ec8cb8e014b8ff2f5f840261a3f5..cd641f8ef4c5db33be1fbb650e03f4b07bf1a528 100644 (file)
@@ -165,6 +165,11 @@ struct tcp_info
 #include <net/inet_connection_sock.h>
 #include <net/inet_timewait_sock.h>
 
+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;