Re: [PATCH v3] net: ip, diag -- Add diag interface for raw sockets

From: Eric Dumazet
Date: Thu Sep 15 2016 - 18:48:30 EST


On Fri, 2016-09-16 at 00:01 +0300, Cyrill Gorcunov wrote:

> Here I get kicked off the server. Login back
>
> [cyrill@uranus ~] ssh root@pcs7
> Last login: Thu Sep 15 23:20:42 2016 from gateway
> [root@pcs7 ~]# cd /home/iproute2/
> [root@pcs7 iproute2]# misc/ss -A raw
> State Recv-Q Send-Q Local Address:Port Peer Address:Port
> UNCONN 0 0 :::ipv6-icmp :::*
> UNCONN 0 0 :::ipv6-icmp :::*
>
> Maybe I do something wrong for testing?

If you kill your shell, maybe /root/sock is killer as well, thus its raw
sockets are closed.

Try to be selective in the -K , do not kill tcp sockets ?