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/contrib | |
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/contrib')
-rw-r--r-- | sys/contrib/pf/net/if_pflog.c | 6 | ||||
-rw-r--r-- | sys/contrib/pf/net/if_pfsync.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/sys/contrib/pf/net/if_pflog.c b/sys/contrib/pf/net/if_pflog.c index 54f7129..6ddf212 100644 --- a/sys/contrib/pf/net/if_pflog.c +++ b/sys/contrib/pf/net/if_pflog.c @@ -121,7 +121,7 @@ struct pflog_softc pflogif[NPFLOG]; #ifdef __FreeBSD__ static void pflog_clone_destroy(struct ifnet *); -static int pflog_clone_create(struct if_clone *, int); +static int pflog_clone_create(struct if_clone *, int, caddr_t); #else void pflogattach(int); #endif @@ -161,7 +161,11 @@ pflog_clone_destroy(struct ifnet *ifp) } static int +#ifdef __FreeBSD__ +pflog_clone_create(struct if_clone *ifc, int unit, caddr_t params) +#else pflog_clone_create(struct if_clone *ifc, int unit) +#endif { struct pflog_softc *sc; struct ifnet *ifp; diff --git a/sys/contrib/pf/net/if_pfsync.c b/sys/contrib/pf/net/if_pfsync.c index 1c0c6c3..957bc7e 100644 --- a/sys/contrib/pf/net/if_pfsync.c +++ b/sys/contrib/pf/net/if_pfsync.c @@ -148,7 +148,7 @@ SYSCTL_STRUCT(_net_inet_pfsync, 0, stats, CTLFLAG_RW, */ static void pfsync_clone_destroy(struct ifnet *); -static int pfsync_clone_create(struct if_clone *, int); +static int pfsync_clone_create(struct if_clone *, int, caddr_t params); static void pfsync_senddef(void *); #else void pfsyncattach(int); @@ -205,7 +205,11 @@ pfsync_clone_destroy(struct ifnet *ifp) } static int +#ifdef __FreeBSD__ +pfsync_clone_create(struct if_clone *ifc, int unit, caddr_t params) +#else pfsync_clone_create(struct if_clone *ifc, int unit) +#endif { struct pfsync_softc *sc; struct ifnet *ifp; |