NET_LUID_LH union (ifdef.h)

The NET_LUID union is the locally unique identifier (LUID) for a network interface.

Syntax

typedef union _NET_LUID_LH {
  ULONG64 Value;
  struct {
    ULONG64 Reserved : 24;
    ULONG64 NetLuidIndex : 24;
    ULONG64 IfType : 16;
  } Info;
} NET_LUID_LH, *PNET_LUID_LH;

Members

Value

Type: ULONG64

A 64-bit value that represents the LUID.

Info

A named union containing the component fields in the 64-bit LUID Value member.

Info.Reserved

Type: ULONG64 This field is reserved.

Info.NetLuidIndex

Type: ULONG64 The network interface LUID index.

Info.IfType

Type: ULONG64 The interface type as defined by the Internet Assigned Names Authority (IANA). Possible values for the interface type are listed in the Ipifcons.h include file.

The table below lists common values for the interface type although many other values are possible.

Value Meaning
IF_TYPE_OTHER
1
Some other type of network interface.
IF_TYPE_ETHERNET_CSMACD
6
An Ethernet network interface.
IF_TYPE_ISO88025_TOKENRING
9
A token ring network interface.
IF_TYPE_PPP
23
A PPP network interface.
IF_TYPE_SOFTWARE_LOOPBACK
24
A software loopback network interface.
IF_TYPE_ATM
37
An ATM network interface.
IF_TYPE_IEEE80211
71
An IEEE 802.11 wireless network interface.
IF_TYPE_TUNNEL
131
A tunnel type encapsulation network interface.
IF_TYPE_IEEE1394
144
An IEEE 1394 (Firewire) high performance serial bus network interface.

Remarks

The NET_LUID structure is protocol independent and works with network interfaces for both the IPv6 and IPv4 protocol. The NET_LUID structure is defined on Windows Vista and later.

The IF_LUID and NET_LUID_LH structures are other names that can be used for the NET_LUID union.

The values for the IfType bitfield are defined in the Ipifcons.h include file. Only the possible values listed in the description of the IfType member are currently supported.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header ifdef.h

See also

ConvertInterfaceAliasToLuid

ConvertInterfaceGuidToLuid

ConvertInterfaceIndexToLuid

ConvertInterfaceLuidToGuid

ConvertInterfaceLuidToIndex

ConvertInterfaceLuidToNameA

ConvertInterfaceLuidToNameW

ConvertInterfaceNameToLuidA

ConvertInterfaceNameToLuidW

MIB_IF_ROW2

MIB_IPINTERFACE_ROW