Packet Sniffer SDK DLL Edition
HNUserFilter :: Methods :: BpfAddCmd | | Previous Next |
Adds an instruction to the user-settable packet filtering program.
Syntax:
DWORD __stdcall BpfAddCmd(HANDLE hFtr, SHORT Code, DWORD k);
Parameters:
hFtr
Code
[in] Instruction code.
k
[in] Generic BPF multiuse field.
Return values:
| HNERR_OK | No error. |
| HNERR_WRONG_INSTRUCTION | The wrong Code parameter. |
| HNERR_INVALID_HANDLE | hFtr parameter is not the HNUserFilter object handle. |
Description:
Use BpfAddCmd to add an instruction to the user-settable packet filtering program.