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 <contyk@redhat.com>
This commit is contained in:
parent
93ba481acb
commit
16963ce6f0
|
|
@ -2568,7 +2568,7 @@ int main(int argc, char *argv[])
|
||||||
current_filter.states = SS_ALL;
|
current_filter.states = SS_ALL;
|
||||||
break;
|
break;
|
||||||
case 'l':
|
case 'l':
|
||||||
current_filter.states = (1<<SS_LISTEN);
|
current_filter.states = (1<<SS_LISTEN) | (1<<SS_CLOSE);
|
||||||
break;
|
break;
|
||||||
case '4':
|
case '4':
|
||||||
preferred_family = AF_INET;
|
preferred_family = AF_INET;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue