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


OID_GEN_VLAN_ID (Compact 2013)

3/26/2014

As a query, this OID reports the configured VLAN identifier (ID) for a network adapter.

As a set, this OID specifies the configured VLAN identifier (ID) for a network adapter that the miniport driver handles.

Remarks

The information buffer that is passed in this request contains an NDIS_VLAN_ID data type. This NDIS_VLAN_ID value contains the VLAN ID in the 12 least significant bits per the IEEE 802.1q standard. Higher order bits of the NDIS_VLAN_ID value are reserved and must be set to 0. Note that NDIS defines NDIS_VLAN_ID as a ULONG.

When a transport uses OID_GEN_VLAN_ID in a query, the miniport driver returns the current configured VLAN ID for the network adapter. When it is used in a set, the miniport driver sets the network adapter 's current configured VLAN ID to the specified value.

During the miniport driver's MiniportInitializeEx function for a particular network adapter, the driver initially sets the network adapter 's VLAN ID to zero. The driver's MiniportInitializeEx function then reads the following configuration parameter from the registry, and, if the parameter is present, sets the network adapter 's VLAN ID to the parameter's value.

VlanId, REG_DWORD

Requirements

Header

ntddndis.h

See Also

Reference

General Operational OIDs
MiniportInitializeEx