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_gif.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_gif.c')
-rw-r--r-- | sys/net/if_gif.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c index 0bb7894..2a640a6 100644 --- a/sys/net/if_gif.c +++ b/sys/net/if_gif.c @@ -101,7 +101,7 @@ void (*ng_gif_attach_p)(struct ifnet *ifp); void (*ng_gif_detach_p)(struct ifnet *ifp); static void gif_start(struct ifnet *); -static int gif_clone_create(struct if_clone *, int); +static int gif_clone_create(struct if_clone *, int, caddr_t); static void gif_clone_destroy(struct ifnet *); IFC_SIMPLE_DECLARE(gif, 0); @@ -140,9 +140,10 @@ SYSCTL_INT(_net_link_gif, OID_AUTO, parallel_tunnels, CTLFLAG_RW, ¶llel_tunnels, 0, "Allow parallel tunnels?"); static int -gif_clone_create(ifc, unit) +gif_clone_create(ifc, unit, params) struct if_clone *ifc; int unit; + caddr_t params; { struct gif_softc *sc; |