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 /share/man/man4/ng_hub.4 | |
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 'share/man/man4/ng_hub.4')
-rw-r--r-- | share/man/man4/ng_hub.4 | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/share/man/man4/ng_hub.4 b/share/man/man4/ng_hub.4 index a1ad068..c52aba0 100644 --- a/share/man/man4/ng_hub.4 +++ b/share/man/man4/ng_hub.4 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd April 17, 2004 +.Dd May 5, 2010 .Dt NG_HUB 4 .Os .Sh NAME @@ -45,11 +45,20 @@ A node accepts any request to connect, regardless of the hook name, as long as the name is unique. .Sh CONTROL MESSAGES -This node type supports only the generic control messages. +This node type supports the generic control messages, plus the +following: +.Bl -tag -width foo +.It Dv NGM_HUB_SET_PERSISTENT +This command sets the persistent flag on the node, and takes no arguments. +.El .Sh SHUTDOWN This node shuts down upon receipt of a .Dv NGM_SHUTDOWN -control message, or when all hooks have been disconnected. +control message, or when all hooks have been disconnected. Setting the +persistent flag via a +.Dv NGM_HUB_SET_PERSISTENT +control message disables automatic node shutdown when the last hook gets +disconnected. .Sh SEE ALSO .Xr netgraph 4 , .Xr ng_bridge 4 , |