aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/tcp_ipv6.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
-rw-r--r--net/ipv6/tcp_ipv6.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index 30dbab7cc3cc..fc5f7166208a 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -1617,6 +1617,7 @@ static int tcp_v6_rcv(struct sk_buff *skb)
1617 struct tcphdr *th; 1617 struct tcphdr *th;
1618 struct sock *sk; 1618 struct sock *sk;
1619 int ret; 1619 int ret;
1620 struct net *net = dev_net(skb->dev);
1620 1621
1621 if (skb->pkt_type != PACKET_HOST) 1622 if (skb->pkt_type != PACKET_HOST)
1622 goto discard_it; 1623 goto discard_it;
@@ -1648,7 +1649,7 @@ static int tcp_v6_rcv(struct sk_buff *skb)
1648 TCP_SKB_CB(skb)->flags = ipv6_get_dsfield(ipv6_hdr(skb)); 1649 TCP_SKB_CB(skb)->flags = ipv6_get_dsfield(ipv6_hdr(skb));
1649 TCP_SKB_CB(skb)->sacked = 0; 1650 TCP_SKB_CB(skb)->sacked = 0;
1650 1651
1651 sk = __inet6_lookup(dev_net(skb->dev), &tcp_hashinfo, 1652 sk = __inet6_lookup(net, &tcp_hashinfo,
1652 &ipv6_hdr(skb)->saddr, th->source, 1653 &ipv6_hdr(skb)->saddr, th->source,
1653 &ipv6_hdr(skb)->daddr, ntohs(th->dest), 1654 &ipv6_hdr(skb)->daddr, ntohs(th->dest),
1654 inet6_iif(skb)); 1655 inet6_iif(skb));