diff options
author | sam <sam@FreeBSD.org> | 2006-07-09 06:04:01 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2006-07-09 06:04:01 +0000 |
commit | 2350e920372288f7ed8401d362497880b30dea50 (patch) | |
tree | 9d7fca708f49f055d33f7ea0b8387e3b17763e09 /sys/net/if_stf.c | |
parent | d4c884886f5a791f00d676a628a847df63fd2f4d (diff) | |
download | FreeBSD-src-2350e920372288f7ed8401d362497880b30dea50.zip FreeBSD-src-2350e920372288f7ed8401d362497880b30dea50.tar.gz |
Revise network interface cloning to take an optional opaque
parameter that can specify configuration parameters:
o rev cloner api's to add optional parameter block
o add SIOCCREATE2 that accepts parameter data
o rev vlan support to use new api (maintain old code)
Reviewed by: arch@
Diffstat (limited to 'sys/net/if_stf.c')
-rw-r--r-- | sys/net/if_stf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_stf.c b/sys/net/if_stf.c index 594b648..2c0eca9 100644 --- a/sys/net/if_stf.c +++ b/sys/net/if_stf.c @@ -177,7 +177,7 @@ static void stf_rtrequest(int, struct rtentry *, struct rt_addrinfo *); static int stf_ioctl(struct ifnet *, u_long, caddr_t); static int stf_clone_match(struct if_clone *, const char *); -static int stf_clone_create(struct if_clone *, char *, size_t); +static int stf_clone_create(struct if_clone *, char *, size_t, caddr_t); static int stf_clone_destroy(struct if_clone *, struct ifnet *); struct if_clone stf_cloner = IFC_CLONE_INITIALIZER(STFNAME, NULL, 0, NULL, stf_clone_match, stf_clone_create, stf_clone_destroy); @@ -196,7 +196,7 @@ stf_clone_match(struct if_clone *ifc, const char *name) } static int -stf_clone_create(struct if_clone *ifc, char *name, size_t len) +stf_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) { int err, unit; struct stf_softc *sc; |