summaryrefslogtreecommitdiff
path: root/mausezahn
ModeNameSize
-rw-r--r--.gitignore27logplain
-rw-r--r--Makefile1515logplain
64ae74573be8 (patch) tree287669c8a80545d1b958e8f4426e155c7d3efe05 parentab8ed951080e8f59b1da4ea10ac7c05ba24a3cbd (diff)
sock_diag: do not broadcast raw socket destruction
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 multicast groups") Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat