--- src/sys/net/if.c 2005/06/03 23:23:03 1.37 +++ src/sys/net/if.c 2005/06/04 14:41:57 1.38 @@ -364,6 +364,13 @@ if_detach(struct ifnet *ifp) IFAFREE(ifa); } +#ifdef INET + /* + * Remove all IPv4 kernel structures related to ifp. + */ + in_ifdetach(ifp); +#endif + #ifdef INET6 /* * Remove all IPv6 kernel structs related to ifp. This should be done