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:
parent
8f2550ab5d
commit
7de7e5915a
|
|
@ -105,7 +105,7 @@ struct filter
|
||||||
};
|
};
|
||||||
|
|
||||||
struct filter default_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)),
|
.states = SS_ALL & ~((1<<SS_LISTEN)|(1<<SS_CLOSE)|(1<<SS_TIME_WAIT)|(1<<SS_SYN_RECV)),
|
||||||
.families= (1<<AF_INET)|(1<<AF_INET6),
|
.families= (1<<AF_INET)|(1<<AF_INET6),
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue