Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

streamio(7)

clone(7)

ET(7)  —  

NAME

et − generic ethernet driver

DESCRIPTION

et is a STREAMS general ethernet driver.  It is general in the sense that it can support many different hardware devices, such as the AMD’s LANCE device or Interphase EAGLE board. 

COMMAND FUNCTIONS

et recognizes the following ioctl commands. 

ET_GFACADDR Get manufacturer assigned ethernet address. 

ET_SADDRESS Set ethernet address to be used. 

ET_GADDRESS Get ethernet address currently being used. 

ET_SETTYPE Set the ethernet type field. 

ET_GETTYPE Get the ethernet type currently being used. 

ET_MCASTOP Multicast operations.  This ioctl takes the following arguments:

struct et_mcast {
intem_cmd;/∗ command ∗/
int em_naddr;/∗ number of addresses ∗/
eaddr_tem_addr[MAXMCAST];
};

where em_cmd can be one of the following values:

EM_SET Set multicast addresses.  All existing multicast addresses are cleared first. 

EM_CLR Clear all multicast addresses. 

EM_ADD Add multicast addresses to the current set of addresses. 

EM_DEL Delete multicast addresses. 

EM_GET Get the multicast addresses currently being used. 

ET_SETMODE Direct the generic ethernet module to do, with the following arguments:

ER_ETHERRAW Specify a raw ethernet I/O. 

ER_ETCTYPE On raw ethernet output, the ethernet type field should use the value stored in the driver (its value was assigned by a previous ET_SETF ioctl). 

ER_ETCSRC On raw ethernet output, the source ethernet address field should use the value associated with this device. 

ER_ETALLTYPE On input, accept packets with all ethernet types. 

ET_GETMODE Get the mode of the generic ethernet module. 

ET_SETLMODE Set the mode of the lower level hardware device to:

ETC_PRM Enable promiscuous receiving mode. 

ETC_INTL Enable internal loopback. 

ETC_DRTY Disable transmit retry. 

ETC_COLL Force collision on next transmit. 

ETC_DTCR Disable transmit CRC generation. 

ETC_DTX Disable transmitter. 

ETC_DRX Disable receiver. 

ET_GETLMODE Get the mode of the lower level hardware device. 

Only root is allowed to open an ethernet device or issued ioctl commands.  Note that ioctl operations (e.g. promiscuous mode or multicast operations) may not be supported by all lower level devices.  Modes of the generic ethernet module and the lower level devices are initialized to zero (0). 

FILES

/dev/etc0 − et clone device for controller 0
/dev/etc1 − et clone device for controller 1
/dev/etc2 − et clone device for controller 2
/dev/etm0 − et control channel for controller 0
/dev/etm1 − et control channel for controller 1
/dev/etm2 − et control channel for controller 2

SEE ALSO

streamio(7), clone(7)

September 02, 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026