~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/networking/proc_net_tcp.rst

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 .. SPDX-License-Identifier: GPL-2.0
  2 
  3 ============================================
  4 The proc/net/tcp and proc/net/tcp6 variables
  5 ============================================
  6 
  7 This document describes the interfaces /proc/net/tcp and /proc/net/tcp6.
  8 Note that these interfaces are deprecated in favor of tcp_diag.
  9 
 10 These /proc interfaces provide information about currently active TCP
 11 connections, and are implemented by tcp4_seq_show() in net/ipv4/tcp_ipv4.c
 12 and tcp6_seq_show() in net/ipv6/tcp_ipv6.c, respectively.
 13 
 14 It will first list all listening TCP sockets, and next list all established
 15 TCP connections. A typical entry of /proc/net/tcp would look like this (split
 16 up into 3 parts because of the length of the line)::
 17 
 18    46: 010310AC:9C4C 030310AC:1770 01
 19    |      |      |      |      |   |--> connection state
 20    |      |      |      |      |------> remote TCP port number
 21    |      |      |      |-------------> remote IPv4 address
 22    |      |      |--------------------> local TCP port number
 23    |      |---------------------------> local IPv4 address
 24    |----------------------------------> number of entry
 25 
 26    00000150:00000000 01:00000019 00000000
 27       |        |     |     |       |--> number of unrecovered RTO timeouts
 28       |        |     |     |----------> number of jiffies until timer expires
 29       |        |     |----------------> timer_active (see below)
 30       |        |----------------------> receive-queue
 31       |-------------------------------> transmit-queue
 32 
 33    1000        0 54165785 4 cd1e6040 25 4 27 3 -1
 34     |          |    |     |    |     |  | |  | |--> slow start size threshold,
 35     |          |    |     |    |     |  | |  |      or -1 if the threshold
 36     |          |    |     |    |     |  | |  |      is >= 0xFFFF
 37     |          |    |     |    |     |  | |  |----> sending congestion window
 38     |          |    |     |    |     |  | |-------> (ack.quick<<1)|ack.pingpong
 39     |          |    |     |    |     |  |---------> Predicted tick of soft clock
 40     |          |    |     |    |     |              (delayed ACK control data)
 41     |          |    |     |    |     |------------> retransmit timeout
 42     |          |    |     |    |------------------> location of socket in memory
 43     |          |    |     |-----------------------> socket reference count
 44     |          |    |-----------------------------> inode
 45     |          |----------------------------------> unanswered 0-window probes
 46     |---------------------------------------------> uid
 47 
 48 timer_active:
 49 
 50  ==  ================================================================
 51   0  no timer is pending
 52   1  retransmit-timer is pending
 53   2  another timer (e.g. delayed ack or keepalive) is pending
 54   3  this is a socket in TIME_WAIT state. Not all fields will contain
 55      data (or even exist)
 56   4  zero window probe timer is pending
 57  ==  ================================================================

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php