Поделиться через


NDIS_PACKET_8021Q_INFO structure

Note   NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.

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. For more information, see Packet Support for 802.1Q.

Requirements

Header

Ndis.h (include Ndis.h)

See also

NDIS_PACKET_EXTENSION_FROM_PACKET

NDIS_PER_PACKET_INFO_FROM_PACKET

 

 

Send comments about this topic to Microsoft