Deleted Added
full compact
ng_gif.c (193744) ng_gif.c (195699)
1/*
2 * ng_gif.c
3 */
4
5/*-
6 * Copyright 2001 The Aerospace Corporation. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

57 * WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
58 * PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR
59 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
60 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
61 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
62 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
63 * OF SUCH DAMAGE.
64 *
1/*
2 * ng_gif.c
3 */
4
5/*-
6 * Copyright 2001 The Aerospace Corporation. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

57 * WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
58 * PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR
59 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
60 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
61 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
62 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
63 * OF SUCH DAMAGE.
64 *
65 * $FreeBSD: head/sys/netgraph/ng_gif.c 193744 2009-06-08 19:57:35Z bz $
65 * $FreeBSD: head/sys/netgraph/ng_gif.c 195699 2009-07-14 22:48:30Z rwatson $
66 */
67
68/*
69 * ng_gif(4) netgraph node type
70 */
71#include <sys/param.h>
72#include <sys/systm.h>
73#include <sys/kernel.h>

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

560 ng_gif_input_p = ng_gif_input;
561 ng_gif_input_orphan_p = ng_gif_input_orphan;
562
563 /* Create nodes for any already-existing gif interfaces */
564 IFNET_RLOCK();
565 VNET_LIST_RLOCK();
566 VNET_FOREACH(vnet_iter) {
567 CURVNET_SET_QUIET(vnet_iter); /* XXX revisit quiet */
66 */
67
68/*
69 * ng_gif(4) netgraph node type
70 */
71#include <sys/param.h>
72#include <sys/systm.h>
73#include <sys/kernel.h>

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

560 ng_gif_input_p = ng_gif_input;
561 ng_gif_input_orphan_p = ng_gif_input_orphan;
562
563 /* Create nodes for any already-existing gif interfaces */
564 IFNET_RLOCK();
565 VNET_LIST_RLOCK();
566 VNET_FOREACH(vnet_iter) {
567 CURVNET_SET_QUIET(vnet_iter); /* XXX revisit quiet */
568 INIT_VNET_NET(curvnet);
569 TAILQ_FOREACH(ifp, &V_ifnet, if_link) {
570 if (ifp->if_type == IFT_GIF)
571 ng_gif_attach(ifp);
572 }
573 CURVNET_RESTORE();
574 }
575 VNET_LIST_RUNLOCK();
576 IFNET_RUNLOCK();

--- 29 unchanged lines hidden ---
568 TAILQ_FOREACH(ifp, &V_ifnet, if_link) {
569 if (ifp->if_type == IFT_GIF)
570 ng_gif_attach(ifp);
571 }
572 CURVNET_RESTORE();
573 }
574 VNET_LIST_RUNLOCK();
575 IFNET_RUNLOCK();

--- 29 unchanged lines hidden ---