inet: get_openreq4() & get_openreq6() do not need listener
authorEric Dumazet <edumazet@google.com>
Thu, 12 Mar 2015 23:44:09 +0000 (16:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Mar 2015 02:58:13 +0000 (22:58 -0400)
commitd4f06873b636519cedbe8d2eeae77c713c6a121c
tree7025fa2ff2b8cf9e701de46ce7c71a1553f1a19a
parent41b822c59e21414d829bcfd00df0c8f7f13b1b95
inet: get_openreq4() & get_openreq6() do not need listener

ireq->ir_num contains local port, use it.

Also, get_openreq4() dumping listen_sk->refcnt makes litle sense.

inet_diag_fill_req() can also use ireq->ir_num

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_diag.c
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c