summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_hub.h
diff options
context:
space:
mode:
authorzec <zec@FreeBSD.org>2010-05-05 22:06:05 +0000
committerzec <zec@FreeBSD.org>2010-05-05 22:06:05 +0000
commitfc65bde07d9854848d689e2c1fefa55448b3880a (patch)
treea12bc1a8023da35bc5ab9ba5c3811bbb1dcca19d /sys/netgraph/ng_hub.h
parentf3856c6cf2fb115757967b7e32bdeb21bd27d1ee (diff)
downloadFreeBSD-src-fc65bde07d9854848d689e2c1fefa55448b3880a.zip
FreeBSD-src-fc65bde07d9854848d689e2c1fefa55448b3880a.tar.gz
Add an optional "persistent" flag to ng_hub and ng_bridge, which if set,
disables automatic node shutdown when the last hook gets disconnected. Reviewed by: julian
Diffstat (limited to 'sys/netgraph/ng_hub.h')
-rw-r--r--sys/netgraph/ng_hub.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/netgraph/ng_hub.h b/sys/netgraph/ng_hub.h
index a735d7b..d6b16e0 100644
--- a/sys/netgraph/ng_hub.h
+++ b/sys/netgraph/ng_hub.h
@@ -33,4 +33,9 @@
#define NG_HUB_NODE_TYPE "hub"
#define NGM_HUB_COOKIE 1082189597
+/* Netgraph control messages */
+enum {
+ NGM_HUB_SET_PERSISTENT = 1, /* set persistent mode */
+};
+
#endif /* _NETGRAPH_NG_HUB_H_ */
OpenPOWER on IntegriCloud