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

[in] HNUserFilter object handle.

Code

[in] Instruction code.

k

[in] Generic BPF multiuse field.

Return values:

HNERR_OKNo error.
HNERR_WRONG_INSTRUCTIONThe wrong Code parameter.
HNERR_INVALID_HANDLEhFtr parameter is not the HNUserFilter object handle.

Description:

Use BpfAddCmd to add an instruction to the user-settable packet filtering program.

See also:HNUserFilter, BPF Instructions