diff options
author | zec <zec@FreeBSD.org> | 2010-05-05 22:06:05 +0000 |
---|---|---|
committer | zec <zec@FreeBSD.org> | 2010-05-05 22:06:05 +0000 |
commit | fc65bde07d9854848d689e2c1fefa55448b3880a (patch) | |
tree | a12bc1a8023da35bc5ab9ba5c3811bbb1dcca19d /sys/netgraph/ng_hub.h | |
parent | f3856c6cf2fb115757967b7e32bdeb21bd27d1ee (diff) | |
download | FreeBSD-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.h | 5 |
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_ */ |