summaryrefslogtreecommitdiff
path: root/static/freebsd/man4/ng_hub.4 3.html
diff options
context:
space:
mode:
Diffstat (limited to 'static/freebsd/man4/ng_hub.4 3.html')
-rw-r--r--static/freebsd/man4/ng_hub.4 3.html74
1 files changed, 74 insertions, 0 deletions
diff --git a/static/freebsd/man4/ng_hub.4 3.html b/static/freebsd/man4/ng_hub.4 3.html
new file mode 100644
index 00000000..387f3e10
--- /dev/null
+++ b/static/freebsd/man4/ng_hub.4 3.html
@@ -0,0 +1,74 @@
+<table class="head">
+ <tr>
+ <td class="head-ltitle">NG_HUB(4)</td>
+ <td class="head-vol">Device Drivers Manual</td>
+ <td class="head-rtitle">NG_HUB(4)</td>
+ </tr>
+</table>
+<div class="manual-text">
+<section class="Sh">
+<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<p class="Pp"><code class="Nm">ng_hub</code> &#x2014; <span class="Nd">packet
+ distribution netgraph node type</span></p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<p class="Pp"><code class="In">#include
+ &lt;<a class="In">netgraph/ng_hub.h</a>&gt;</code></p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<p class="Pp">The <code class="Nm">hub</code> node type provides a simple
+ mechanism for distributing packets over several links. Packets received on
+ any of the hooks are forwarded out the other hooks. Packets are not altered
+ in any way.</p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="HOOKS"><a class="permalink" href="#HOOKS">HOOKS</a></h1>
+<p class="Pp">A <code class="Nm">hub</code> node accepts any request to connect,
+ regardless of the hook name, as long as the name is unique.</p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="CONTROL_MESSAGES"><a class="permalink" href="#CONTROL_MESSAGES">CONTROL
+ MESSAGES</a></h1>
+<p class="Pp">This node type supports the generic control messages, plus the
+ following:</p>
+<dl class="Bl-tag">
+ <dt id="NGM_HUB_SET_PERSISTENT"><a class="permalink" href="#NGM_HUB_SET_PERSISTENT"><code class="Dv">NGM_HUB_SET_PERSISTENT</code></a>
+ (<code class="Ic">setpersistent</code>)</dt>
+ <dd>This command sets the persistent flag on the node, and takes no
+ arguments.</dd>
+</dl>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="SHUTDOWN"><a class="permalink" href="#SHUTDOWN">SHUTDOWN</a></h1>
+<p class="Pp">This node shuts down upon receipt of a
+ <code class="Dv">NGM_SHUTDOWN</code> control message, or when all hooks have
+ been disconnected. Setting the persistent flag via a
+ <code class="Dv">NGM_HUB_SET_PERSISTENT</code> control message disables
+ automatic node shutdown when the last hook gets disconnected.</p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+ ALSO</a></h1>
+<p class="Pp"><a class="Xr">netgraph(4)</a>, <a class="Xr">ng_bridge(4)</a>,
+ <a class="Xr">ng_ether(4)</a>, <a class="Xr">ng_one2many(4)</a>,
+ <a class="Xr">ngctl(8)</a>, <a class="Xr">nghook(8)</a></p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<p class="Pp">The <code class="Nm">ng_hub</code> node type appeared in
+ <span class="Ux">FreeBSD 5.3</span>.</p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<p class="Pp"><span class="An">Ruslan Ermilov</span>
+ &lt;<a class="Mt" href="mailto:ru@FreeBSD.org">ru@FreeBSD.org</a>&gt;</p>
+</section>
+</div>
+<table class="foot">
+ <tr>
+ <td class="foot-date">May 5, 2010</td>
+ <td class="foot-os">FreeBSD 15.0</td>
+ </tr>
+</table>