diff options
author | brooks <brooks@FreeBSD.org> | 2002-05-25 20:17:04 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2002-05-25 20:17:04 +0000 |
commit | 6cfd5a5a1d8c4a93c799f5e36a35e82908de3464 (patch) | |
tree | e660b083146de9ff5a32c2ffb3bf4b2a015c1a0b /sys/net/if_stf.c | |
parent | c23d71a3554dd96732f409c3956d8a2aed2ad182 (diff) | |
download | FreeBSD-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_stf.c')
-rw-r--r-- | sys/net/if_stf.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/net/if_stf.c b/sys/net/if_stf.c index 99ff838..0514770 100644 --- a/sys/net/if_stf.c +++ b/sys/net/if_stf.c @@ -158,11 +158,11 @@ static void stf_rtrequest(int, struct rtentry *, struct rt_addrinfo *); static int stf_ioctl(struct ifnet *, u_long, caddr_t); int stf_clone_create(struct if_clone *, int); -int stf_clone_destroy(struct ifnet *); +void stf_clone_destroy(struct ifnet *); /* only one clone is currently allowed */ struct if_clone stf_cloner = - IF_CLONE_INITIALIZER(STFNAME, stf_clone_create, stf_clone_destroy, 0); + IF_CLONE_INITIALIZER(STFNAME, stf_clone_create, stf_clone_destroy, 0, 0); int stf_clone_create(ifc, unit) @@ -194,7 +194,7 @@ stf_clone_create(ifc, unit) return (0); } -int +void stf_clone_destroy(ifp) struct ifnet *ifp; { @@ -208,7 +208,6 @@ stf_clone_destroy(ifp) if_detach(ifp); free(sc, M_STF); - return (0); } static int |