Re: [PATCH 2.6.13rc3] IPv6: Check interface bindings on IPv6 raw socket reception
From: Patrick McHardy <hidden>
Date: 2005-07-24 05:39:30
Also in:
lkml
From: Patrick McHardy <hidden>
Date: 2005-07-24 05:39:30
Also in:
lkml
Patrick McHardy wrote:
Andrew McDonald wrote:quoted
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.