aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/tcp_ipv6.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2008-10-07 14:41:57 -0400
committerDavid S. Miller <davem@davemloft.net>2008-10-07 14:41:57 -0400
commit9a1f27c48065ce713eb47f2fd475b717e63ef239 (patch)
tree79ebeb8386b98aca595625b9d2db26bd52a8077d /net/ipv6/tcp_ipv6.c
parentc7004482e8dcb7c3c72666395cfa98a216a4fb70 (diff)
inet_hashtables: Add inet_lookup_skb helpers
To be able to use the cached socket reference in the skb during input processing we add a new set of lookup functions that receive the skb on their argument list. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: KOVACS Krisztian <hidden@sch.bme.hu> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
-rw-r--r--net/ipv6/tcp_ipv6.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index df16b68644e7..6268d266c034 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -1681,11 +1681,7 @@ static int tcp_v6_rcv(struct sk_buff *skb)
1681 TCP_SKB_CB(skb)->flags = ipv6_get_dsfield(ipv6_hdr(skb)); 1681 TCP_SKB_CB(skb)->flags = ipv6_get_dsfield(ipv6_hdr(skb));
1682 TCP_SKB_CB(skb)->sacked = 0; 1682 TCP_SKB_CB(skb)->sacked = 0;
1683 1683
1684 sk = __inet6_lookup(net, &tcp_hashinfo, 1684 sk = __inet6_lookup_skb(&tcp_hashinfo, skb, th->source, th->dest);
1685 &ipv6_hdr(skb)->saddr, th->source,
1686 &ipv6_hdr(skb)->daddr, ntohs(th->dest),
1687 inet6_iif(skb));
1688
1689 if (!sk) 1685 if (!sk)
1690 goto no_tcp_socket; 1686 goto no_tcp_socket;
1691 1687