 |
|
Common errors:| Error name | Code | Description |
|---|
| HNERR_OK | 0 | No errors | | HNERR_WRONG_OS | 1 | Packet Sniffer SDK does not support this OS version. | | HNERR_CONFIG_NOT_DEFINED | 2 | Network adapter configuration is not defined for the
HNAdapter object. See
AdpSetConfig function of the
HNAdapter component. | | HNERR_REG_OPEN_ERROR | 3 | OS registry reading error. | | HNERR_ADDR_ERR | 4 | A memory access error. | | HNERR_SIZE_ERR | 5 | Wrong memory buffer size. | | HNERR_COUNT_ERR | 6 | Wrong number of packets. | | HNERR_DRIVER_NOT_LOADED | 7 | Packet Sniffer SDK internal driver loading error. | | HNERR_CONTROL_NOT_OPENED | 8 | Packet Sniffer SDK internal driver control device opening error. | | HNERR_ADAPTER_NOT_OPENED | 9 | Network adapter is not opened. | | HNERR_ADAPTER_ALREADY_OPENED | 10 | The network adapter has already been opened. | | HNERR_ADAPTER_OPEN_ERR | 11 | The network adapter opening error. | | HNERR_ADAPTER_REQ_ERR | 12 | An internal driver request error. | | HNERR_ADAPTER_LIST_ERR | 13 | An internal HNAdapterConfig components
list error. | | HNERR_ADAPTER_STATE_ERR | 14 | Internal adapter status control initialization error. | | HNERR_ADAPTER_THREAD_ERR | 15 | Packet Sniffer SDK internal thread creating error. | | HNERR_ADAPTER_THREAD_COUNT | 16 | The number of threads for working with the network adapter must be from 1 to
HNAdapter.MaxThreadCount. | | HNERR_MEM_ALLOC_ERROR | 17 | Memory allocation error. | | HNERR_INVALID_HANDLE | 18 | Invalid component handle. | | HNERR_MEM_FREE_ERROR | 19 | Memory free error. | | HNERR_CREATE_SYNCOBJ_ERR | 20 | Error of creating of the system synchronize object. | | HNERR_THREAD_ERR | 21 | Internal thread error. | | HNERR_INCOMPATIBLE_VER | 22 | Incompatible driver version. | | HNERR_INSTALL_DRIVER | 23 | Can't install driver. | | HNERR_UNINSTALL_DRIVER | 24 | Can't uninstall driver. | | HNERR_DRIVER_WAS_INSTALLATED | 25 | Driver was installated. | | HNERR_UNLOAD_DRIVER | 26 | Can't unload driver. | | HNERR_TOO_BIG_PACKETS_POOL | 27 | Packets pool size set in the PacketPool property is too big for this system. |
HNUserFilter component errors:| Error name | Code | Description |
|---|
| HNERR_FLT_BAD_LEN | 100 | Instructions count in the filter program is wrong. | | HNERR_NO_RET | 101 | No return instruction at the end of filter. The code of the last BPF instruction must be equal
to BPF_RET. | | HNERR_WORK_MEM | 102 | The 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_LONG | 103 | JUMP is too long. | | HNERR_WRONG_INSTRUCTION | 104 | Invalid instruction code. | | HNERR_WRONG_PARAMETER | 105 | Invalid instruction parameter. | | HNERR_NO_PROGRAMM | 106 | No programm in the filter (the CommandCount field of the
HN_BPF_PROGRAMM structure is equal to 0). | | HNERR_LOAD_FILE_ERROR | 107 | No file, bad file (zero len). | | HNERR_SAVE_FILE_ERROR | 108 | Cannot write to a file. | | HNERR_BUFFER_TOO_SMALL | 109 | The memory buffer is too small. | | HNERR_BUFFER_ERROR | 110 | Some error with buffer. | | HNERR_DIVIDE_BY_ZERO | 111 | Divide by zero. | | HNERR_DASM_MODE_ERROR | 112 | Error disassm mode. |
BPF compiler errors:| Error name | Code | Description |
|---|
| HNERR_BPF_ERROR | 200 | Syntax error. | | HNERR_BPF_BAD_SYMBOL | 201 | Illegal character. | | HNERR_BPF_UNTERM_COMMENT | 202 | Unclosed comment. | | HNERR_BPF_UNTERM_STRING | 203 | Unterminated string. | | HNERR_BPF_CANT_OPEN_FILE | 204 | File opening error. | | HNERR_BPF_DUP_LABEL | 205 | Duplicated label. | | HNERR_BPF_CONST_REDEFINE | 206 | Redefined constant. | | HNERR_BPF_DEVIDE_BY_ZERO | 207 | Division by zero. | | HNERR_BPF_BAD_MEM | 208 | Wrong address of an internal memory cell. | | HNERR_BPF_BAD_CMD_FMT | 209 | Wrong instruction format. | | HNERR_BPF_BAD_ID_LEN | 210 | Identifier is too long. | | HNERR_BPF_BAD_REG | 211 | Wrong register name. | | HNERR_BPF_BAD_SIZE | 212 | Wrong operand size. | | HNERR_BPF_UNK_LABEL | 213 | Unknown label. | | HNERR_BPF_BACK_LABEL | 214 | Label points back. | | HNERR_BPF_LONG_LABEL | 215 | Label points too far (must be not more than 255 instructions). | | HNERR_BPF_STR_TOO_LONG | 216 | String is too long. | | HNERR_BPF_UNKNOWN_ID | 217 | Unknown identyfier. | | HNERR_BPF_COMPILE_ERR | 218 | Compile error. | | HNERR_BPF_BAD_FILE_SIZE | 219 | Bad file size. | | HNERR_BPF_BAD_STRING | 220 | Bad string. | | HNERR_BPF_SYNTAX_ERR | 221 | Syntax error. | | HNERR_BPF_JITCOMPILE_ERR | 222 | BPF jit compilation error. |
HNFileAdapter component errors:
| Error name | Code | Description |
|---|
| HNERR_OPEN_FILE | 300 | File open error. | | HNERR_READ_FILE | 301 | File read error. | | HNERR_WRITE_FILE | 302 | File write error. | | HNERR_BAD_FILE_FORMAT | 303 | CAP file format is not recognized completely. | | HNERR_FORMAT_VER | 304 | CAP file format version is not supported. | | HNERR_BAD_MEDIUM_TYPE | 305 | Impossible adapter type is set for format of packets to be/were dumped to the CAP file. | | HNERR_BAD_PACKET_LEN | 306 | Packet size is greater than the buffer. | | HNERR_EOF | 307 | End of file reached. | | HNERR_UNKNOWN_FILE_FORMAT | 308 | Unknown CAP file format. | | HNERR_INCOMPATIBLE_MODE | 309 | Incompatible mode. | | HNERR_FILE_SIZE_LIMIT | 310 | File size limit is reached. | | HNERR_FILE_SIZE_LIMIT | 311 | Event handler is not set. |
|