From 16963ce6f01f94d1f5486008c4d73f5612beb1a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= <contyk@redhat.com> Date: Wed, 16 Nov 2011 09:32:20 -0800 Subject: [PATCH 1/7] Display closed UDP sockets on 'ss -ul' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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.3