Packet Sniffer SDK DLL Edition

Error codes

 Previous Next

Common errors:

Error nameCodeDescription
HNERR_OK0No errors
HNERR_WRONG_OS1Packet Sniffer SDK does not support this OS version.
HNERR_CONFIG_NOT_DEFINED2Network adapter configuration is not defined for the HNAdapter object. See AdpSetConfig function of the HNAdapter component.
HNERR_REG_OPEN_ERROR3OS registry reading error.
HNERR_ADDR_ERR4A memory access error.
HNERR_SIZE_ERR5Wrong memory buffer size.
HNERR_COUNT_ERR6Wrong number of packets.
HNERR_DRIVER_NOT_LOADED7Packet Sniffer SDK internal driver loading error.
HNERR_CONTROL_NOT_OPENED8Packet Sniffer SDK internal driver control device opening error.
HNERR_ADAPTER_NOT_OPENED9Network adapter is not opened.
HNERR_ADAPTER_ALREADY_OPENED10The network adapter has already been opened.
HNERR_ADAPTER_OPEN_ERR11The network adapter opening error.
HNERR_ADAPTER_REQ_ERR12An internal driver request error.
HNERR_ADAPTER_LIST_ERR13An internal HNAdapterConfig components list error.
HNERR_ADAPTER_STATE_ERR14Internal adapter status control initialization error.
HNERR_ADAPTER_THREAD_ERR15Packet Sniffer SDK internal thread creating error.
HNERR_ADAPTER_THREAD_COUNT16The number of threads for working with the network adapter must be from 1 to HNAdapter.MaxThreadCount.
HNERR_MEM_ALLOC_ERROR17Memory allocation error.
HNERR_INVALID_HANDLE18Invalid component handle.
HNERR_MEM_FREE_ERROR19Memory free error.
HNERR_CREATE_SYNCOBJ_ERR20Error of creating of the system synchronize object.
HNERR_THREAD_ERR21Internal thread error.
HNERR_INCOMPATIBLE_VER22Incompatible driver version.
HNERR_INSTALL_DRIVER23Can't install driver.
HNERR_UNINSTALL_DRIVER24Can't uninstall driver.
HNERR_DRIVER_WAS_INSTALLATED25Driver was installated.
HNERR_UNLOAD_DRIVER26Can't unload driver.
HNERR_TOO_BIG_PACKETS_POOL27Packets pool size set in the PacketPool property is too big for this system.

HNUserFilter component errors:

Error nameCodeDescription
HNERR_FLT_BAD_LEN100Instructions count in the filter program is wrong.
HNERR_NO_RET101No return instruction at the end of filter. The code of the last BPF instruction must be equal to BPF_RET.
HNERR_WORK_MEM102The wrong values of instructions working with the memory of the virtual BPF machine (BPF_ST, BPF_STX, BPF_LD|BPF_MEM, BPF_LDX|BPF_MEM).
HNERR_JMP_TO_LONG103JUMP is too long.
HNERR_WRONG_INSTRUCTION104Invalid instruction code.
HNERR_WRONG_PARAMETER105Invalid instruction parameter.
HNERR_NO_PROGRAMM106No programm in the filter (the CommandCount field of the HN_BPF_PROGRAMM structure is equal to 0).
HNERR_LOAD_FILE_ERROR107No file, bad file (zero len).
HNERR_SAVE_FILE_ERROR108Cannot write to a file.
HNERR_BUFFER_TOO_SMALL109The memory buffer is too small.
HNERR_BUFFER_ERROR110Some error with buffer.
HNERR_DIVIDE_BY_ZERO111Divide by zero.
HNERR_DASM_MODE_ERROR112Error disassm mode.

BPF compiler errors:

Error nameCodeDescription
HNERR_BPF_ERROR200Syntax error.
HNERR_BPF_BAD_SYMBOL201Illegal character.
HNERR_BPF_UNTERM_COMMENT202Unclosed comment.
HNERR_BPF_UNTERM_STRING203Unterminated string.
HNERR_BPF_CANT_OPEN_FILE204File opening error.
HNERR_BPF_DUP_LABEL205Duplicated label.
HNERR_BPF_CONST_REDEFINE206Redefined constant.
HNERR_BPF_DEVIDE_BY_ZERO207Division by zero.
HNERR_BPF_BAD_MEM208Wrong address of an internal memory cell.
HNERR_BPF_BAD_CMD_FMT209Wrong instruction format.
HNERR_BPF_BAD_ID_LEN210Identifier is too long.
HNERR_BPF_BAD_REG211Wrong register name.
HNERR_BPF_BAD_SIZE212Wrong operand size.
HNERR_BPF_UNK_LABEL213Unknown label.
HNERR_BPF_BACK_LABEL214Label points back.
HNERR_BPF_LONG_LABEL215Label points too far (must be not more than 255 instructions).
HNERR_BPF_STR_TOO_LONG216String is too long.
HNERR_BPF_UNKNOWN_ID217Unknown identyfier.
HNERR_BPF_COMPILE_ERR218Compile error.
HNERR_BPF_BAD_FILE_SIZE219Bad file size.
HNERR_BPF_BAD_STRING220Bad string.
HNERR_BPF_SYNTAX_ERR221Syntax error.
HNERR_BPF_JITCOMPILE_ERR222BPF jit compilation error.

HNFileAdapter component errors:

Error nameCodeDescription
HNERR_OPEN_FILE300File open error.
HNERR_READ_FILE301File read error.
HNERR_WRITE_FILE302File write error.
HNERR_BAD_FILE_FORMAT303CAP file format is not recognized completely.
HNERR_FORMAT_VER304CAP file format version is not supported.
HNERR_BAD_MEDIUM_TYPE305Impossible adapter type is set for format of packets to be/were dumped to the CAP file.
HNERR_BAD_PACKET_LEN306Packet size is greater than the buffer.
HNERR_EOF307End of file reached.
HNERR_UNKNOWN_FILE_FORMAT308Unknown CAP file format.
HNERR_INCOMPATIBLE_MODE309Incompatible mode.
HNERR_FILE_SIZE_LIMIT310File size limit is reached.
HNERR_FILE_SIZE_LIMIT311Event handler is not set.