mirror_iproute2/misc
Lorenzo Colitti fb2594c183 ss: support closing inet sockets via SOCK_DESTROY.
This patch adds a -K / --kill option to ss that attempts to
forcibly close matching sockets using SOCK_DESTROY.

Because ss typically prints sockets instead of acting on them,
and because the kernel only supports forcibly closing some types
of sockets, the output of -K is as follows:

- If closing the socket succeeds, the socket is printed.
- If the kernel does not support forcibly closing this type of
  socket (e.g., if it's a UDP socket, or a TIME_WAIT socket),
  the socket is silently skipped.
- If an error occurs (e.g., permission denied), the error is
  reported and ss exits.

Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
2016-01-18 11:47:03 -08:00
..
.gitignore Add ignore files to make using git easier 2006-08-08 12:04:38 -07:00
arpd.c get rid of unnecessary fgets() buffer size limitation 2015-11-29 11:48:24 -08:00
ifstat.c get rid of remaining -Wunused-result warnings 2015-11-29 11:48:24 -08:00
lnstat_util.c lnstat: fix error handling 2015-12-30 17:28:11 -08:00
lnstat.c lnstat: fix header displaying mechanism 2015-11-23 15:54:05 -08:00
lnstat.h iproute2: various header include fixes for compiling with musl libc 2014-05-28 16:51:39 -07:00
Makefile misc/Makefile: use PKG_CONFIG 2015-11-23 15:25:50 -08:00
nstat.c get rid of remaining -Wunused-result warnings 2015-11-29 11:48:24 -08:00
rtacct.c ip: make local functions static 2013-02-12 11:38:35 -08:00
ss.c ss: support closing inet sockets via SOCK_DESTROY. 2016-01-18 11:47:03 -08:00
ssfilter.h misc: remove extra blank line 2015-11-23 15:42:34 -08:00
ssfilter.y ss: Allow to specify sport/dport without ':' 2015-03-15 12:11:42 -07:00