aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorVijay Subramanian <subramanian.vijay@gmail.com>2012-06-23 13:38:10 -0400
committerDavid S. Miller <davem@davemloft.net>2012-06-24 02:22:38 -0400
commit7011d0851b80a1a229acfda37ce08aad903b12d1 (patch)
tree21d5572e6c6a0bc973fcc11c00e01e0de0491c86 /net/ipv4/tcp_ipv4.c
parent0b4a9e1a591ca92726d32dbe043eb737734c6a0e (diff)
tcp: Fix bug in tcp socket early demux
The dest port for the call to __inet_lookup_established() in TCP early demux code is passed with the wrong endian-ness. This causes the lookup to fail leading to early demux not being used. Signed-off-by: Vijay Subramanian <subramanian.vijay@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r--net/ipv4/tcp_ipv4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index b52934f5334e..1781dc650b9d 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -1701,7 +1701,7 @@ int tcp_v4_early_demux(struct sk_buff *skb)
1701 dev = skb->dev; 1701 dev = skb->dev;
1702 sk = __inet_lookup_established(net, &tcp_hashinfo, 1702 sk = __inet_lookup_established(net, &tcp_hashinfo,
1703 iph->saddr, th->source, 1703 iph->saddr, th->source,
1704 iph->daddr, th->dest, 1704 iph->daddr, ntohs(th->dest),
1705 dev->ifindex); 1705 dev->ifindex);
1706 if (sk) { 1706 if (sk) {
1707 skb->sk = sk; 1707 skb->sk = sk;