]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ss: Drop list traversal from unix_stats_print()
authorPhil Sutter <phil@nwl.cc>
Fri, 2 Dec 2016 10:39:50 +0000 (11:39 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 2 Dec 2016 22:07:46 +0000 (14:07 -0800)
commit2d0e538f3e1cd88b193e1b3da9271aff39cf271c
treed27d0679b9c26a263c8b957a770e398f11d0a3cb
parent5f27ac1db9771653351bae1a3e4ece8f0be9959c
ss: Drop list traversal from unix_stats_print()

Although this complicates the dedicated procfs-based code path in
unix_show() a bit, it's the only sane way to get rid of unix_show_sock()
output diverging from other socket types in that it prints all socket
details in a new line.

As a side effect, it allows to eliminate all procfs specific code in
the same function.

Signed-off-by: Phil Sutter <phil@nwl.cc>
misc/ss.c