1 .\" Copyright (c) 1996-1999 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@FreeBSD.org>
36 .\" $Whistle: ng_cisco.8,v 1.5 1999/01/25 23:46:26 archie Exp $
43 .Nd Cisco HDLC protocol netgraph node type
47 .In netgraph/ng_cisco.h
51 node type performs encapsulation and de-encapsulation of packets
52 using the Cisco HDLC protocol.
53 This is a fairly simple
54 protocol for the transmission of packets across
55 high speed synchronous lines.
56 Each packet is prepended with
57 an Ethertype, indicating the protocol.
66 hook should connect to the synchronous line.
74 hooks, which transmit and receive raw IP, IPv6, AppleTalk, and IPX packets,
76 Typically these hooks would connect to the corresponding
81 In order to function properly for IP traffic, the node must be informed
82 of the local IP address and netmask setting.
83 This is because the protocol
86 packet which we must be prepared to answer.
87 There are two ways to accomplish this, manually and automatically.
89 Whenever such an inquire packet is received, the node sends a
90 .Dv NGM_CISCO_GET_IPADDR
91 control message to the peer node connected to the
94 If the peer responds, then that response is used.
95 This is the automatic method.
97 If the peer does not respond, the node falls back on its cached value
98 for the IP address and netmask.
99 This cached value can be set at any time
101 .Dv NGM_CISCO_SET_IPADDR
102 message, and this is the manual method.
106 hook is connected to the
110 node, as is usually the case, then configuration is automatic as the
113 .Dv NGM_CISCO_GET_IPADDR
116 This node type supports the following hooks:
118 .Bl -tag -width foobarbazio
120 The connection to the synchronous line.
131 This node type supports the generic control messages, plus the following:
133 .It Dv NGM_CISCO_SET_IPADDR
134 This command takes an array of two
137 The first is the IP address of the corresponding interface
138 and the second is the netmask.
139 .It Dv NGM_CISCO_GET_IPADDR
140 This command returns the IP configuration in the same format used by
141 .Dv NGM_CISCO_SET_IPADDR .
144 by this node type to the
146 peer whenever an IP address inquiry packet is received.
147 .It Dv NGM_CISCO_GET_STATUS
149 .Dv "struct ngciscostat" :
150 .Bd -literal -offset 4n
152 u_int32_t seq_retries; /* # unack'd retries */
153 u_int32_t keepalive_period; /* in seconds */
158 This node shuts down upon receipt of a
160 control message, or when all hooks have been disconnected.
167 .%T "Requirements for an Internet Standard Point-to-Point Protocol"
172 is a trademark of Cisco Systems, Inc.
176 node type was implemented in
179 .An Julian Elischer Aq julian@FreeBSD.org ,
180 .An Archie Cobbs Aq archie@FreeBSD.org
182 Not all of the functionality has been implemented.
184 the node does not support querying the remote end for its IP address