rwatson 1f7e54e8c5 Clean up common ifaddr management:
- Unify reference count and lock initialization in a single function,
  ifa_init().
- Move tear-down from a macro (IFAFREE) to a function ifa_free().
- Move reference count bump from a macro (IFAREF) to a function ifa_ref().
- Instead of using a u_int protected by a mutex to refcount(9) for
  reference count management.

The ifa_mtx is now used for exactly one ioctl, and possibly should be
removed.

MFC after:	3 weeks
2009-06-21 19:30:33 +00:00
..
2008-08-25 20:43:13 +00:00
2009-04-02 13:02:12 +00:00
2009-06-09 21:55:28 +00:00
2009-06-09 02:27:59 +00:00
2009-06-21 19:30:33 +00:00
2009-06-21 19:30:33 +00:00
2009-04-14 23:05:36 +00:00
2009-06-21 19:30:33 +00:00
2009-06-21 19:30:33 +00:00