Re: [PATCH net] sock_diag: do not broadcast raw socket destruction

2016-06-28 Thread David Miller
From: Willem de Bruijn Date: Fri, 24 Jun 2016 16:02:35 -0400 > From: Willem de Bruijn > > Diag intends to broadcast tcp_sk and udp_sk socket destruction. > Testing sk->sk_protocol for IPPROTO_TCP/IPPROTO_UDP alone is not > sufficient for this. Raw sockets can have the same type. > > Add a test

[PATCH net] sock_diag: do not broadcast raw socket destruction

2016-06-24 Thread Willem de Bruijn
From: Willem de Bruijn Diag intends to broadcast tcp_sk and udp_sk socket destruction. Testing sk->sk_protocol for IPPROTO_TCP/IPPROTO_UDP alone is not sufficient for this. Raw sockets can have the same type. Add a test for sk->sk_type. Fixes: eb4cb008529c ("sock_diag: define destruction multic