Packet Sniffer SDK DLL Edition

Events :: OnBPFAsmError

 Previous Next

Tracks possible errors in BPF program during the compilation.

Syntax:

BOOL __stdcall OnBPFAsmError(DWORD_PTR Param, DWORD Type, DWORD Err, DWORD Line, DWORD Pos);

Parameters:

Param

[in] OnBPFAsmError event handler parameter. May be set by the BpfSetOnBPFAsmError function call.

ErrType

[in] An event criticality type:error or warning. This parameter values are defined by HNBpfErrorType enumeration.

Err

[in] The code of the error or warning. See BPF compiler errors Error codes.

Line

[in] Erroneous line number.

Pos

[in] Position in a line with an error.

Description:

This event handler is called to show errors during the compilation of BPF program written in BPF assembler.

This event handler must return TRUE if compilation should be continued after an error detection or after a warning, or FALSE if compilation should be stopped. The compilation continuation can be useful for detecting all errors in the program at a single compilation process launch.

See also:HNUserFilter, BpfSetOnBPFAsmError, HNBpfErrorType, Error codes