Contents

setUnitNumber

Assigns an unique unit number to this interface.

Declaration

virtual bool setUnitNumber(
 UInt16unit );

Parameters

  • unit:

    The unit number assigned to this interface object.

Return Value

Returns true to indicate success if the interface has not yet attached to the network stack, otherwise returns false.

Overview

This method is called internally before the interface is attached to the network stack, to assign an unique unit number to the interface object. The kIOInterfaceUnit property is also updated using the provided value.

See Also

Miscellaneous