The interface layer supports provides for all devices:
- a well-defined set of interface functions,
- a standard set of statistics and control flags,
- a device-independent method of storing protocol addresses, and
- a standard queueing method for outgoing packets.
ifnet Structure
The ifnet structure contains information common to all interfaces.During system initialization, a separate ifnet structure is allocated for each network device.Every ifnet structure has a list of one or more protocol addresses associated with it.
The ifnet structure is large so we describe it in five sections:
- implementation information
- hardware information
- interface statistics
- function pointers
- the output queue