BSD 4_3 release
[unix-history] / usr / man / man4 / en.4
CommitLineData
6ec15d08
KM
1.\" Copyright (c) 1983 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
95f51977 5.\" @(#)en.4 6.2 (Berkeley) 5/16/86
6ec15d08 6.\"
95f51977 7.TH EN 4 "May 16, 1986"
6ec15d08
KM
8.UC 5
9.SH NAME
10en \- Xerox 3 Mb/s Ethernet interface
11.SH SYNOPSIS
12.B "device en0 at uba0 csr 161000 vector enrint enxint encollide"
13.SH DESCRIPTION
14The
15.I en
16interface provides access to a 3 Mb/s Ethernet network.
17Due to limitations in the hardware, DMA transfers
18to and from the network must take place in the lower 64K bytes
f183d20a
MK
19of the UNIBUS address space, and thus this must be among the first
20UNIBUS devices enabled after boot.
6ec15d08 21.PP
f183d20a
MK
22Each of the host's network addresses
23is specified at boot time with an SIOCSIFADDR
24ioctl. The station address is discovered by probing the on-board Ethernet
25address register, and is used to verify the protocol addresses.
26No packets will be sent or accepted until
27a network address is supplied.
6ec15d08
KM
28.PP
29The interface software implements an exponential backoff algorithm
30when notified of a collision on the cable. This algorithm utilizes
31a 16-bit mask and the VAX-11's interval timer in calculating a series
32of random backoff values. The algorithm is as follows:
33.TP 5
341.
35Initialize the mask to be all 1's.
36.TP 5
372.
38If the mask is zero, 16 retries have been made and we give
39up.
40.TP 5
413.
42Shift the mask left one bit and formulate a backoff by
43masking the interval timer with the mask (this is actually
44the two's complement of the value).
45.TP 5
464.
47Use the value calculated in step 3 to delay before retransmitting
48the packet.
49.PP
f183d20a
MK
50The interface handles both Internet and NS protocol families.
51It normally tries to use a ``trailer'' encapsulation
52to minimize copying data on input and output.
53The use of trailers is negotiated with ARP.
54This negotiation may be disabled, on a per-interface basis,
55by setting the IFF_NOTRAILERS
6ec15d08
KM
56flag with an SIOCSIFFLAGS ioctl.
57.SH DIAGNOSTICS
58.BR "en%d: output error" .
59The hardware indicated an error on
60the previous transmission.
61.PP
62.BR "en%d: send error" .
63After 16 retransmissions using the
64exponential backoff algorithm described above, the packet
65was dropped.
66.PP
67.BR "en%d: input error" .
68The hardware indicated an error
69in reading a packet off the cable.
70.PP
71.BR "en%d: can't handle af%d" .
72The interface was handed
73a message with addresses formatted in an unsuitable address
74family; the packet was dropped.
75.SH SEE ALSO
76intro(4N), inet(4F)
77.SH BUGS
78The device has insufficient buffering to handle back to
79back packets. This makes use in a production environment
80painful.
81.PP
82The hardware does word at a time DMA without byte swapping.
83To compensate, byte swapping of user data must either be done
84by the user or by the system. A kludge to byte swap only
85IP packets is provided if the ENF_SWABIPS flag is defined in
86the driver and set at boot time with an SIOCSIFFLAGS ioctl.