Bruce M Simpson ec002fee99 Implement reference counting for ifmultiaddr, in_multi, and in6_multi
structures. Detect when ifnet instances are detached from the network
stack and perform appropriate cleanup to prevent memory leaks.

This has been implemented in such a way as to be backwards ABI compatible.
Kernel consumers are changed to use if_delmulti_ifma(); in_delmulti()
is unable to detect interface removal by design, as it performs searches
on structures which are removed with the interface.

With this architectural change, the panics FreeBSD users have experienced
with carp and pfsync should be resolved.

Obtained from:	p4 branch bms_netdev
Reviewed by:	andre
Sponsored by:	Garance A Drosehn
Idea from:	NetBSD
MFC after:	1 month
2007-03-20 00:36:10 +00:00
..
2007-02-05 11:05:41 +00:00
2007-01-12 07:20:25 +00:00
2006-12-12 12:17:58 +00:00
2007-01-12 07:20:25 +00:00
2006-12-12 12:17:58 +00:00
2005-10-21 16:23:01 +00:00
2006-12-12 12:17:58 +00:00
2006-12-12 12:17:58 +00:00
2006-12-12 12:17:58 +00:00
2005-10-21 16:23:01 +00:00
2006-12-12 12:17:58 +00:00
2006-12-12 12:17:58 +00:00
2005-10-21 16:23:01 +00:00
2006-12-12 12:17:58 +00:00