]> git.proxmox.com Git - mirror_iproute2.git/commit - misc/ss.c
ss: Use sockstat->type in all socket types
authorPhil Sutter <phil@nwl.cc>
Fri, 2 Dec 2016 10:39:48 +0000 (11:39 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 2 Dec 2016 22:07:46 +0000 (14:07 -0800)
commitbe7e4d20b9e261292ec3d3701cdf74273f25cfcc
tree43539883d4a058deaf586292b162258118323487
parent451999970816ae1042edbe05d4b34131669a4c83
ss: Use sockstat->type in all socket types

Unix sockets used that field already to hold info about the socket type.
By replicating this approach in all other socket types, we can get rid
of protocol parameter in inet_stats_print() and have sock_state_print()
figure things out by itself.

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