Deleted Added
full compact
if_gre.c (130933) if_gre.c (131673)
1/* $NetBSD: if_gre.c,v 1.49 2003/12/11 00:22:29 itojun Exp $ */
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 $ */
2/* $FreeBSD: head/sys/net/if_gre.c 131673 2004-07-06 03:28:24Z bms $ */
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
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));
170 sc = malloc(sizeof(struct gre_softc), M_GRE, M_WAITOK | M_ZERO);
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 ---
171
172 if_initname(&sc->sc_if, ifc->ifc_name, unit);
173 sc->sc_if.if_softc = sc;
174 sc->sc_if.if_snd.ifq_maxlen = IFQ_MAXLEN;
175 sc->sc_if.if_type = IFT_TUNNEL;
176 sc->sc_if.if_addrlen = 0;
177 sc->sc_if.if_hdrlen = 24; /* IP + GRE */
178 sc->sc_if.if_mtu = GREMTU;

--- 603 unchanged lines hidden ---