]> git.proxmox.com Git - mirror_iproute2.git/commit - misc/ss.c
ss: Dont show netlink and packet sockets by default
authorVadim Kochan <vadim4j@gmail.com>
Sat, 20 Dec 2014 23:40:55 +0000 (15:40 -0800)
committerStephen Hemminger <shemming@brocade.com>
Sat, 20 Dec 2014 23:43:56 +0000 (15:43 -0800)
commitb9ea445d529d42fd328fd3343c51403a3672d55f
treeb052d3c82061d2f53379db5cc1ac3bf07de0e268
parent8a4025f6a4e182f0f33763238314ff1d96c580db
ss: Dont show netlink and packet sockets by default

Checking by SS_CLOSE state was remowed in:

    (45a4770bc0) ss: Remove checking SS_CLOSE state for packet and netlink

which is not really correct because now by default all sockets are seen
when do 'ss'.

Here is most correct fix which considers specified family.

To see netlink sockets:
    ss -A netlink

To see packet sockets:
    ss -A packet

And ss by default will show only connected/established sockets as it
was before all the time.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
misc/ss.c