iproute2/misc
Phil Sutter e56a959e55 ss: Fix accidental state filter override
Passing a filter expression and selecting an address family using the
'-f' flag would overwrite the state filter by accident. Therefore
calling e.g. 'ss -nl -f inet '(sport = :22)' would not only print
listening sockets (as requested by '-l' flag) but connected ones, as
well.

Fix this by reusing the formerly ineffective call to filter_states_set()
to restore the state filter as it was before the call to
filter_af_set().

Signed-off-by: Phil Sutter <phil@nwl.cc>
2016-04-19 07:56:53 -07:00
..
.gitignore Add ignore files to make using git easier 2006-08-08 12:04:38 -07:00
Makefile misc/Makefile: use PKG_CONFIG 2015-11-23 15:25:50 -08:00
arpd.c misc: fix style issues 2016-03-21 11:56:36 -07:00
ifstat.c misc: fix style issues 2016-03-21 11:56:36 -07:00
lnstat.c misc: fix style issues 2016-03-21 11:56:36 -07:00
lnstat.h iproute2: various header include fixes for compiling with musl libc 2014-05-28 16:51:39 -07:00
lnstat_util.c misc: fix style issues 2016-03-21 11:56:36 -07:00
nstat.c misc: fix style issues 2016-03-21 11:56:36 -07:00
rtacct.c misc: fix style issues 2016-03-21 11:56:36 -07:00
ss.c ss: Fix accidental state filter override 2016-04-19 07:56:53 -07:00
ssfilter.h misc: remove extra blank line 2015-11-23 15:42:34 -08:00
ssfilter.y ss: Allow to specify sport/dport without ':' 2015-03-15 12:11:42 -07:00