disablePacketFilter
Disables a packet filter that is currently enabled from the given filter group.
Declaration
virtual IOReturn disablePacketFilter(
const OSSymbol *group,
UInt32 aFilter,
UInt32 enabledFilters,
IOOptionBits options = 0);Parameters
- group:
The name of the filter group containing the filter to be disabled.
- aFilter:
The filter to disable.
- enabledFilters:
All filters currently enabled by the client.
- options:
Optional flags for the disable request.
Return Value
Returns the value returned by setMulticastMode() or setPromiscuousMode() if either of those two methods are called. Returns kIOReturnSuccess if the filter specified is kIOPacketFilterUnicast or kIOPacketFilterBroadcast. Returns kIOReturnUnsupported if the filter group specified is not gIONetworkFilterGroup.
Overview
The default implementation of the abstract method inherited from IONetworkController. This method will call setMulticastMode() or setPromiscuousMode() when the multicast or the promiscuous filter is to be disabled. Requests to disable the Unicast or Broadcast filters are handled silently, without informing the subclass. Subclasses can override this method to change this default behavior, or to extend it to handle additional filter types or filter groups. This method call is synchronized by the workloop's gate.
See Also
Miscellaneous
createInterfaceenablePacketFilterfreegetHardwareAddress(IOEthernetAddress *)getHardwareAddress(void *, UInt32 *)getMaxPacketSizegetMinPacketSizegetPacketFilters(const OSSymbol *, UInt32 *)getPacketFilters(UInt32 *)getVlanTagDemandinitinitializepublishPropertiessetHardwareAddress(const IOEthernetAddress *)setHardwareAddress(const void *, UInt32)setMulticastListsetMulticastModesetPromiscuousModesetVlanTagsetWakeOnMagicPacket