D:\archer\code\nuttx\net\procfs\net_tcp.c(63,15): error C2057: expected constant expression Compiler error C2057: The context requires a constant expression, an expression whose value is known at compile time. Reference: https://learn.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/compiler-error-c2057?view=msvc-170 Signed-off-by: chao an <anchao@xiaomi.com>
Signed-off-by: chao an <anchao@xiaomi.com>
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>