summaryrefslogtreecommitdiff
path: root/static/freebsd/man4/ng_gif.4 3.html
diff options
context:
space:
mode:
Diffstat (limited to 'static/freebsd/man4/ng_gif.4 3.html')
-rw-r--r--static/freebsd/man4/ng_gif.4 3.html92
1 files changed, 92 insertions, 0 deletions
diff --git a/static/freebsd/man4/ng_gif.4 3.html b/static/freebsd/man4/ng_gif.4 3.html
new file mode 100644
index 00000000..e8a9c6b1
--- /dev/null
+++ b/static/freebsd/man4/ng_gif.4 3.html
@@ -0,0 +1,92 @@
+<table class="head">
+ <tr>
+ <td class="head-ltitle">NG_GIF(4)</td>
+ <td class="head-vol">Device Drivers Manual</td>
+ <td class="head-rtitle">NG_GIF(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_gif</code> &#x2014; <span class="Nd">generic
+ tunnel interface 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_gif.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">ng_gif</code> netgraph node type allows
+ <a class="Xr">gif(4)</a> interfaces to interact with the
+ <a class="Xr">netgraph(4)</a> networking subsystem. Once the
+ <code class="Nm">ng_gif</code> module is loaded in the kernel, a node is
+ automatically created for each <a class="Xr">gif(4)</a> interface in the
+ system. Each node will attempt to name itself with the same name as the
+ associated interface. All <code class="Nm">ng_gif</code> nodes are
+ persistent for as long as the interface itself exists.</p>
+<p class="Pp">Two hooks are supported: <code class="Dv">lower</code> and
+ <code class="Dv">orphans</code>. The hook name
+ <code class="Dv">divert</code> may be used as an alias for
+ <code class="Dv">lower</code>, and is provided for compatibility with
+ <a class="Xr">ng_ether(4)</a>. In reality the two names represent the same
+ hook.</p>
+<p class="Pp">The <code class="Dv">lower</code> hook is a connection to the raw
+ <a class="Xr">gif(4)</a> device. When connected, all incoming packets are
+ diverted out this hook. Writing to this hook results in a raw encapsulated
+ packet being transmitted by the device. Normal outgoing packets are not
+ affected by <code class="Dv">lower</code> being connected.</p>
+<p class="Pp">The <code class="Dv">orphans</code> hook is equivalent to
+ <code class="Dv">lower</code>, except that only unrecognized packets (that
+ would otherwise be discarded) are written to the hook, and normal incoming
+ traffic is unaffected. At most one of <code class="Dv">orphans</code> and
+ <code class="Dv">lower</code> may be connected at any time.</p>
+<p class="Pp">In all cases, frames are raw packets with the address family of
+ the packet attached to the front.</p>
+<p class="Pp">When no hooks are connected, packets flow normally upwards and
+ downwards.</p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="HOOKS"><a class="permalink" href="#HOOKS">HOOKS</a></h1>
+<p class="Pp">This node type supports the following hooks:</p>
+<dl class="Bl-tag">
+ <dt id="lower"><var class="Va">lower</var></dt>
+ <dd>Connection to the lower device link layer.</dd>
+ <dt id="orphans"><var class="Va">orphans</var></dt>
+ <dd>Like <code class="Dv">lower</code>, but only receives unrecognized
+ packets.</dd>
+</dl>
+</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 only the generic control messages.</p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="EXAMPLES"><a class="permalink" href="#EXAMPLES">EXAMPLES</a></h1>
+<p class="Pp">This command dumps all unrecognized packets received by the
+ <code class="Li">gif0</code> interface to standard output decoded in hex and
+ ASCII:</p>
+<p class="Pp"></p>
+<div class="Bd Bd-indent"><code class="Li">nghook -a gif0: orphans</code></div>
+</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">gif(4)</a>, <a class="Xr">netgraph(4)</a>,
+ <a class="Xr">netintro(4)</a>, <a class="Xr">ifconfig(8)</a>,
+ <a class="Xr">ngctl(8)</a>, <a class="Xr">nghook(8)</a></p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<p class="Pp"><span class="An">Brooks Davis</span>
+ &lt;<a class="Mt" href="mailto:brooks@FreeBSD.org">brooks@FreeBSD.org</a>&gt;</p>
+</section>
+</div>
+<table class="foot">
+ <tr>
+ <td class="foot-date">September 18, 2001</td>
+ <td class="foot-os">FreeBSD 15.0</td>
+ </tr>
+</table>