]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ss: Filtering logic changing, with fixes
authorVadim Kochan <vadim4j@gmail.com>
Sun, 4 Jan 2015 20:18:40 +0000 (22:18 +0200)
committerStephen Hemminger <shemming@brocade.com>
Wed, 7 Jan 2015 23:14:19 +0000 (15:14 -0800)
commit9db7bf15e22b6a1b8bc09c4a1e29571cbca55c94
tree5b09513efa678dac9ae7b89cb3cd861adcfd54b8
parent4a0053b606a344650d98c28af3269f60f1fb6718
ss: Filtering logic changing, with fixes

This patch fixes some filtering combinations issues which does not
work on the 'master' version:

    $ ss -4
    shows inet & unix sockets, instead of only inet sockets

    $ ss -u
    needs to specify 'state closed'

    $ ss src unix:*X11*
    needs to specify '-x' shortcut for UNIX family

    $ ss -A all
    shows only sockets with established states

There might some other issues which was not observed.

Also changed logic for calculating families, socket types and
states filtering. I think that this version is a little simpler
one. Now there are 2 predefined default tables which describes
the following maping:

    family  -> (states, dbs)
    db      -> (states, families)

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