aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph/ng_ether.h
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2004-02-19 16:58:01 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2004-02-19 16:58:01 +0000
commitd592e95ba7198bd3841803c00851e6e5f6c7dbd2 (patch)
tree93427e6b5668759995d0ebf44309ec0fe3e4efa4 /sys/netgraph/ng_ether.h
parentcc3ba4277b446f67f1d9f12bf732941b7bec94a4 (diff)
downloadsrc-d592e95ba7198bd3841803c00851e6e5f6c7dbd2.tar.gz
src-d592e95ba7198bd3841803c00851e6e5f6c7dbd2.zip
Export private structure owned by ng_ether(4) module outside.
It'll is required by new failure detection algorithm for ng_one2many(4). No response from: julian, archie Silent on: net@ Approved by: scottl (mentor)
Notes
Notes: svn path=/head/; revision=126011
Diffstat (limited to 'sys/netgraph/ng_ether.h')
-rw-r--r--sys/netgraph/ng_ether.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/netgraph/ng_ether.h b/sys/netgraph/ng_ether.h
index 98a0b4c5c608..7dbb4197451a 100644
--- a/sys/netgraph/ng_ether.h
+++ b/sys/netgraph/ng_ether.h
@@ -65,5 +65,17 @@ enum {
NGM_ETHER_SET_AUTOSRC, /* enable/disable src addr override */
};
+/* Per-node private data */
+struct ng_ether_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 */
+};
+
#endif /* _NETGRAPH_NG_ETHER_H_ */