summaryrefslogtreecommitdiff
path: root/static/freebsd/man4/ng_split.4 4.html
blob: e2e859da869f7040d5901568c24b7d42b80b21e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<table class="head">
  <tr>
    <td class="head-ltitle">NG_SPLIT(4)</td>
    <td class="head-vol">Device Drivers Manual</td>
    <td class="head-rtitle">NG_SPLIT(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_split</code> &#x2014;
    <span class="Nd">netgraph node to separate incoming and outgoing
    flows</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_split.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">split</code> node type is used to split a
    bidirectional stream of packets into two separate unidirectional streams of
    packets.</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 three hooks:</p>
<dl class="Bl-tag">
  <dt id="in"><var class="Va">in</var></dt>
  <dd>Packets received on <i class="Em">in</i> are forwarded to
      <i class="Em">mixed</i>.</dd>
  <dt id="out"><var class="Va">out</var></dt>
  <dd>Packets received on <i class="Em">out</i> will be discarded as
    illegal.</dd>
  <dt id="mixed"><var class="Va">mixed</var></dt>
  <dd>Packets received on <i class="Em">mixed</i> are forwarded to
      <i class="Em">out</i>.</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="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.</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">ngctl(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_split</code> node type was implemented in
    <span class="Ux">FreeBSD 3.5</span> but incorporated into
    <span class="Ux">FreeBSD</span> in <span class="Ux">FreeBSD 5.0</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">Julian Elischer</span>
    &lt;<a class="Mt" href="mailto:julian@FreeBSD.org">julian@FreeBSD.org</a>&gt;
  <br/>
  <span class="An">Vitaly V. Belekhov</span>
    &lt;<a class="Mt" href="mailto:vitaly@riss-telecom.ru">vitaly@riss-telecom.ru</a>&gt;</p>
</section>
</div>
<table class="foot">
  <tr>
    <td class="foot-date">February 19, 2001</td>
    <td class="foot-os">FreeBSD 15.0</td>
  </tr>
</table>