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/udp to show the active udp connections from procfs nuttx style: server> cat /proc/net/udp UDP sl local_address remote_address flg txsz rxsz (IPv4) 1: 0.0.0.0: 5285 192.168.31.22: 7779 9 0 1041 2: 0.0.0.0: 5286 192.168.31.22: 7779 9 0 1041 3: 0.0.0.0: 5287 192.168.31.22: 7779 9 0 1041 linux kernel: https://www.kernel.org/doc/Documentation/networking/proc_net_tcp.txt Signed-off-by: chao an <anchao@xiaomi.com>