Packet Sniffer SDK DLL Edition

HNUserFilter :: Methods :: BpfClear

 Previous Next

Clears the user-settable packet filtering program.

Syntax:

DWORD __stdcall BpfClear(HANDLE hFtr);

Parameters:

hFtr

[in] HNUserFilter object handle.

Return values:

HNERR_OKNo errors.
HNERR_INVALID_HANDLEhFtr parameter is not the HNUserFilter object handle.

Description:

Use the BpfClear function to delete all of the instructions from the BPF program. After having completed this function successfully, the InstructionsCount[Get] property sets to 0, and the BPF program memory is deallocated.

See also:HNUserFilter, BpfGetInstructionsCount