Packet Sniffer SDK DLL Edition

HNUserFilter :: Properties :: BpfGetInstructionsCount

 Previous Next

Returns the total number of instructions in the user-settable packet filtering program.

Syntax:

DWORD __stdcall BpfGetInstructionsCount(HANDLE hFtr);

Parameters:

hFtr

[in] HNUserFilter object handle.

Return values:

If the function succeeds the return value will be the total number of instructions in the user-settable packet filtering program, otherwise it returns -1.

Description:

Use BpfGetInstructionsCount to obtain the total number of instructions in the user-settable packet filtering program.

This value is changed after the BpfAddCmd, BpfAddJmp, or BpfClear functions have been executed successfully.

See also:HNUserFilter, BpfAddCmd, BpfAddJmp, BpfClear