1/* $NetBSD: if_gre.c,v 1.49 2003/12/11 00:22:29 itojun Exp $ */ |
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 |
170 sc = malloc(sizeof(struct gre_softc), M_GRE, M_WAITOK | M_ZERO); |
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 --- |