Packet Sniffer SDK DLL Edition

HNFileAdapter :: Properties :: FAdpSetMaxPacketSize

 Previous Next

Set maximal size of packet to be dumped to a CAP file (needed for some formats).

Syntax:

DWORD __stdcall FAdpSetMaxPacketSize(HANDLE hFAdp, DWORD MaxPacketSize);

Parameters:

hFAdp

[in] HNFileAdapter object handle.

MaxPacketSize

[in] Максимальный размер пакета для записи в файл.

Return values:

If the function succeeds the return value will be the MaxPacketSize parameter value.

Description:

Use FAdpSetMaxPacketSize to get the maximal packet size for current CAP file.

To create a CAP file (see FAdpCreateFile) you should predetermine maximal packet size for packet which will be written to this file. This size value will be stored in CAP file for further off-line processing.

See also:HNFileAdapter, FAdpCreateFile, FAdpGetMaxPacketSize