getVlanTagDemand
Fetch the demand for hardware vlan tag stuffing for the given packet before it is transmitted on the network.
Declaration
virtual bool getVlanTagDemand(
mbuf_tm,
UInt32 *vlanTag);Parameters
- m:
A mbuf containing a packet that may require vlan tag stuffing.
- vlanTag:
After calling, the low order 16 bits contain the 802.1Q priority and vlan ID tag in host order. The hi-order 16 bits are currently unused and should be ignored.
Return Value
true if vlanTag has been set and should be used. false if no vlan tag stuffing is required for this packet.
Overview
A network controller that can insert 802.1Q vlan tags for output packets must call this method to obtain vlan tag information that it must insert into the given output packet.
See Also
Miscellaneous
createInterfacedisablePacketFilterenablePacketFilterfreegetHardwareAddress(IOEthernetAddress *)getHardwareAddress(void *, UInt32 *)getMaxPacketSizegetMinPacketSizegetPacketFilters(const OSSymbol *, UInt32 *)getPacketFilters(UInt32 *)initinitializepublishPropertiessetHardwareAddress(const IOEthernetAddress *)setHardwareAddress(const void *, UInt32)setMulticastListsetMulticastModesetPromiscuousModesetVlanTagsetWakeOnMagicPacket