have carp use standard detach hooks instead of getting special handling
authordlg <dlg@openbsd.org>
Fri, 12 Jan 2018 23:47:24 +0000 (23:47 +0000)
committerdlg <dlg@openbsd.org>
Fri, 12 Jan 2018 23:47:24 +0000 (23:47 +0000)
commit9a2277444263328168b36f5012168ceacf898972
treecf7b993a2bb9f18a6b05677d1ac7b26b36f26911
parent2f700a37c38bdbf39d405647f3fa151ba9e9d0fc
have carp use standard detach hooks instead of getting special handling

if_deactivate looked for carp parent interfaces and called carp_ifdetach
to have children interfaces unplug themselves. this diff has the
carp interfaces register detach hooks on the parent instead. the
effect is the same, but using the standard every other interface
uses.

while im here i shuffle the order the hooks carp_set_ifp are
estabilshed so it will fail if they arent allocated.

ok visa@ mpi@
sys/net/if.c
sys/netinet/ip_carp.c
sys/netinet/ip_carp.h