Packet Sniffer SDK DLL Edition
HNUserFilter :: Properties :: BpfSetUseFastBPF | | Previous Next |
Turns on/off FastBPF.
Syntax:
BOOL __stdcall BpfSetUserFastBPF(HANDLE hFtr, BOOL bUseFastBpf);
Parameters:
hFtr
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:
- Create or load BPF program in the HNUserFilter component (see
BpfAddCmd,
BpfAddJmp,
BpfLoadFromFile,
BpfLoadFromMemory);
- Call BpfCompileToFastBPF function;
- Set UseFastBPF property to TRUE.