NetBSD/share/man/man4/man4.pc532/plip.4
1999-12-15 23:44:51 +00:00

110 lines
3.7 KiB
Groff

.\" $NetBSD: plip.4,v 1.6 1999/12/15 23:44:53 abs Exp $
.\"
.\" Copyright (c) 1994, 1997 Matthias Pfaller.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by Matthias Pfaller.
.\" 4. The name of the author may not be used to endorse or promote products
.\" derived from this software without specific prior written permission
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\"
.Dd December 1, 1994
.Dt PLIP 4 pc532
.Os
.Sh NAME
.Nm plip
.Nd Option for the lpt driver to allow IP over Centronics parallel ports
.Sh SYNOPSIS
.Cd "options PLIP"
.Cd "options COMPAT_PLIP10"
.Cd "options COMPAT_PLIP11"
.Sh DESCRIPTION
The
.Nm
interface provides a way to transport IP over Centronics parallel ports.
Protocols to communicate with Linux 1.0 and Linux 1.1 hosts are provided.
By default the 1.1 protocol is used.
To choose the 1.0 protocol use the link0 flag with
.Xr ifconfig 8 .
In order to use the 1.0 protocol the kernel has to be compiled with
COMPAT_PLIP10.
.Pp
The COMPAT_PLIP11 option selects a default MTU of 1486 bytes.
This is necessary to work around a bug that is present in the
.Nm
code for Linux 1.1.x and Linux 1.2.x.
.Sh NOTES
To connect two computers a "Laplink parallel cable" is used:
.sp
.TS
allbox tab(|);
c|c|c|c
l|n|n|l.
Signalname|Con A|Con B|Description
Data 0|2|15|Data out 0
Data 1|3|13|Data out 1
Data 2|4|12|Data out 2
Data 3|5|10|Data out 3/Wake out
Data 4|6|11|Data clock out
/Ack|10|5|Data in 3/Wake in
Busy|11|6|Data clock in
No Paper|12|4|Data in 2
Select|13|3|Data in 1
/Error|15|2|Data in 0
Gnd|18-25|18-25|Ground
.TE
.Pp
In both protocol versions Ethernet frames are used.
The 1.0 protocol assigns an Ethernet address of the form
FD:FD:ww:xx:yy:zz to the interface.
.Pp
The 1.1 protocol uses FC instead of FD, with ww, xx, yy and zz are
taken from the internet address ww.xx.yy.zz of the interface.
Ethernet support has to be configured into the kernel in order to use the
.Nm
interface.
.Sh DIAGNOSTICS
.Bl -diag
.It "plip?: tx hard error"
Packet transmission failed even after
.Dv PLIPMXRETRY
(20) retries.
.It "plip?: rx hard error"
.Dv PLIPMXERRS
(20) packets caused receive errors in sequence.
.It "plip?: checksum error"
A packet with a bad checksum was received.
.It "plip?: packet > MTU"
A bogus packet longer then the Maximum Transmission Unit (MTU)
length for the media was received.
.El
.Sh SEE ALSO
.Xr lpt 4 ,
.Xr ifconfig 8
.Sh HISTORY
The
.Nm
interface appeared in
.Nx 1.0 .