From 50d3be4c82e6c70eac43734b67628e7a27fa3e24 Mon Sep 17 00:00:00 2001 From: brooks Date: Mon, 4 Mar 2002 21:43:49 +0000 Subject: Change the network interface cloning API so the destroy function returns an int errorcode instead of void in preperation for merging cloning of the loopback device. Submitted by: mux MFC after: 2 weeks --- sys/net/if_vlan.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/net/if_vlan.c') diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 759ae81..797feac 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -94,7 +94,7 @@ static struct rman vlanunits[1]; static LIST_HEAD(, ifvlan) ifv_list; static int vlan_clone_create(struct if_clone *, int *); -static void vlan_clone_destroy(struct ifnet *); +static int vlan_clone_destroy(struct ifnet *); static void vlan_start(struct ifnet *ifp); static void vlan_ifinit(void *foo); static int vlan_input(struct ether_header *eh, struct mbuf *m); @@ -274,7 +274,7 @@ vlan_clone_create(struct if_clone *ifc, int *unit) return (0); } -static void +static int vlan_clone_destroy(struct ifnet *ifp) { struct ifvlan *ifv = ifp->if_softc; @@ -291,6 +291,7 @@ vlan_clone_destroy(struct ifnet *ifp) err = rman_release_resource(ifv->r_unit); KASSERT(err == 0, ("Unexpected error freeing resource")); free(ifv, M_VLAN); + return (0); } static void -- cgit v1.1