chao an
|
7190e56a14
|
net/procfs: add tcp profs support
add proc node /proc/net/tcp to show the active tcp connections from procfs
nuttx style:
server> cat /proc/net/tcp
TCP sl st flg ref tmr uack nrt rxsz local_address remote_address
1: 04 61 1 12 0 0 1024 0.0.0.0:4855 192.168.31.22:5001
2: 04 61 1 12 0 0 1024 0.0.0.0:4856 192.168.31.22:5001
3: 04 61 1 9 0 0 0 :::4853 fe80::b27b:25ff:fe28:4011:8789
4: 04 61 1 3 3 0 0 :::4854 fe80::b27b:25ff:fe28:4011:8789
linux kernel:
https://www.kernel.org/doc/Documentation/networking/proc_net_tcp.txt
Signed-off-by: chao an <anchao@xiaomi.com>
|
2022-09-09 19:33:46 +08:00 |
|