This section presents some useful functions that will be explained more fully in later versions of this book.
A network driver overrides a number of IONetworkController functions in order to advertise its capabilities and restrictions. Some of these functions, and their uses, are:
setMaxTransferUnit, which allows clients to set the largest single packet size to transfer.
getPacketBufferConstraints, which informs the driver’s superclass of alignment constraints for packet buffers.
getVendorString, which provides the vendor name for the hardware controller that the driver is operating.
getModelString, which provides the model name for the hardware controller that the driver is operating.
Last updated: 2008-03-11