diff options
author | Li Yewang <lyw@cn.fujitsu.com> | 2008-09-09 09:06:47 +0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-09-17 22:05:00 -0700 |
commit | f70d96a41bb6f825c842eff5effd708bc15df059 (patch) | |
tree | 2929fb1143555422352e23144e544a1c4ad703f8 /misc | |
parent | 5e3bb534ae179be141a92eb1a4e2eb48094193b7 (diff) |
Fix the error of "ss -f inet -t"
when using the "ss -f inet -t" command to show the tcp socket information of
inet domain, we get the error message: "ss: no socket tables to show with such filter."
This patch can fix this bug.
Signed-off-by: Li Yewang <lyw@cn.fujitsu.com>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ss.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -2622,9 +2622,7 @@ int main(int argc, char *argv[]) int mask2; if (preferred_family == AF_INET || preferred_family == AF_INET6) { - mask2= (1<<TCP_DB); - if (!do_default) - mask2 = (1<<UDP_DB)|(1<<RAW_DB); + mask2= current_filter.dbs; } else if (preferred_family == AF_PACKET) { mask2 = PACKET_DBM; } else if (preferred_family == AF_UNIX) { |