ng_ether.c (3b8f08459569bf0faa21473e5cec2491e95c9349) ng_ether.c (833e8dc5ab711a9485790d950801e32798d55558)
1
2/*
3 * ng_ether.c
4 */
5
6/*-
7 * Copyright (c) 1996-2000 Whistle Communications, Inc.
8 * All rights reserved.

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

69
70#include <netgraph/ng_message.h>
71#include <netgraph/netgraph.h>
72#include <netgraph/ng_parse.h>
73#include <netgraph/ng_ether.h>
74
75MODULE_VERSION(ng_ether, 1);
76
1
2/*
3 * ng_ether.c
4 */
5
6/*-
7 * Copyright (c) 1996-2000 Whistle Communications, Inc.
8 * All rights reserved.

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

69
70#include <netgraph/ng_message.h>
71#include <netgraph/netgraph.h>
72#include <netgraph/ng_parse.h>
73#include <netgraph/ng_ether.h>
74
75MODULE_VERSION(ng_ether, 1);
76
77#define IFP2NG(ifp) (IFP2AC((ifp))->ac_netgraph)
77#define IFP2NG(ifp) ((ifp)->if_l2com)
78
79/* Per-node private data */
80struct private {
81 struct ifnet *ifp; /* associated interface */
82 hook_p upper; /* upper hook connection */
83 hook_p lower; /* lower hook connection */
84 hook_p orphan; /* orphan hook connection */
85 u_char autoSrcAddr; /* always overwrite source address */

--- 795 unchanged lines hidden ---
78
79/* Per-node private data */
80struct private {
81 struct ifnet *ifp; /* associated interface */
82 hook_p upper; /* upper hook connection */
83 hook_p lower; /* lower hook connection */
84 hook_p orphan; /* orphan hook connection */
85 u_char autoSrcAddr; /* always overwrite source address */

--- 795 unchanged lines hidden ---