aboutsummaryrefslogtreecommitdiff
path: root/share/man/man4/ng_hub.4
diff options
context:
space:
mode:
authorMarko Zec <zec@FreeBSD.org>2010-05-05 22:06:05 +0000
committerMarko Zec <zec@FreeBSD.org>2010-05-05 22:06:05 +0000
commitf8aab721b2d046452ffa9347cb20ab26f62d7b9a (patch)
treea12bc1a8023da35bc5ab9ba5c3811bbb1dcca19d /share/man/man4/ng_hub.4
parente4b50334ec633d9ca7dbb970b48c72753a0a9d66 (diff)
downloadsrc-f8aab721b2d046452ffa9347cb20ab26f62d7b9a.tar.gz
src-f8aab721b2d046452ffa9347cb20ab26f62d7b9a.zip
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
Notes
Notes: svn path=/head/; revision=207680
Diffstat (limited to 'share/man/man4/ng_hub.4')
-rw-r--r--share/man/man4/ng_hub.415
1 files changed, 12 insertions, 3 deletions
diff --git a/share/man/man4/ng_hub.4 b/share/man/man4/ng_hub.4
index a1ad0680171c..c52aba048477 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 ,