Packet Sniffer SDK DLL Edition

HNUserFilter :: Properties :: BpfSetUseFastBPF

 Previous Next

Turns on/off FastBPF.

Syntax:

BOOL __stdcall BpfSetUserFastBPF(HANDLE hFtr, BOOL bUseFastBpf);

Parameters:

hFtr

[in] HNUserFilter object handle.

bUseFastBpf

[in] The new value of the status flag of the FastBPF using.

Return values:

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

Description:

Use BpfSetUserFastBPF to turn on/off FastBPF.

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

To use 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 property to TRUE.
See also:HNUserFilter, BpfAddCmd, BpfAddJmp, BpfLoadFromFile, BpfLoadFromMemory, BpfCompileToFastBPF, BpfGetUseFastBPF, BpfCheckPacket