thompsa d6130a4703 Change the reference counting to count the number of cloned interfaces for each
cloner. This ensures that ifc->ifc_units is not prematurely freed in
if_clone_detach() before the clones are destroyed, resulting in memory modified
after free. This could be triggered with if_vlan.

Assert that all cloners have been destroyed when freeing the memory.

Change all simple cloners to destroy their clones with ifc_simple_destroy() on
module unload so the reference count is properly updated. This also cleans up
the interface destroy routines and allows future optimisation.

Discussed with:	brooks, pjd, -current
Reviewed by:	brooks
2005-10-12 19:52:16 +00:00
..
2004-10-05 19:28:52 +00:00
2005-10-07 14:14:47 +00:00
2005-05-06 02:50:00 +00:00
2005-10-01 18:56:19 +00:00
2005-10-01 18:56:19 +00:00
2005-01-11 07:08:15 +00:00