summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-02-19 16:58:01 +0000
committerpjd <pjd@FreeBSD.org>2004-02-19 16:58:01 +0000
commiteb34e2938ab63180b53f296f366dcbb753b2b47f (patch)
tree93427e6b5668759995d0ebf44309ec0fe3e4efa4 /sys/netgraph
parente035c01b86db47303c71de93d450ca1cdcb10f6b (diff)
downloadFreeBSD-src-eb34e2938ab63180b53f296f366dcbb753b2b47f.zip
FreeBSD-src-eb34e2938ab63180b53f296f366dcbb753b2b47f.tar.gz
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)
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/ng_ether.c13
-rw-r--r--sys/netgraph/ng_ether.h12
2 files changed, 13 insertions, 12 deletions
diff --git a/sys/netgraph/ng_ether.c b/sys/netgraph/ng_ether.c
index db8e941..642676d 100644
--- a/sys/netgraph/ng_ether.c
+++ b/sys/netgraph/ng_ether.c
@@ -67,18 +67,7 @@
#define IFP2AC(IFP) ((struct arpcom *)IFP)
#define IFP2NG(ifp) ((struct ng_node *)((struct arpcom *)(ifp))->ac_netgraph)
-/* 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;
+typedef struct ng_ether_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);
diff --git a/sys/netgraph/ng_ether.h b/sys/netgraph/ng_ether.h
index 98a0b4c..7dbb419 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_ */
OpenPOWER on IntegriCloud