Commit 45a4770b authored by vadimk's avatar vadimk Committed by Stephen Hemminger

ss: Remove checking SS_CLOSE state for packet and netlink

I dont see a reason that packet and netlink states will be
printed only if SS_CLOSE state is set in filter, in that case
to print states of netlink or packet sockets it is needed to run:

    ss -A netlink state close

instead of:

    ss -A netlink
Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
parent 0948adc0
......@@ -2895,9 +2895,6 @@ static int packet_show(struct filter *f)
int ino;
unsigned long long sk;
if (!(f->states & (1<<SS_CLOSE)))
return 0;
if (packet_show_netlink(f, NULL) == 0)
return 0;
......@@ -3133,9 +3130,6 @@ static int netlink_show(struct filter *f)
int rq, wq, rc;
unsigned long long sk, cb;
if (!(f->states & (1<<SS_CLOSE)))
return 0;
if (!getenv("PROC_NET_NETLINK") && !getenv("PROC_ROOT") &&
netlink_show_netlink(f, NULL) == 0)
return 0;
......
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