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>
This commit is contained in:
parent
5e3bb534ae
commit
f70d96a41b
|
|
@ -2622,9 +2622,7 @@ int main(int argc, char *argv[])
|
||||||
int mask2;
|
int mask2;
|
||||||
if (preferred_family == AF_INET ||
|
if (preferred_family == AF_INET ||
|
||||||
preferred_family == AF_INET6) {
|
preferred_family == AF_INET6) {
|
||||||
mask2= (1<<TCP_DB);
|
mask2= current_filter.dbs;
|
||||||
if (!do_default)
|
|
||||||
mask2 = (1<<UDP_DB)|(1<<RAW_DB);
|
|
||||||
} else if (preferred_family == AF_PACKET) {
|
} else if (preferred_family == AF_PACKET) {
|
||||||
mask2 = PACKET_DBM;
|
mask2 = PACKET_DBM;
|
||||||
} else if (preferred_family == AF_UNIX) {
|
} else if (preferred_family == AF_UNIX) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue