setInterfaceType
Sets the interface type.
Declaration
virtual bool setInterfaceType(
UInt8type );Parameters
- type:
A constant defined in
bsd/net/if_types.hthat describes the interface type.
Return Value
Returns true to indicate success if the interface has not yet attached to the network stack, otherwise returns false.
Overview
Sets the interface type before the interface is attached to the network stack. See bsd/net/if_types.h for defined types. The kIOInterfaceType is also updated using the provided type.
See Also
Miscellaneous
addNetworkDataattachToDataLinkLayerclearInputQueuecontrollerDidChangePowerStatecontrollerDidOpencontrollerWillChangePowerStatecontrollerWillClosedebuggerRegistereddetachFromDataLinkLayerfeedPacketInputTapfeedPacketOutputTapflushInputQueuefreegetControllergetExtraFlagsgetFlagsgetIfnetgetInterfaceStategetInterfaceTypegetMaxTransferUnitgetMediaAddressLengthgetMediaHeaderLengthgetNamePrefixgetNetworkData(const char *)getNetworkData(const OSSymbol *)getUnitNumberhandleClientClosehandleClientOpeninitinitIfnetParamsinputEventinputPacketisPrimaryInterfaceisRegisteredlockperformCommandpowerStateDidChangeTopowerStateWillChangeToregisterOutputHandlerremoveNetworkData(const char *)removeNetworkData(const OSSymbol *)setFlagssetInterfaceStatesetMaxTransferUnitsetMediaAddressLengthsetMediaHeaderLengthsetUnitNumberunlock