path: root/net/ipv6/tcp_ipv6.c
diff options
authorEric Dumazet <edumazet@google.com>2015-03-24 21:45:56 -0700
committerDavid S. Miller <davem@davemloft.net>2015-03-25 00:57:48 -0400
commit0144a81cccf7532bead90f0542f517bd028d3b3c (patch)
treeee5dd135f364e5111388180183f9a4d4918b3ecb /net/ipv6/tcp_ipv6.c
parentd631b94e7a15277858ec5f88d674d93080506999 (diff)
tcp: fix ipv4 mapped request socks
ss should display ipv4 mapped request sockets like this : tcp SYN-RECV 0 0 ::ffff: ::ffff: and not like this : tcp SYN-RECV 0 0 We should init ireq->ireq_family based on listener sk_family, not the actual protocol carried by SYN packet. This means we can set ireq_family in inet_reqsk_alloc() Fixes: 3f66b083a5b7 ("inet: introduce ireq_family") Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index a9568caf4675..cbdf6912d2c6 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -688,7 +688,6 @@ static void tcp_v6_init_req(struct request_sock *req, struct sock *sk,
ireq->pktopts = skb;
- ireq->ireq_family = AF_INET6;
static struct dst_entry *tcp_v6_route_req(struct sock *sk, struct flowi *fl,

Privacy Policy