1/* $NetBSD: if_gre.c,v 1.49 2003/12/11 00:22:29 itojun Exp $ */
2/* $FreeBSD: head/sys/net/if_gre.c 130933 2004-06-22 20:13:25Z brooks $ */
3
4/*
5 * Copyright (c) 1998 The NetBSD Foundation, Inc.
6 * All rights reserved.
7 *
8 * This code is derived from software contributed to The NetBSD Foundation
9 * by Heiko W.Rupp <hwr@pilhuhn.de>
10 *
--- 151 unchanged lines hidden (view full) ---
162
163static int
164gre_clone_create(ifc, unit)
165 struct if_clone *ifc;
166 int unit;
167{
168 struct gre_softc *sc;
169
170 sc = malloc(sizeof(struct gre_softc), M_GRE, M_WAITOK);
171 memset(sc, 0, sizeof(struct gre_softc));
172
173 if_initname(&sc->sc_if, ifc->ifc_name, unit);
174 sc->sc_if.if_softc = sc;
175 sc->sc_if.if_snd.ifq_maxlen = IFQ_MAXLEN;
176 sc->sc_if.if_type = IFT_TUNNEL;
177 sc->sc_if.if_addrlen = 0;
178 sc->sc_if.if_hdrlen = 24; /* IP + GRE */
179 sc->sc_if.if_mtu = GREMTU;
--- 603 unchanged lines hidden ---
2/* $FreeBSD: head/sys/net/if_gre.c 130933 2004-06-22 20:13:25Z brooks $ */
3
4/*
5 * Copyright (c) 1998 The NetBSD Foundation, Inc.
6 * All rights reserved.
7 *
8 * This code is derived from software contributed to The NetBSD Foundation
9 * by Heiko W.Rupp <hwr@pilhuhn.de>
10 *
--- 151 unchanged lines hidden (view full) ---
162
163static int
164gre_clone_create(ifc, unit)
165 struct if_clone *ifc;
166 int unit;
167{
168 struct gre_softc *sc;
169
170 sc = malloc(sizeof(struct gre_softc), M_GRE, M_WAITOK);
171 memset(sc, 0, sizeof(struct gre_softc));
172
173 if_initname(&sc->sc_if, ifc->ifc_name, unit);
174 sc->sc_if.if_softc = sc;
175 sc->sc_if.if_snd.ifq_maxlen = IFQ_MAXLEN;
176 sc->sc_if.if_type = IFT_TUNNEL;
177 sc->sc_if.if_addrlen = 0;
178 sc->sc_if.if_hdrlen = 24; /* IP + GRE */
179 sc->sc_if.if_mtu = GREMTU;
--- 603 unchanged lines hidden ---