summaryrefslogtreecommitdiffstats
path: root/sys/net/if_vlan.c
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2002-03-04 21:43:49 +0000
committerbrooks <brooks@FreeBSD.org>2002-03-04 21:43:49 +0000
commit50d3be4c82e6c70eac43734b67628e7a27fa3e24 (patch)
treee05372a98911db8a86433810b97039584862ca8d /sys/net/if_vlan.c
parenta7336f1ad6c01a609997c0cb2bbebb2d3141cb99 (diff)
downloadFreeBSD-src-50d3be4c82e6c70eac43734b67628e7a27fa3e24.zip
FreeBSD-src-50d3be4c82e6c70eac43734b67628e7a27fa3e24.tar.gz
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
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r--sys/net/if_vlan.c5
1 files changed, 3 insertions, 2 deletions
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
OpenPOWER on IntegriCloud