summaryrefslogtreecommitdiffstats
path: root/sys/net/if_faith.c
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2002-05-25 20:17:04 +0000
committerbrooks <brooks@FreeBSD.org>2002-05-25 20:17:04 +0000
commit6cfd5a5a1d8c4a93c799f5e36a35e82908de3464 (patch)
treee660b083146de9ff5a32c2ffb3bf4b2a015c1a0b /sys/net/if_faith.c
parentc23d71a3554dd96732f409c3956d8a2aed2ad182 (diff)
downloadFreeBSD-src-6cfd5a5a1d8c4a93c799f5e36a35e82908de3464.zip
FreeBSD-src-6cfd5a5a1d8c4a93c799f5e36a35e82908de3464.tar.gz
Move all unit number management cloned interfaces into the cloning
code. The reverts the API change which made the <if>_clone_destory() functions return an int instead of void bringing us into closer alignment with NetBSD. Reviewed by: net (a long time ago)
Diffstat (limited to 'sys/net/if_faith.c')
-rw-r--r--sys/net/if_faith.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/net/if_faith.c b/sys/net/if_faith.c
index a37d9d4..3173383 100644
--- a/sys/net/if_faith.c
+++ b/sys/net/if_faith.c
@@ -103,10 +103,10 @@ static MALLOC_DEFINE(M_FAITH, FAITHNAME, "Firewall Assisted Tunnel Interface");
static LIST_HEAD(, faith_softc) faith_softc_list;
int faith_clone_create(struct if_clone *, int);
-int faith_clone_destroy(struct ifnet *);
+void faith_clone_destroy(struct ifnet *);
struct if_clone faith_cloner = IF_CLONE_INITIALIZER(FAITHNAME,
- faith_clone_create, faith_clone_destroy, IF_MAXUNIT);
+ faith_clone_create, faith_clone_destroy, 0, IF_MAXUNIT);
#define FAITHMTU 1500
@@ -181,7 +181,7 @@ faith_clone_create(ifc, unit)
return (0);
}
-int
+void
faith_clone_destroy(ifp)
struct ifnet *ifp;
{
@@ -192,7 +192,6 @@ faith_clone_destroy(ifp)
if_detach(ifp);
free(sc, M_FAITH);
- return (0);
}
int
OpenPOWER on IntegriCloud