Packet Sniffer SDK DLL Edition

HNUserFilter :: Properties :: BpfGetUseFastBPF

 Previous Next

Returns the status flag of FastBPF using.

Syntax:

BOOL __stdcall BpfGetUseFastBPF(HANDLE hFtr);

Parameters:

hFtr

[in] HNUserFilter object handle.

Return values:

If the function succeeds the return value will be either TRUE or FALSE. The default value is FALSE.

Description:

Use BpfGetUseFastBPF to check FastBPF using.

UseFastBPF property is intended for using FastBPF technology in user application by BpfCheckPacket function.

To use the FastBPF technology, please do the following:

  1. Create or load BPF program in the HNUserFilter component (see BpfAddCmd, BpfAddJmp, BpfLoadFromFile, BpfLoadFromMemory);
  2. Call BpfCompileToFastBPF function;
  3. Set UseFastBPF [Set] property to TRUE.
See also:HNUserFilter, BpfAddCmd, BpfAddJmp, BpfLoadFromFile, BpfLoadFromMemory, BpfCompileToFastBPF, BpfSetUseFastBPF, BpfCheckPacket