Deleted Added
full compact
ng_eiface.c (106933) ng_eiface.c (109623)
1/*-
2 *
3 * Copyright (c) 1999-2001, Vitaly V Belekhov
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 11 unchanged lines hidden (view full) ---

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
1/*-
2 *
3 * Copyright (c) 1999-2001, Vitaly V Belekhov
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 11 unchanged lines hidden (view full) ---

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 * $FreeBSD: head/sys/netgraph/ng_eiface.c 106933 2002-11-14 23:44:37Z sam $
28 * $FreeBSD: head/sys/netgraph/ng_eiface.c 109623 2003-01-21 08:56:16Z alfred $
29 */
30
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/errno.h>
35#include <sys/kernel.h>
36#include <sys/malloc.h>

--- 375 unchanged lines hidden (view full) ---

412static int
413ng_eiface_constructor(node_p node)
414{
415 struct ifnet *ifp;
416 priv_p priv;
417 int error = 0;
418
419 /* Allocate node and interface private structures */
29 */
30
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/errno.h>
35#include <sys/kernel.h>
36#include <sys/malloc.h>

--- 375 unchanged lines hidden (view full) ---

412static int
413ng_eiface_constructor(node_p node)
414{
415 struct ifnet *ifp;
416 priv_p priv;
417 int error = 0;
418
419 /* Allocate node and interface private structures */
420 MALLOC(priv, priv_p, sizeof(*priv), M_NETGRAPH, M_WAITOK);
420 MALLOC(priv, priv_p, sizeof(*priv), M_NETGRAPH, 0);
421 if (priv == NULL) {
422 return (ENOMEM);
423 }
424 bzero(priv, sizeof(*priv));
425
426 ifp = &(priv->arpcom.ac_if);
427
428 /* Link them together */

--- 242 unchanged lines hidden ---
421 if (priv == NULL) {
422 return (ENOMEM);
423 }
424 bzero(priv, sizeof(*priv));
425
426 ifp = &(priv->arpcom.ac_if);
427
428 /* Link them together */

--- 242 unchanged lines hidden ---