registerOutputHandler
Registers a target/action to handle outbound packets.
Declaration
virtual bool registerOutputHandler(
OSObject *target,
IOOutputActionaction );Parameters
- target:
Object that implements the output handler.
- action:
The function that will handle output packets.
Return Value
Returns true if the target/action provided was accepted, false otherwise.
Overview
The interface object will forward all output packets sent from the network stack to the target and action registered using this method. The registration must occur before the interface is registered and opened by IONetworkStack, otherwise the default handler will be used. The default target and action is set by init() as the controller, and the handler returned by the controller's getOutputHandler() method.
See Also
Miscellaneous
addNetworkDataattachToDataLinkLayerclearInputQueuecontrollerDidChangePowerStatecontrollerDidOpencontrollerWillChangePowerStatecontrollerWillClosedebuggerRegistereddetachFromDataLinkLayerfeedPacketInputTapfeedPacketOutputTapflushInputQueuefreegetControllergetExtraFlagsgetFlagsgetIfnetgetInterfaceStategetInterfaceTypegetMaxTransferUnitgetMediaAddressLengthgetMediaHeaderLengthgetNamePrefixgetNetworkData(const char *)getNetworkData(const OSSymbol *)getUnitNumberhandleClientClosehandleClientOpeninitinitIfnetParamsinputEventinputPacketisPrimaryInterfaceisRegisteredlockperformCommandpowerStateDidChangeTopowerStateWillChangeToremoveNetworkData(const char *)removeNetworkData(const OSSymbol *)setFlagssetInterfaceStatesetInterfaceTypesetMaxTransferUnitsetMediaAddressLengthsetMediaHeaderLengthsetUnitNumberunlock