BSD 4_2 development
[unix-history] / usr / man / man4 / en.4
CommitLineData
673b0044
C
1.TH EN 4 "27 July 1983"
2.UC 4
3.SH NAME
4en \- Xerox 3 Mb/s Ethernet interface
5.SH SYNOPSIS
6.B "device en0 at uba0 csr 161000 vector enrint enxint encollide"
7.SH DESCRIPTION
8The
9.I en
10interface provides access to a 3 Mb/s Ethernet network.
11Due to limitations in the hardware, DMA transfers
12to and from the network must take place in the lower 64K bytes
13of the UNIBUS address space.
14.PP
15The network number is specified with a SIOCSIFADDR ioctl; the
16host's address is discovered by probing the on-board Ethernet
17address register. No packets will be sent or accepted until
18a network number is supplied.
19.PP
20The interface software implements an exponential backoff algorithm
21when notified of a collision on the cable. This algorithm utilizes
22a 16-bit mask and the VAX-11's interval timer in calculating a series
23of random backoff values. The algorithm is as follows:
24.TP 5
251.
26Initialize the mask to be all 1's.
27.TP 5
282.
29If the mask is zero, 16 retries have been made and we give
30up.
31.TP 5
323.
33Shift the mask left one bit and formulate a backoff by
34masking the interval timer with the mask (this is actually
35the two's complement of the value).
36.TP 5
374.
38Use the value calculated in step 3 to delay before retransmitting
39the packet.
40.PP
41The interface handles both Internet and PUP protocol families,
42with the interface address maintained in Internet format.
43PUP addresses are converted to Internet addresses by subsituting
44PUP network and host values for Internet network and local part
45values.
46.PP
47The interface normally tries to use a ``trailer'' encapsulation
48to minimize copying data on input and output. This may be
49disabled, on a per-interface basis, by setting the IFF_NOTRAILERS
50flag with an SIOCSIFFLAGS ioctl.
51.SH DIAGNOSTICS
52.BR "en%d: output error" .
53The hardware indicated an error on
54the previous transmission.
55.PP
56.BR "en%d: send error" .
57After 16 retransmissions using the
58exponential backoff algorithm described above, the packet
59was dropped.
60.PP
61.BR "en%d: input error" .
62The hardware indicated an error
63in reading a packet off the cable.
64.PP
65.BR "en%d: can't handle af%d" .
66The interface was handed
67a message with addresses formatted in an unsuitable address
68family; the packet was dropped.
69.SH SEE ALSO
70intro(4N), inet(4F)
71.SH BUGS
72The device has insufficient buffering to handle back to
73back packets. This makes use in a production environment
74painful.
75.PP
76The hardware does word at a time DMA without byte swapping.
77To compensate, byte swapping of user data must either be done
78by the user or by the system. A kludge to byte swap only
79IP packets is provided if the ENF_SWABIPS flag is defined in
80the driver and set at boot time with an SIOCSIFFLAGS ioctl.