mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-05 03:13:04 +00:00
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: Vadim Kochan <vadim4j@gmail.com>
This commit is contained in:
parent
0948adc01a
commit
45a4770bc0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user