NDIS_PACKET_8021Q_INFO (Windows Embedded CE 6.0)
1/6/2010
The NDIS_PACKET_8021Q_INFO structure specifies packet information.
Syntax
Typedef struct _NDIS_PACKET_8021Q_INFO { union { struct { UINT32 UserPriority:3; UINT32 CanonicalFormatId:1; UINT32 VlanId:12; UINT32 Reserved:16; } TagHeader; PVOID Value; };} NDIS_PACKET_8021Q_INFO, *PNDIS_PACKET_8021Q_INFO;
Members
TagHeader
Specifies a member in the union contained in NDIS_PACKET_8021Q_INFO that can hold information about a packet in a structure with the following members:
UserPriority
Specifies 802.1p priority information, that is used to establish packet priority in shared-media 802 networks. The bits in this member specify an 802.1p priority value.
CanonicalFormatId
This member should be set to zero, which indicates that all MAC address information present in a packet is in canonical format (that is, simplest form).
VlanId
Identifies the VLAN to which a packet belongs. Outgoing packets are marked with the VLAN identifier.
Reserved
This member is reserved and should be set to zero.
Value
Specifies a member in the union contained in NDIS_PACKET_8021Q_INFO that can hold information about a packet in a buffer.
Remarks
When a miniport driver calls the NDIS_PER_PACKET_INFO_FROM_PACKET macro to retrieve or insert 802.1Q information in a packet descriptor, the macro returns this information in the Value member of the union contained in NDIS_PACKET_8021Q_INFO. The miniport driver uses the TagHeader member of the union to modify specific types of information, such as 802.1p priority and VLAN identifier information.
Requirements
Header | winsock2.h |
Windows Embedded CE | Windows CE 5.0 and later |
See Also
Reference
NDIS Structures
NDIS_PACKET_EXTENSION_FROM_PACKET
NDIS_PER_PACKET_INFO_FROM_PACKET