IPv6 Redirects & local destinations

Fernando Gont fernando at gont.com.ar
Thu Oct 20 16:07:18 UTC 2011


Hi, Bjoern,

Thanks so much for your prompt response! PLease find my comments inline...

On 10/20/2011 09:19 AM, Bjoern A. Zeeb wrote:
>> While doing some testing, it seems that FreeBSD ignores ICMPv6 Redirects
>> when both the Redirect Destination and the Redirect Target are the same
>> (i.e., the destination is supposed to be on-link).
>>
>> OTOH, Redirects are processed as expected when the Redirect Target is
>> different from the Redirect Destination.
> 
> What does it log if you turn on the following sysctl
> net.inet6.icmp6.nd6_debug=1
> and reproduce?

Nothing. However, the problem seems to be this: While an entry is added
in the Neighbor Cache, no host-route is added to the routing table.
Hence the corresponding entry in the Neighbor Cache is never used.



>> Should I report this as a bug, or is this (non-rfc-compliant) behavior
>> intentional? (If so, what's the rationale?)
> 
> It's kern/152791, isn't it?

Yep, it seems it is. -- The fix would be that when an ICMPv6 Redirect is
received with  RD Target == RD Destination, not only is an entry created
in the Neighbor Cache, but a host-route is also created in the routing
table.

Thanks!

Best regards,
-- 
Fernando Gont
e-mail: fernando at gont.com.ar || fgont at acm.org
PGP Fingerprint: 7809 84F5 322E 45C7 F1C9 3945 96EE A9EF D076 FFF1





More information about the freebsd-net mailing list