]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ss: Show inet and unix sockets' shutdown state
authorPavel Emelyanov <xemul@parallels.com>
Fri, 17 May 2013 15:02:14 +0000 (08:02 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 17 May 2013 15:46:51 +0000 (08:46 -0700)
commit5b816047537bb04620718e798ec09ac9f7a0ad67
tree25026e35f89821cf6c1977a05f2c1a05d50d3bee
parent372c30d2aaaa7847b0e0554f37807355eddc58d7
ss: Show inet and unix sockets' shutdown state

When extended info is requested (-e option) one will be able to observe
arrows in the output, like this:

ESTAB 0 0  127.0.0.1:41705  127.0.0.1:12345  ino:143321 sk:ffff88003a8cea00 -->
ESTAB 0 0  127.0.0.1:46925  127.0.0.1:12346  ino:143322 sk:ffff88003a8ce4c0 <--
ESTAB 0 0  127.0.0.1:51678  127.0.0.1:12347  ino:143323 sk:ffff88003a8cdf80 ---
ESTAB 0 0  127.0.0.1:46911  127.0.0.1:12348  ino:143324 sk:ffff88003b7f05c0 <->

for SHUT_RD, SHUT_WR, SHUT_RDWR and non-shutdown sockets respectively.

The respective nlattrs in *_diag messages has appeared in Linux v3.7 and
are already present in ss's headers.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
misc/ss.c