Bringing Up The Device (Siocsifaddr Ioctl Command); Network Interface Counter Types - Compaq Tru64 UNIX Installation Manual

Writing network device drivers
Table of Contents

Advertisement

Copies the current counters to the ctrreq data structure.
2
Indicates that these are Ethernet counters.
3
Returns the number of seconds since the counters were last zeroed.
4
If the user process requested the SIOCRDZCTRS command, zeroes the
5
counters and sets the ztime member of the softc data structure to the
current time. This indicates when the counters were zeroed.
For other types of network interfaces, you can specify a different counter
type and a different set of counters. Table 12–2 lists the types of counters
that the various network interfaces support.
Table 12–2: Network Interface Counter Types
Network Interface
FDDI
Token Ring
12.11 Bringing Up the Device (SIOCSIFADDR ioctl
Command)
The following code shows how the el_ioctl( ) routine implements the
SIOCSIFADDR ioctl command to bring up the device:
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
el_reset_locked(sc, ifp, unit);
if (sc->ztime == 0) sc->ztime = time.tv_sec;
break;
Determines whether the cmd argument is SIOCSIFADDR.
1
Counter Types
FDDI interface statistics
Status information
SMT attributes
MAC attributes
Path attributes
Port attributes
SMT MIB attributes
Extended MIB attributes (Compaq proprietary)
Characteristics
Counters
MIB counters
MIB statistics
1
2
Implementing the ioctl Section 12–9
3

Advertisement

Table of Contents
loading

Table of Contents