diff options
author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2004-02-20 08:26:27 +0000 |
---|---|---|
committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2004-02-20 08:26:27 +0000 |
commit | 3c976c3f95bd86cefde48f20265f25895c2ba7e0 (patch) | |
tree | 899a8124743aa5214cabafa8d2bc1c81bdf053dd /sys/netgraph/ng_ether.c | |
parent | d1cd079e1265e96d3074904927c3a0f11715525e (diff) | |
download | src-3c976c3f95bd86cefde48f20265f25895c2ba7e0.tar.gz src-3c976c3f95bd86cefde48f20265f25895c2ba7e0.zip |
Backout previous change, it breaks build and it is not needed
layering violation. As pointed out, there is much better way to do this.
Sorry guys, I need to find a better way to force reviews.
Requested by: harti, julian, scottl (mentor)
Pointy hat to: pjd
Notes
Notes:
svn path=/head/; revision=126035
Diffstat (limited to 'sys/netgraph/ng_ether.c')
-rw-r--r-- | sys/netgraph/ng_ether.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/netgraph/ng_ether.c b/sys/netgraph/ng_ether.c index 642676df7031..db8e9412d3ae 100644 --- a/sys/netgraph/ng_ether.c +++ b/sys/netgraph/ng_ether.c @@ -67,7 +67,18 @@ #define IFP2AC(IFP) ((struct arpcom *)IFP) #define IFP2NG(ifp) ((struct ng_node *)((struct arpcom *)(ifp))->ac_netgraph) -typedef struct ng_ether_private *priv_p; +/* Per-node private data */ +struct private { + struct ifnet *ifp; /* associated interface */ + hook_p upper; /* upper hook connection */ + hook_p lower; /* lower OR orphan hook connection */ + u_char lowerOrphan; /* whether lower is lower or orphan */ + u_char autoSrcAddr; /* always overwrite source address */ + u_char promisc; /* promiscuous mode enabled */ + u_long hwassist; /* hardware checksum capabilities */ + u_int flags; /* flags e.g. really die */ +}; +typedef struct private *priv_p; /* Hook pointers used by if_ethersubr.c to callback to netgraph */ extern void (*ng_ether_input_p)(struct ifnet *ifp, struct mbuf **mp); |