diff options
author | zec <zec@FreeBSD.org> | 2010-05-16 14:51:36 +0000 |
---|---|---|
committer | zec <zec@FreeBSD.org> | 2010-05-16 14:51:36 +0000 |
commit | c779c4cdfde6c60be24c795ccab20cb548f9ab2b (patch) | |
tree | 9ab65eb8d614aa5b752927e84085a05085124f08 /share | |
parent | 5eb9806c00e622fcca05d691aa173f5da5b6e673 (diff) | |
download | FreeBSD-src-c779c4cdfde6c60be24c795ccab20cb548f9ab2b.zip FreeBSD-src-c779c4cdfde6c60be24c795ccab20cb548f9ab2b.tar.gz |
MFC r207680:
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')
-rw-r--r-- | share/man/man4/ng_bridge.4 | 10 | ||||
-rw-r--r-- | share/man/man4/ng_hub.4 | 15 |
2 files changed, 20 insertions, 5 deletions
diff --git a/share/man/man4/ng_bridge.4 b/share/man/man4/ng_bridge.4 index 3b1dd71..8884e33 100644 --- a/share/man/man4/ng_bridge.4 +++ b/share/man/man4/ng_bridge.4 @@ -34,7 +34,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 31, 2000 +.Dd May 5, 2010 .Dt NG_BRIDGE 4 .Os .Sh NAME @@ -181,11 +181,17 @@ but also atomically clears the statistics as well. .It Dv NGM_BRIDGE_GET_TABLE Returns the current host mapping table used to direct packets, in a .Dv "struct ng_bridge_host_ary" . +.It Dv NGM_BRIDGE_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_BRIDGE_SET_PERSISTENT +control message disables automatic node shutdown when the last hook gets +disconnected. .Sh FILES .Bl -tag -width XXXXXXXX -compact .It Pa /usr/share/examples/netgraph/ether.bridge 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 , |