Packet Sniffer SDK DLL Edition

Constants Enumerations :: HNBpfErrorType

 Previous Next

HNBpfErrorType enumeration contains the constant values corresponding to the types of the errors appearing while BPF program compilation, that can be controlled by the OnBPFAsmError event handler.

Syntax:

const betBpfWarning = 0; 
const betBpfError   = 1;
enum HNBpfErrorType
{
   betBpfWarning = 0, 
   betBpfError   = 1  
};

Values:

betBpfWarning

BPF program possibly contains an error, but its compilation may be continued. Usually occurs in situation when the user redefines the value of the previously defined constant.

betBpfError

BPF program contains a critical error, compilation is impossible.

See also:HNUserFilter, OnBPFAsmError, BpfCompileBPFDefinesFromFile, BpfCompileBPFDefinesFromStr, BpfCompileBPFAsmFromFile, BpfCompileBPFAsmFromStr