mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
41b822c59e
commit
d4f06873b6
3 changed files with 7 additions and 8 deletions
|
@ -1689,7 +1689,7 @@ static void tcp_v6_destroy_sock(struct sock *sk)
|
|||
#ifdef CONFIG_PROC_FS
|
||||
/* Proc filesystem TCPv6 sock list dumping. */
|
||||
static void get_openreq6(struct seq_file *seq,
|
||||
const struct sock *sk, struct request_sock *req, int i, kuid_t uid)
|
||||
struct request_sock *req, int i, kuid_t uid)
|
||||
{
|
||||
int ttd = req->expires - jiffies;
|
||||
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)
|
|||
get_tcp6_sock(seq, v, st->num);
|
||||
break;
|
||||
case TCP_SEQ_STATE_OPENREQ:
|
||||
get_openreq6(seq, st->syn_wait_sk, v, st->num, st->uid);
|
||||
get_openreq6(seq, v, st->num, st->uid);
|
||||
break;
|
||||
}
|
||||
out:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue