Patrick McHardy wrote: > Andrew McDonald wrote: > >> Take account of whether a socket is bound to a particular device when >> selecting an IPv6 raw socket to receive a packet. Also perform this >> check when receiving IPv6 packets with router alert options. > > I guess this one makes sense on top. > > [IPV4/6]: Check if packet was actually delivered to a raw socket to decide whether to send an ICMP unreachable The Last patch didn't handle ICMP socket filters correctly, here is a better one. If a raw socket is bound to a single device the packet might not be delivered even though there is a socket in the protocol hash. Send back an ICMP protocol unreachable in this case.