summaryrefslogtreecommitdiffstats
path: root/sys/net/if_gre.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2006-07-09 06:04:01 +0000
committersam <sam@FreeBSD.org>2006-07-09 06:04:01 +0000
commit2350e920372288f7ed8401d362497880b30dea50 (patch)
tree9d7fca708f49f055d33f7ea0b8387e3b17763e09 /sys/net/if_gre.c
parentd4c884886f5a791f00d676a628a847df63fd2f4d (diff)
downloadFreeBSD-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_gre.c')
-rw-r--r--sys/net/if_gre.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c
index 6cf80ea..aaac47d 100644
--- a/sys/net/if_gre.c
+++ b/sys/net/if_gre.c
@@ -104,7 +104,7 @@ static MALLOC_DEFINE(M_GRE, GRENAME, "Generic Routing Encapsulation");
struct gre_softc_head gre_softc_list;
-static int gre_clone_create(struct if_clone *, int);
+static int gre_clone_create(struct if_clone *, int, caddr_t);
static void gre_clone_destroy(struct ifnet *);
static int gre_ioctl(struct ifnet *, u_long, caddr_t);
static int gre_output(struct ifnet *, struct mbuf *, struct sockaddr *,
@@ -171,9 +171,10 @@ greattach(void)
}
static int
-gre_clone_create(ifc, unit)
+gre_clone_create(ifc, unit, params)
struct if_clone *ifc;
int unit;
+ caddr_t params;
{
struct gre_softc *sc;
OpenPOWER on IntegriCloud