OID_GEN_VLAN_ID

As a query, the OID_GEN_VLAN_ID OID reports the configured VLAN identifier (ID) for a NIC.

As a set, the OID_GEN_VLAN_ID OID specifies the configured VLAN identifier (ID) for an NIC that the miniport driver handles.

Version Information

Windows Vista and later versions of Windows
Supported.

NDIS 6.0 and later miniport drivers
Optional.

NDIS 5.1 miniport drivers
Optional.

Windows XP
Supported.

NDIS 5.1 miniport drivers
Optional.

Remarks

The information buffer 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-2005 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 NIC. When used in a set, the miniport driver sets the NIC's current configured VLAN ID to the specified value.

During the miniport driver's MiniportInitializeEx function for a particular NIC, the driver initially sets the NIC'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 NIC's VLAN ID to the parameter's value.

VlanId, REG_DWORD

Requirements

Header

Ntddndis.h (include Ndis.h)

See also

MiniportInitializeEx