Use ether_ifattach() and ether_ifdetach() when cloning/destroying an
authormpi <mpi@openbsd.org>
Wed, 15 Apr 2015 15:14:37 +0000 (15:14 +0000)
committermpi <mpi@openbsd.org>
Wed, 15 Apr 2015 15:14:37 +0000 (15:14 +0000)
commit487c58bf5b158afdb33976e972e14260c8591cf2
treed777e929bbabffaf8dc487cc32ff88deb0aee372
parent8219dfc44b468d09dcbcd6fa6916773e0fe2dec3
Use ether_ifattach() and ether_ifdetach() when cloning/destroying an
interface instead of rewritting most of them.

This change is also needed for upcoming if_input() conversion.

As a bonus pseudo-driver attached on top of carp are now detached in
the right order.

ok claudio@, henning@
sys/netinet/ip_carp.c