From: Petr Šabata Date: Wed, 16 Nov 2011 17:32:20 +0000 (-0800) Subject: Display closed UDP sockets on 'ss -ul' X-Git-Tag: v3.1.0~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16963ce6f01f94d1f5486008c4d73f5612beb1a6;p=thirdparty%2Fiproute2.git Display closed UDP sockets on 'ss -ul' 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 --- diff --git a/misc/ss.c b/misc/ss.c index 135362074..af774d142 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<