Commit 7de7e591 authored by Petr Sabata's avatar Petr Sabata Committed by Stephen Hemminger

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: default avatarPetr Šabata <contyk@redhat.com>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8f2550ab
......@@ -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),
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment