1 .\" Copyright (c) 2000 Whistle Communications, Inc.
2 .\" All rights reserved.
4 .\" Subject to the following obligations and disclaimer of warranty, use and
5 .\" redistribution of this software, in source or object code forms, with or
6 .\" without modifications are expressly permitted by Whistle Communications;
7 .\" provided, however, that:
8 .\" 1. Any and all reproductions of the source or object code must include the
9 .\" copyright notice above and the following disclaimer of warranties; and
10 .\" 2. No rights are granted, in any manner or form, to use Whistle
11 .\" Communications, Inc. trademarks, including the mark "WHISTLE
12 .\" COMMUNICATIONS" on advertising, endorsements, or otherwise except as
13 .\" such appears in the above copyright notice or in the software.
15 .\" THIS SOFTWARE IS BEING PROVIDED BY WHISTLE COMMUNICATIONS "AS IS", AND
16 .\" TO THE MAXIMUM EXTENT PERMITTED BY LAW, WHISTLE COMMUNICATIONS MAKES NO
17 .\" REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING THIS SOFTWARE,
18 .\" INCLUDING WITHOUT LIMITATION, ANY AND ALL IMPLIED WARRANTIES OF
19 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
20 .\" WHISTLE COMMUNICATIONS DOES NOT WARRANT, GUARANTEE, OR MAKE ANY
21 .\" REPRESENTATIONS REGARDING THE USE OF, OR THE RESULTS OF THE USE OF THIS
22 .\" SOFTWARE IN TERMS OF ITS CORRECTNESS, ACCURACY, RELIABILITY OR OTHERWISE.
23 .\" IN NO EVENT SHALL WHISTLE COMMUNICATIONS BE LIABLE FOR ANY DAMAGES
24 .\" RESULTING FROM OR ARISING OUT OF ANY USE OF THIS SOFTWARE, INCLUDING
25 .\" WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
26 .\" PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR
27 .\" SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
28 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30 .\" THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
33 .\" Author: Archie Cobbs <archie@whistle.com>
42 .Nd Ethernet netgraph node type
44 .Fd #include <netgraph/ng_ether.h>
48 netgraph node type allows Ethernet interfaces to interact with
51 networking subsystem. The kernel must be compiled with
56 for this functionality to be enabled.
57 This causes a netgraph node to be automatically created for each Ethernet
58 interface in the system. The node will have a name equal to
59 the name of the interface, and it will be persistent.
61 The Ethernet interface continues to function normally until a connection
62 is made to one of the two supported hooks,
68 hook is used to receive Ethernet frames received by the device and
69 having an unknown or unsupported Ethertype.
72 hook is used to divert
74 Ethernet frames received by the device; the interface will otherwise
75 appear to go silent until this hook is disconnected.
77 Either hook may be used to transmit Ethernet frames by transmitting packets
78 to the hook. In all cases, frames are raw Ethernet frames with the standard
79 14 byte Ethernet header (but no checksum).
81 This node type supports the following hooks:
83 .Bl -tag -width orphans
85 This hook transmits Ethernet frames received by the device and
86 having an unknown or unsupported Ethertype. Frames received on
87 this hook are written as-is out on the wire.
89 When connected, this hook transmits all Ethernet frames received by the device.
90 Frames received on this hook are written as-is out on the wire.
93 This node type supports only the generic control messages.
95 This node is persistent. Upon receipt of a
97 control message, all hooks are disconnected.
99 This command will dump all packets received by the
101 interface to standard output as decoded hex and ASCII:
104 nghook -a fxp0: divert
114 .An Julian Elischer Aq julian@FreeBSD.org