diff options
author | David Howells <dhowells@redhat.com> | 2018-10-15 11:31:03 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-15 22:52:58 -0700 |
commit | bc0e7cf43370a8e229224623f516c9b0396e08b9 (patch) | |
tree | 3e2c9ed630a0e37e2203e50460038040509119ef /net/rxrpc/net_ns.c | |
parent | d275444cc36130313119777fefd077b7d575d040 (diff) |
rxrpc: Add /proc/net/rxrpc/peers to display peer list
Add /proc/net/rxrpc/peers to display the list of peers currently active.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rxrpc/net_ns.c')
-rw-r--r-- | net/rxrpc/net_ns.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/rxrpc/net_ns.c b/net/rxrpc/net_ns.c index 417d80867c4f..fd7eba8467fa 100644 --- a/net/rxrpc/net_ns.c +++ b/net/rxrpc/net_ns.c @@ -102,6 +102,9 @@ static __net_init int rxrpc_init_net(struct net *net) proc_create_net("conns", 0444, rxnet->proc_net, &rxrpc_connection_seq_ops, sizeof(struct seq_net_private)); + proc_create_net("peers", 0444, rxnet->proc_net, + &rxrpc_peer_seq_ops, + sizeof(struct seq_net_private)); return 0; err_proc: |