* [PATCH] iproute2: Display closed UDP sockets on 'ss -ul'
@ 2011-11-15 15:19 Petr Šabata
2011-11-17 0:25 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: Petr Šabata @ 2011-11-15 15:19 UTC (permalink / raw)
To: netdev; +Cc: Petr Šabata
This patch emulates 'netstat -ul' behavior, showing 'closed'
(state 07) UDP sockets when ss is called with '-ul' options.
Although dirty, this seems like the least invasive way to fix
it and shouldn't really break anything.
Signed-off-by: Petr Šabata <contyk@redhat.com>
---
misc/ss.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/misc/ss.c b/misc/ss.c
index 1353620..af774d1 100644
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -2568,7 +2568,7 @@ int main(int argc, char *argv[])
current_filter.states = SS_ALL;
break;
case 'l':
- current_filter.states = (1<<SS_LISTEN);
+ current_filter.states = (1<<SS_LISTEN) | (1<<SS_CLOSE);
break;
case '4':
preferred_family = AF_INET;
--
1.7.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-17 0:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-15 15:19 [PATCH] iproute2: Display closed UDP sockets on 'ss -ul' Petr Šabata
2011-11-17 0:25 ` Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox