IPv6: report address flag changes to userland

Alexander V. Chernikov melifaro at FreeBSD.org
Wed Jan 15 09:18:32 UTC 2014


On 13.01.2014 19:36, Roy Marples wrote:
> Hi List
Hello!
>
> 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.
This looks very reasonable.
>
> 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.
This can also help when doing IPv6 netmap forwarding to sync kernel and 
userland records.
>
> 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?
I'll do some tests and merge it.
>
> Roy
>
>
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"



More information about the freebsd-net mailing list