1 .\" Copyright 2000 The Aerospace Corporation. All rights reserved.
3 .\" Redistribution and use in source and binary forms, with or without
4 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions, and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions, and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. The name of The Aerospace Corporation may not be used to endorse or
13 .\" promote products derived from this software.
15 .\" THIS SOFTWARE IS PROVIDED BY THE AEROSPACE CORPORATION "AS IS" AND
16 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AEROSPACE CORPORATION BE LIABLE FOR
19 .\" ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 .\" Author: Brooks Davis <brooks@FreeBSD.org>
31 .Dd September 18, 2001
36 .Nd generic tunnel interface netgraph node type
42 netgraph node type allows
44 interfaces to interact with
50 module is loaded in the kernel, a node is automatically created
53 interface in the system.
54 Each node will attempt to name itself with the same name
55 as the associated interface.
58 nodes are persistent for as long as the interface itself exists.
60 Two hooks are supported:
66 may be used as an alias for
68 and is provided for compatibility with
70 In reality the two names represent the same hook.
74 hook is a connection to the raw
77 When connected, all incoming packets are diverted out this hook.
78 Writing to this hook results in a raw encapsulated packet being transmitted
80 Normal outgoing packets are not affected by
88 except that only unrecognized packets (that would otherwise be discarded)
89 are written to the hook, and normal incoming traffic is unaffected.
94 may be connected at any time.
96 In all cases, frames are raw packets with the address family of the
97 packet attached to the front.
99 When no hooks are connected, packets flow normally upwards and downwards.
101 This node type supports the following hooks:
103 .Bl -tag -width ".Dv orphans"
105 Connection to the lower device link layer.
109 but only receives unrecognized packets.
112 This node type supports only the generic control messages.
114 This command dumps all unrecognized packets received by the
116 interface to standard output decoded in hex and ASCII:
118 .Dl "nghook -a gif0: orphans"
127 .An Brooks Davis Aq brooks@FreeBSD.org