Packet Sniffer SDK DLL Edition

HNAdapterConfig :: Properties :: AdpCfgGetAdpCfgGetMaxPacketSize

 Previous Next

Returns the network adapter packet maximum size.

Syntax:

DWORD __stdcall AdpCfgGetMaxPacketSize(HANDLE hCfg);

Parameters:

hCfg

[in] HNAdapterConfig object handle.

Return values:

If the function succeeds the return value will be the network adapter packet maximum size.

Description:

Use AdpCfgGetAdpCfgGetMaxPacketSize to define the maximum size of the packet, which can be processed by the network adapter. You should take into account this value if you are going to generate and send a packet in your application.

Also you should use this value to define the size of the memory buffer allocated for the packet which will be received.

See also:HNAdapterConfig