aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if_clone.c
diff options
context:
space:
mode:
authorAndrew Thompson <thompsa@FreeBSD.org>2008-09-20 19:38:37 +0000
committerAndrew Thompson <thompsa@FreeBSD.org>2008-09-20 19:38:37 +0000
commitcb959fa205386d63a61d44673befa7c1d5f4d111 (patch)
tree74b9472edb5958688889f2506f58d4469202a603 /sys/net/if_clone.c
parentb0000a98c40fcdb4283190f55240ed05fabb370d (diff)
downloadsrc-cb959fa205386d63a61d44673befa7c1d5f4d111.tar.gz
src-cb959fa205386d63a61d44673befa7c1d5f4d111.zip
Fix clone destruction, can't use the simple api because that does not remove
the ifnet from cloner's list. Expose if_clone_destroyif api to do this. Submitted by: sam
Notes
Notes: svn path=/head/; revision=183210
Diffstat (limited to 'sys/net/if_clone.c')
-rw-r--r--sys/net/if_clone.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/if_clone.c b/sys/net/if_clone.c
index cc5212635714..8ffb7584c337 100644
--- a/sys/net/if_clone.c
+++ b/sys/net/if_clone.c
@@ -53,7 +53,6 @@
static void if_clone_free(struct if_clone *ifc);
static int if_clone_createif(struct if_clone *ifc, char *name, size_t len,
caddr_t params);
-static int if_clone_destroyif(struct if_clone *ifc, struct ifnet *ifp);
static struct mtx if_cloners_mtx;
static int if_cloners_count;
@@ -199,7 +198,7 @@ if_clone_destroy(const char *name)
/*
* Destroy a clone network interface.
*/
-static int
+int
if_clone_destroyif(struct if_clone *ifc, struct ifnet *ifp)
{
int err;