Free route cache after detaching an etherip(4) instance.
This commit is contained in:
parent
c89841d199
commit
7ff356f18d
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_etherip.c,v 1.5 2007/03/04 06:03:15 christos Exp $ */
|
||||
/* $NetBSD: if_etherip.c,v 1.6 2007/04/23 05:05:03 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006, Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
|
||||
|
@ -321,6 +321,7 @@ etherip_detach(struct device* self, int flags)
|
|||
etherip_delete_tunnel(ifp);
|
||||
ether_ifdetach(ifp);
|
||||
if_detach(ifp);
|
||||
rtcache_free(&sc->sc_ro);
|
||||
ifmedia_delete_instance(&sc->sc_im, IFM_INST_ANY);
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue