summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/netgraph.h
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2005-07-21 12:31:42 +0000
committerglebius <glebius@FreeBSD.org>2005-07-21 12:31:42 +0000
commite2b48d0c4d9245ec309c698a9d84f10e00fa1072 (patch)
treefd55e1a4fcd289b4eab9c2761ee18002ac87fb00 /sys/netgraph/netgraph.h
parent0ef1972cdaa4c8c7131e8e0b7087d7fd9e2a746e (diff)
downloadFreeBSD-src-e2b48d0c4d9245ec309c698a9d84f10e00fa1072.zip
FreeBSD-src-e2b48d0c4d9245ec309c698a9d84f10e00fa1072.tar.gz
Enhance struct ng_hook - add hk_type field. This field will describe
data link type of the hook. It will be used to ease autoconfiguration of netgraph and also to print warning messages, when incompatoble nodes are connected together.
Diffstat (limited to 'sys/netgraph/netgraph.h')
-rw-r--r--sys/netgraph/netgraph.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netgraph/netgraph.h b/sys/netgraph/netgraph.h
index 4304ced..062fb0b 100644
--- a/sys/netgraph/netgraph.h
+++ b/sys/netgraph/netgraph.h
@@ -108,6 +108,7 @@ struct ng_hook {
void *hk_private; /* node dependant ID for this hook */
int hk_flags; /* info about this hook/link */
int hk_refs; /* dont actually free this till 0 */
+ int hk_type; /* tbd: hook data link type */
struct ng_hook *hk_peer; /* the other end of this link */
struct ng_node *hk_node; /* The node this hook is attached to */
LIST_ENTRY(ng_hook) hk_hooks; /* linked list of all hooks on node */
OpenPOWER on IntegriCloud