IPv6: report address flag changes to userland

Roy Marples roy at marples.name
Mon Jan 13 15:37:11 UTC 2014


Hi List

There is zero point as I see it in announcing newly added tentative 
addresses to userland.
It's not as if userland can actually use the address at this point.
However, there is immense benefit in announcing address flag changes, 
such as removal of tentative, or addition of the other flags.

The main benefit for this patch is so that dhcpcd(8) listen for when the 
kernel has completed DAD and has announced the result.
dhcpcd can then react immediately instead of having to wait for the full 
time as dictated by the RFC.

The attached patch addresses the above and was cut from FreeBSD-9 - 
there is a small adjustment needed for -current which is noted in the 
patch.
The patch is based on the work I did in NetBSD a few months ago 
documented here:
http://netbsd.2816.n7.nabble.com/PATCH-to-only-announce-RTM-NEWADDR-once-IPv6-DAD-completes-tp281110.html

Comments?

Roy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freebsd-ipv6-tentative.diff
Type: text/x-diff
Size: 8768 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20140113/c8b2176c/attachment.diff>


More information about the freebsd-net mailing list