NET_ADAPTER_LINK_LAYER_ADDRESS_INIT function

The NET_ADAPTER_LINK_LAYER_ADDRESS_INIT method initializes a link layer address.

Syntax

void NET_ADAPTER_LINK_LAYER_ADDRESS_INIT(
  NET_ADAPTER_LINK_LAYER_ADDRESS *LinkLayerAddress,
  USHORT                         Length,
  PCUCHAR                        AddressBuffer
);

Parameters

LinkLayerAddress

A pointer to the driver-allocated NET_ADAPTER_LINK_LAYER_ADDRESS to be initialized.

Length

The length of the link layer address, in bytes.

AddressBuffer

A pointer to the buffer containing the link layer address.

Return value

None

Remarks

NET_ADAPTER_LINK_LAYER_ADDRESS_INIT is used to initialize either a permanent or current link layer address, stored in a NET_ADAPTER_LINK_LAYER_ADDRESS allocated by the driver. This NET_ADAPTER_LINK_LAYER_ADDRESS is then passed as a parameter to either the NetAdapterSetPermanentLinkLayerAddress method or the NetAdapterSetCurrentLinkLayerAddress method, depending on the type of address that was initialized and is being set.

Requirements

   
Minimum supported client Windows 10, version 1709
Minimum supported server Windows Server 2016
Minimum KMDF version 1.23
Header netadapter.h (include netadaptercx.h)
IRQL PASSIVE_LEVEL