iproute2: ss - change default filter to include all socket types

Currently the default filter lists TCP sockets only which is
rather confusing especially when the '-a/--all' flag is used.
This patch changes the default to include all sockets, imitating
netstat(8) behavior.

Signed-off-by: Petr Šabata <contyk@redhat.com>
Acked-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Petr Sabata 2012-12-11 06:42:52 +00:00 committed by Stephen Hemminger
parent 8f2550ab5d
commit 7de7e5915a
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ struct filter
};
struct filter default_filter = {
.dbs = (1<<TCP_DB),
.dbs = ~0,
.states = SS_ALL & ~((1<<SS_LISTEN)|(1<<SS_CLOSE)|(1<<SS_TIME_WAIT)|(1<<SS_SYN_RECV)),
.families= (1<<AF_INET)|(1<<AF_INET6),
};