diff options
author | Eric Dumazet <edumazet@google.com> | 2015-03-12 19:44:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-12 22:58:13 -0400 |
commit | d4f06873b636519cedbe8d2eeae77c713c6a121c (patch) | |
tree | 7025fa2ff2b8cf9e701de46ce7c71a1553f1a19a /net/ipv6 | |
parent | 41b822c59e21414d829bcfd00df0c8f7f13b1b95 (diff) |
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>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 5d46832c6f72..1ccfede7d55f 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -1689,7 +1689,7 @@ static void tcp_v6_destroy_sock(struct sock *sk) | |||
1689 | #ifdef CONFIG_PROC_FS | 1689 | #ifdef CONFIG_PROC_FS |
1690 | /* Proc filesystem TCPv6 sock list dumping. */ | 1690 | /* Proc filesystem TCPv6 sock list dumping. */ |
1691 | static void get_openreq6(struct seq_file *seq, | 1691 | static void get_openreq6(struct seq_file *seq, |
1692 | const struct sock *sk, struct request_sock *req, int i, kuid_t uid) | 1692 | struct request_sock *req, int i, kuid_t uid) |
1693 | { | 1693 | { |
1694 | int ttd = req->expires - jiffies; | 1694 | int ttd = req->expires - jiffies; |
1695 | const struct in6_addr *src = &inet_rsk(req)->ir_v6_loc_addr; | 1695 | const struct in6_addr *src = &inet_rsk(req)->ir_v6_loc_addr; |
@@ -1827,7 +1827,7 @@ static int tcp6_seq_show(struct seq_file *seq, void *v) | |||
1827 | get_tcp6_sock(seq, v, st->num); | 1827 | get_tcp6_sock(seq, v, st->num); |
1828 | break; | 1828 | break; |
1829 | case TCP_SEQ_STATE_OPENREQ: | 1829 | case TCP_SEQ_STATE_OPENREQ: |
1830 | get_openreq6(seq, st->syn_wait_sk, v, st->num, st->uid); | 1830 | get_openreq6(seq, v, st->num, st->uid); |
1831 | break; | 1831 | break; |
1832 | } | 1832 | } |
1833 | out: | 1833 | out: |