无法理解和映射 /proc/net/tcp 的输出

无法理解和映射 /proc/net/tcp 的输出

我的 ubuntu 12.10 上 /proc/net/tcp 的输出如下:

sl  local_address rem_address   st tx_queue rx_queue tr tm->when retrnsmt   uid  timeout inode                                                     
   0: 0100007F:0CEA 00000000:0000 0A 00000000:00000000 00:00000000 00000000   115        0 14759 **1 0000000000000000 100 0 0 10 -1** 

所以我们可以看到显示的数据列数比列名多。所以如果我最后看到,我可以找到以下内容:

uid ->115

timeout->0

inode->14759

有人能告诉我 inode 列后面的值是什么吗?1 0000000000000000 100 0 0 10 -1

答案1

CPAN 中有详细说明Linux::Proc::Net::TCP模块页面:

 1000        0 54165785 4 cd1e6040 25 4 27 3 -1
    |        |    |     |    |     |  | |  |  |--> slow start size threshold, 
    |        |    |     |    |     |  | |  |      or -1 if the threshold
    |        |    |     |    |     |  | |  |      is >= 0xFFFF
    |        |    |     |    |     |  | |  |----> sending congestion window
    |        |    |     |    |     |  | |-------> (ack.quick<<1)|ack.pingpong
    |        |    |     |    |     |  |---------> Predicted tick of soft clock
    |        |    |     |    |     |              (delayed ACK control data)
    |        |    |     |    |     |------------> retransmit timeout
    |        |    |     |    |------------------> location of socket in memory
    |        |    |     |-----------------------> socket reference count
    |        |    |-----------------------------> inode
    |        |----------------------------------> unanswered 0-window probes
    |---------------------------------------------> uid

相关内容