if_faith.c (106939) | if_faith.c (109623) |
---|---|
1/* $KAME: if_faith.c,v 1.23 2001/12/17 13:55:29 sumikawa Exp $ */ 2 3/* 4 * Copyright (c) 1982, 1986, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 18 unchanged lines hidden (view full) --- 27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * | 1/* $KAME: if_faith.c,v 1.23 2001/12/17 13:55:29 sumikawa Exp $ */ 2 3/* 4 * Copyright (c) 1982, 1986, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 18 unchanged lines hidden (view full) --- 27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * |
35 * $FreeBSD: head/sys/net/if_faith.c 106939 2002-11-15 00:00:15Z sam $ | 35 * $FreeBSD: head/sys/net/if_faith.c 109623 2003-01-21 08:56:16Z alfred $ |
36 */ 37/* 38 * derived from 39 * @(#)if_loop.c 8.1 (Berkeley) 6/10/93 40 * Id: if_loop.c,v 1.22 1996/06/19 16:24:10 wollman Exp 41 */ 42 43/* --- 110 unchanged lines hidden (view full) --- 154 155int 156faith_clone_create(ifc, unit) 157 struct if_clone *ifc; 158 int unit; 159{ 160 struct faith_softc *sc; 161 | 36 */ 37/* 38 * derived from 39 * @(#)if_loop.c 8.1 (Berkeley) 6/10/93 40 * Id: if_loop.c,v 1.22 1996/06/19 16:24:10 wollman Exp 41 */ 42 43/* --- 110 unchanged lines hidden (view full) --- 154 155int 156faith_clone_create(ifc, unit) 157 struct if_clone *ifc; 158 int unit; 159{ 160 struct faith_softc *sc; 161 |
162 sc = malloc(sizeof(struct faith_softc), M_FAITH, M_WAITOK); | 162 sc = malloc(sizeof(struct faith_softc), M_FAITH, 0); |
163 bzero(sc, sizeof(struct faith_softc)); 164 165 sc->sc_if.if_softc = sc; 166 sc->sc_if.if_name = FAITHNAME; 167 sc->sc_if.if_unit = unit; 168 169 sc->sc_if.if_mtu = FAITHMTU; 170 /* Change to BROADCAST experimentaly to announce its prefix. */ --- 212 unchanged lines hidden --- | 163 bzero(sc, sizeof(struct faith_softc)); 164 165 sc->sc_if.if_softc = sc; 166 sc->sc_if.if_name = FAITHNAME; 167 sc->sc_if.if_unit = unit; 168 169 sc->sc_if.if_mtu = FAITHMTU; 170 /* Change to BROADCAST experimentaly to announce its prefix. */ --- 212 unchanged lines hidden --- |