ILANS(4,F) AIX Technical Reference ILANS(4,F)
-------------------------------------------------------------------------------
ilans
PURPOSE
Supports the ILANS network device driver.
# include <sys/devinfo.h>
# include <sys/b370/ilans.h>
# include <sys/b370/ilansceti.h>
DESCRIPTION
The ilans device driver is used to drive to the 9370 Integrated Token Ring
Adatper. It is unique to AIX/370.
Since the supported device is a LAN network interface, normal network traffic
is transmitted and received using the socket interface and not the device
interface. The device interface is used only to monitor and control the
operation of the device, via ioctl commands.
The device used to perform this monitor and control is /dev/ilans#, where # is
the device minor number.
There is a small number of ioctl operations available besides the standard
IOCTYPE and IOCINFO commands. They are:
DIOCONLINE
Bring the device on-line.
ioctl(fd, DIOCONLINE, arg)
char *arg
The argument is ignored.
DIOCOFFLINE
Take the device off-line.
ioctl(fd, DIOCOFFLINE, arg)
char *arg
The argument is ignored.
CIOGETSTATS
Return device statistics.
ioctl(fd, CIOGETSTATS, arg)
struct tkr_lstat *arg;
where struct tkr_lstat is declared as:
Processed November 7, 1990 ILANS(4,F) 1
ILANS(4,F) AIX Technical Reference ILANS(4,F)
struct tkr_lstats {
unsigned frames_tx; /* frames transmitted */
unsigned frames_rx; /* frames received */
unsigned mac_frames_tx; /* mac frams transmitted */
unsigned mac_frames_rx; /* mac frams received */
unsigned ri_frames_tx; /* ri frames transmitted */
unsigned ri_frames_rx; /* ri frames received */
unsigned line_error; /* line error count */
unsigned internal_error; /* internal error count */
unsigned burst_error; /* burst error count */
unsigned ari_fci_error; /* ari fci count */
unsigned abort_delimiter; /* abort delimiter count */
unsigned lost_frame; /* count of lost frames */
unsigned rx_congestion; /* receive congestion count */
unsigned frame_copied_error; /* frame copy errors */
unsigned frequency_error; /* count of frequency error */
unsigned token_error; /* count of token errors */
unsigned dma_bus_error; /* count of dma bus errors */
unsigned dma_parity_error; /* count of dma parity errors */
unsigned addr_unrecognized; /* count of unrecognized addr */
unsigned frame_not_copied_error; /* count of not copied */
unsigned tx_strip_error; /* count xmit strip errors */
unsigned unauthorized_ap; /* count of unauthorized ap */
unsigned unauthorized_mf; /* count of unauthorized mf */
unsigned soft_error; /* count of software errors */
unsigned transmit_beacon; /* count of transmit beacon */
unsigned ioa_status_overrun; /* count ioa status overrun */
unsigned frames_discarded; /* count of discarded frames */
unsigned spurious_interrupts; /* count spurious interrupt */
};
IEREPCTL
Control the VM EREP logging.
ioctl(fd, IEREPCTL, arg)
struct ilans_erep_ctl *arg;
where struct ilans_erep_ctl is declared as:
struct ilans_erep_ctl {
unsigned char obr_thresh;
unsigned char mdr_thresh;
unsigned char obr_cnt;
/* current log control count returned here */
unsigned char mdr_cnt;
/* current log control count returned here */
};
If a threshold is 0, no EREP logging is done. If set to 0xff, no
change to the current state is made. Otherwise, logging set to occur
every nth occurrence, where n is the number specified.
Processed November 7, 1990 ILANS(4,F) 2
ILANS(4,F) AIX Technical Reference ILANS(4,F)
RELATED INFORMATION
In this book: "ioctlx, ioctl, gtty, stty" and "open, openx, creat."
Processed November 7, 1990 ILANS(4,F) 3