]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add refcounting to IPv6 DAD objects and simplify the DAD code to fix a
authorMark Johnston <markj@FreeBSD.org>
Mon, 8 Dec 2014 04:44:40 +0000 (04:44 +0000)
committerMark Johnston <markj@FreeBSD.org>
Mon, 8 Dec 2014 04:44:40 +0000 (04:44 +0000)
commitd6ad6a865a9b9e0b33ed2af9f1774eb20666c91c
tree41e28cb2882761b8cbb63ef3b06cd35706a8e8ca
parent38d120bc13ac1de5b739b67b87016b9122149374
Add refcounting to IPv6 DAD objects and simplify the DAD code to fix a
number of races which could cause double frees or use-after-frees when
performing DAD on an address. In particular, an IPv6 address can now only be
marked as a duplicate from the DAD callout.

Differential Revision: https://reviews.freebsd.org/D1258
Reviewed by: ae, hrs
Reported by: rstone
MFC after: 1 month
sys/netinet6/nd6.c
sys/netinet6/nd6.h
sys/netinet6/nd6_nbr.c