NetAdapterSetLinkLayerMtuSize - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// netadapter.h

void NetAdapterSetLinkLayerMtuSize(
  [_In_] NETADAPTER Adapter,
  [_In_] ULONG      MtuSize
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-netadapter-netadaptersetlinklayermtusize)

NetAdapterSetLinkLayerMtuSize function

Description

Sets the link layer maximum transfer unit size of the adapter.

Parameters

Adapter [_In_]

The network adapter object that the client created in a prior call to NetAdapterCreate.

MtuSize [_In_]

The new size of the adapter's MTU, in bytes.

Remarks

The client driver first sets MTU size by calling NetAdapterSetLinkLayerMtuSize when starting a net adapter, before calling NetAdapterStart.

The client driver can change the MTU size after NetAdapterStart returns by calling this function again. Doing so causes all of the adapter's transmit (Tx) and receive (Rx) queues to be recreated.

See also

NetAdapterSetLinkLayerCapabilities