diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2008-10-07 14:41:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-07 14:41:57 -0400 |
commit | 9a1f27c48065ce713eb47f2fd475b717e63ef239 (patch) | |
tree | 79ebeb8386b98aca595625b9d2db26bd52a8077d /net/ipv4/tcp_ipv4.c | |
parent | c7004482e8dcb7c3c72666395cfa98a216a4fb70 (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/ipv4/tcp_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 8b24bd833cb4..24ffc5e1d3da 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -1577,8 +1577,7 @@ int tcp_v4_rcv(struct sk_buff *skb) | |||
1577 | TCP_SKB_CB(skb)->flags = iph->tos; | 1577 | TCP_SKB_CB(skb)->flags = iph->tos; |
1578 | TCP_SKB_CB(skb)->sacked = 0; | 1578 | TCP_SKB_CB(skb)->sacked = 0; |
1579 | 1579 | ||
1580 | sk = __inet_lookup(net, &tcp_hashinfo, iph->saddr, | 1580 | sk = __inet_lookup_skb(&tcp_hashinfo, skb, th->source, th->dest); |
1581 | th->source, iph->daddr, th->dest, inet_iif(skb)); | ||
1582 | if (!sk) | 1581 | if (!sk) |
1583 | goto no_tcp_socket; | 1582 | goto no_tcp_socket; |
1584 | 1583 | ||