xref: /freebsd/share/man/man4/ng_rfc1490.4 (revision 9cbda59000e0f366b04c83d8d852c7c34b467722)
14cf49a43SJulian Elischer.\" Copyright (c) 1996-1999 Whistle Communications, Inc.
24cf49a43SJulian Elischer.\" All rights reserved.
34cf49a43SJulian Elischer.\"
44cf49a43SJulian Elischer.\" Subject to the following obligations and disclaimer of warranty, use and
54cf49a43SJulian Elischer.\" redistribution of this software, in source or object code forms, with or
64cf49a43SJulian Elischer.\" without modifications are expressly permitted by Whistle Communications;
74cf49a43SJulian Elischer.\" provided, however, that:
84cf49a43SJulian Elischer.\" 1. Any and all reproductions of the source or object code must include the
94cf49a43SJulian Elischer.\"    copyright notice above and the following disclaimer of warranties; and
104cf49a43SJulian Elischer.\" 2. No rights are granted, in any manner or form, to use Whistle
114cf49a43SJulian Elischer.\"    Communications, Inc. trademarks, including the mark "WHISTLE
124cf49a43SJulian Elischer.\"    COMMUNICATIONS" on advertising, endorsements, or otherwise except as
134cf49a43SJulian Elischer.\"    such appears in the above copyright notice or in the software.
144cf49a43SJulian Elischer.\"
154cf49a43SJulian Elischer.\" THIS SOFTWARE IS BEING PROVIDED BY WHISTLE COMMUNICATIONS "AS IS", AND
164cf49a43SJulian Elischer.\" TO THE MAXIMUM EXTENT PERMITTED BY LAW, WHISTLE COMMUNICATIONS MAKES NO
174cf49a43SJulian Elischer.\" REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING THIS SOFTWARE,
184cf49a43SJulian Elischer.\" INCLUDING WITHOUT LIMITATION, ANY AND ALL IMPLIED WARRANTIES OF
194cf49a43SJulian Elischer.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
204cf49a43SJulian Elischer.\" WHISTLE COMMUNICATIONS DOES NOT WARRANT, GUARANTEE, OR MAKE ANY
214cf49a43SJulian Elischer.\" REPRESENTATIONS REGARDING THE USE OF, OR THE RESULTS OF THE USE OF THIS
224cf49a43SJulian Elischer.\" SOFTWARE IN TERMS OF ITS CORRECTNESS, ACCURACY, RELIABILITY OR OTHERWISE.
234cf49a43SJulian Elischer.\" IN NO EVENT SHALL WHISTLE COMMUNICATIONS BE LIABLE FOR ANY DAMAGES
244cf49a43SJulian Elischer.\" RESULTING FROM OR ARISING OUT OF ANY USE OF THIS SOFTWARE, INCLUDING
254cf49a43SJulian Elischer.\" WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
264cf49a43SJulian Elischer.\" PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR
274cf49a43SJulian Elischer.\" SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
284cf49a43SJulian Elischer.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
294cf49a43SJulian Elischer.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
304cf49a43SJulian Elischer.\" THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
314cf49a43SJulian Elischer.\" OF SUCH DAMAGE.
324cf49a43SJulian Elischer.\"
33eddc45e7SJeroen Ruigrok van der Werven.\" Author: Archie Cobbs <archie@FreeBSD.org>
344cf49a43SJulian Elischer.\"
354cf49a43SJulian Elischer.\" $FreeBSD$
364cf49a43SJulian Elischer.\" $Whistle: ng_rfc1490.8,v 1.4 1999/01/25 23:46:27 archie Exp $
374cf49a43SJulian Elischer.\"
384cf49a43SJulian Elischer.Dd January 19, 1999
39bec35b9aSArchie Cobbs.Dt NG_RFC1490 4
403d45e180SRuslan Ermilov.Os
414cf49a43SJulian Elischer.Sh NAME
424cf49a43SJulian Elischer.Nm ng_rfc1490
434cf49a43SJulian Elischer.Nd RFC 1490 netgraph node type
444cf49a43SJulian Elischer.Sh SYNOPSIS
4532eef9aeSRuslan Ermilov.In netgraph/ng_rfc1490.h
464cf49a43SJulian Elischer.Sh DESCRIPTION
474cf49a43SJulian ElischerThe
484cf49a43SJulian Elischer.Nm rfc1490
494cf49a43SJulian Elischernode type performs protocol encapsulation, de-encapsulation, and
504cf49a43SJulian Elischermultiplexing according to RFC 1490 (which has since been updated by RFC 2427).
514cf49a43SJulian ElischerThis particular type of encapsulation is often used on top of frame relay
524cf49a43SJulian ElischerDLCI channels.
534cf49a43SJulian Elischer.Pp
544cf49a43SJulian ElischerThe
554cf49a43SJulian Elischer.Dv downstream
56bf7f20c2SRuslan Ermilovhook is used to transmit and receive encapsulated frames.
57bf7f20c2SRuslan ErmilovOn the other side of the node, the
584cf49a43SJulian Elischer.Dv inet
594cf49a43SJulian Elischerand
604cf49a43SJulian Elischer.Dv ppp
614cf49a43SJulian Elischerhooks are used to transmit and receive raw IP frames and PPP frames,
62bf7f20c2SRuslan Ermilovrespectively.
63bf7f20c2SRuslan ErmilovPPP frames are transmitted and received according to
644cf49a43SJulian ElischerRFC 1973; in particular, frames appearing on the
654cf49a43SJulian Elischer.Dv ppp
66bf7f20c2SRuslan Ermilovhook begin with the PPP protocol number.
67bf7f20c2SRuslan ErmilovThe
687586b25cSBrian Feldman.Dv ethernet
697586b25cSBrian Feldmanhook can be used to transmit and receive Ethernet frames (without a
707586b25cSBrian Feldmanchecksum) in RFC 1490's bridging format.
714cf49a43SJulian Elischer.Pp
724cf49a43SJulian ElischerTypically the
734cf49a43SJulian Elischer.Dv inet
744cf49a43SJulian Elischerhook is connected to the
754cf49a43SJulian Elischer.Dv inet
764cf49a43SJulian Elischerhook of an
77bec35b9aSArchie Cobbs.Xr ng_iface 4
784cf49a43SJulian Elischernode.
794cf49a43SJulian Elischer.Sh HOOKS
804cf49a43SJulian ElischerThis node type supports the following hooks:
814cf49a43SJulian Elischer.Pp
824cf49a43SJulian Elischer.Bl -tag -width foobarbazum
834cf49a43SJulian Elischer.It Dv downstream
844cf49a43SJulian ElischerConnects to the RFC 1490 peer entity.
857586b25cSBrian Feldman.It Dv ethernet
867586b25cSBrian FeldmanTransmits and receives bridged raw Ethernet frames, without a checksum.
874cf49a43SJulian Elischer.It Dv inet
884cf49a43SJulian ElischerTransmits and receives raw IP frames.
894cf49a43SJulian Elischer.It Dv ppp
904cf49a43SJulian ElischerTransmits and receives PPP frames.
914cf49a43SJulian Elischer.El
924cf49a43SJulian Elischer.Sh CONTROL MESSAGES
93a974ba0bSJulian ElischerThis node type supports the generic control messages, plus the following:
94bf7f20c2SRuslan Ermilov.Bl -tag -width indent
95a974ba0bSJulian Elischer.It Dv NGM_RFC1490_SETENCAP
96a974ba0bSJulian ElischerThis command sets encapsulation method for the node.
97a974ba0bSJulian ElischerThe desired method must be passed as a string message argument,
98a974ba0bSJulian Elischerand must be one of the following supported encapsulation modes:
99bf7f20c2SRuslan Ermilov.Bl -tag -width ".Qq Li ietf-snap"
100bf7f20c2SRuslan Ermilov.It Qq Li ietf-ip
101a974ba0bSJulian ElischerIP packets are sent using simple RFC1490/2427 encapsulation.
102bf7f20c2SRuslan Ermilov.It Qq Li ietf-snap
103a974ba0bSJulian ElischerIP packets are sent inside SNAP frames.
104a974ba0bSJulian ElischerAlso conforms to RFC1490/2427.
105bf7f20c2SRuslan Ermilov.It Qq Li cisco
106a974ba0bSJulian ElischerIP packets are sent and received using proprietary Cisco encapsulation
107a974ba0bSJulian Elischermethod.
108a974ba0bSJulian Elischer.El
109a974ba0bSJulian Elischer.It Dv NGM_RFC1490_GETENCAP
110a974ba0bSJulian ElischerThis command returns current encapsulation method on the node.
111a974ba0bSJulian Elischer.El
1124cf49a43SJulian Elischer.Sh SHUTDOWN
1134cf49a43SJulian ElischerThis node shuts down upon receipt of a
1144cf49a43SJulian Elischer.Dv NGM_SHUTDOWN
1154cf49a43SJulian Elischercontrol message, or when all hooks have been disconnected.
1164cf49a43SJulian Elischer.Sh SEE ALSO
1174cf49a43SJulian Elischer.Xr netgraph 4 ,
118bec35b9aSArchie Cobbs.Xr ng_frame_relay 4 ,
119bec35b9aSArchie Cobbs.Xr ng_iface 4 ,
120bec35b9aSArchie Cobbs.Xr ngctl 8
1214cf49a43SJulian Elischer.Rs
1220f5fcaa3SSheldon Hearn.%A C. Brown
1230f5fcaa3SSheldon Hearn.%A A. Malis
1244cf49a43SJulian Elischer.%T "Multiprotocol Interconnect over Frame Relay"
1254cf49a43SJulian Elischer.%O RFC 2427
1264cf49a43SJulian Elischer.Re
1274cf49a43SJulian Elischer.Rs
1284cf49a43SJulian Elischer.%A W. Simpson
1294cf49a43SJulian Elischer.%T "PPP in Frame Relay"
1304cf49a43SJulian Elischer.%O RFC 1973
1314cf49a43SJulian Elischer.Re
132bf7f20c2SRuslan Ermilov.Pp
133bf7f20c2SRuslan Ermilov.Pa http://www.cisco.com/warp/public/121/frf8modes.pdf
13451291597SJulian Elischer.Sh HISTORY
13551291597SJulian ElischerThe
13651291597SJulian Elischer.Nm
13751291597SJulian Elischernode type was implemented in
13851291597SJulian Elischer.Fx 4.0 .
13951291597SJulian Elischer.Sh AUTHORS
140eddc45e7SJeroen Ruigrok van der Werven.An Julian Elischer Aq julian@FreeBSD.org
1419cbda590SRuslan Ermilov.Sh BUGS
1429cbda590SRuslan ErmilovNot all of RFC 1490 is implemented.
143