Linux /proc/net/udp中字段的含义

Linux /proc/net/udp中字段的含义,linux,udp,Linux,Udp,我想了解/proc/net/udp和/proc/net/snmp中的每个字段的含义: # cat /proc/net/udp sl local_address rem_address st tx_queue rx_queue tr tm->when retrnsmt uid timeout inode ref pointer drops 4: 00000000:006F 00000000:0000 07 00000000:00000000 00:00000000 0000

我想了解/proc/net/udp和/proc/net/snmp中的每个字段的含义:

# cat /proc/net/udp
 sl  local_address rem_address   st tx_queue rx_queue tr tm->when retrnsmt   uid  timeout inode ref pointer drops
  4: 00000000:006F 00000000:0000 07 00000000:00000000 00:00000000 00000000     0        0 10777 2 ffff88023bbd3a80 0
110: 00000000:4959 00000000:0000 07 00000000:00000000 00:00000000 00000000     0        0 10975 2 ffff88023bbd30c0 0
122: 00000000:0265 00000000:0000 07 00000000:00000000 00:00000000 00000000     0        0 10781 2 ffff88023bbd3400 0

# cat /proc/net/snmp
Udp: InDatagrams NoPorts InErrors OutDatagrams RcvbufErrors SndbufErrors
Udp: 768010194 3069028933 1052487950 17032 68916498 0

/proc/net/udp

保存UDP套接字表的转储。很多信息都不是 除了调试之外,还有其他用途。“sl”值是内核哈希槽 对于套接字,“本地地址”是本地地址和端口 数字对。“rem_地址”是远程地址和端口号 配对(如果已连接)。“St”是插座的内部状态。这个 “tx_队列”和“rx_队列”是中的传出和传入数据队列 内核内存使用的术语。“tr”、“tm->when”和“rexmits” UDP不使用字段。“uid”字段保存的是的有效uid 套接字的创建者

也看到

/proc/net/snmp

此文件保存SNMP代理的IP、ICMP、TCP和UDP管理信息库所需的ASCII数据


中,应在unix.stackexchange.com上重新定位此文件?感谢您的回复。最后一列“drop”表示什么?请参阅。。。丢弃的数据包只是另一个查询,我在端口514上发送数据包,但是在/proc/net/udp中,我在文件中没有看到端口的条目。如何获取端口514的统计信息?00000000:202未显示在输出中。我确实在/proc/net/udp6而不是/proc/net/udp中看到端口514的套接字条目。但不幸的是,丢弃计数仍然为0,即使我轰炸了50000个udp数据包。