Deleted Added
full compact
ng_iface.c (195699) ng_iface.c (195727)
1/*
2 * ng_iface.c
3 */
4
5/*-
6 * Copyright (c) 1996-1999 Whistle Communications, Inc.
7 * All rights reserved.
8 *

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

32 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
36 * OF SUCH DAMAGE.
37 *
38 * Author: Archie Cobbs <archie@freebsd.org>
39 *
1/*
2 * ng_iface.c
3 */
4
5/*-
6 * Copyright (c) 1996-1999 Whistle Communications, Inc.
7 * All rights reserved.
8 *

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

32 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
36 * OF SUCH DAMAGE.
37 *
38 * Author: Archie Cobbs <archie@freebsd.org>
39 *
40 * $FreeBSD: head/sys/netgraph/ng_iface.c 195699 2009-07-14 22:48:30Z rwatson $
40 * $FreeBSD: head/sys/netgraph/ng_iface.c 195727 2009-07-16 21:13:04Z rwatson $
41 * $Whistle: ng_iface.c,v 1.33 1999/11/01 09:24:51 julian Exp $
42 */
43
44/*
45 * This node is also a system networking interface. It has
46 * a hook for each protocol (IP, AppleTalk, IPX, etc). Packets
47 * are simply relayed between the interface and the hooks.
48 *

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

208 .cmdlist = ng_iface_cmds,
209};
210NETGRAPH_INIT(iface, &typestruct);
211
212static vnet_attach_fn ng_iface_iattach;
213static vnet_detach_fn ng_iface_idetach;
214
215static VNET_DEFINE(struct unrhdr *, ng_iface_unit);
41 * $Whistle: ng_iface.c,v 1.33 1999/11/01 09:24:51 julian Exp $
42 */
43
44/*
45 * This node is also a system networking interface. It has
46 * a hook for each protocol (IP, AppleTalk, IPX, etc). Packets
47 * are simply relayed between the interface and the hooks.
48 *

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

208 .cmdlist = ng_iface_cmds,
209};
210NETGRAPH_INIT(iface, &typestruct);
211
212static vnet_attach_fn ng_iface_iattach;
213static vnet_detach_fn ng_iface_idetach;
214
215static VNET_DEFINE(struct unrhdr *, ng_iface_unit);
216#define V_ng_iface_unit VNET_GET(ng_iface_unit)
216#define V_ng_iface_unit VNET(ng_iface_unit)
217
218#ifdef VIMAGE
219static vnet_modinfo_t vnet_ng_iface_modinfo = {
220 .vmi_id = VNET_MOD_NG_IFACE,
221 .vmi_name = "ng_iface",
222 .vmi_dependson = VNET_MOD_NETGRAPH,
223 .vmi_iattach = ng_iface_iattach,
224 .vmi_idetach = ng_iface_idetach

--- 662 unchanged lines hidden ---
217
218#ifdef VIMAGE
219static vnet_modinfo_t vnet_ng_iface_modinfo = {
220 .vmi_id = VNET_MOD_NG_IFACE,
221 .vmi_name = "ng_iface",
222 .vmi_dependson = VNET_MOD_NETGRAPH,
223 .vmi_iattach = ng_iface_iattach,
224 .vmi_idetach = ng_iface_idetach

--- 662 unchanged lines hidden ---