suricata
util-error.c
Go to the documentation of this file.
1 /* Copyright (C) 2007-2020 Open Information Security Foundation
2  *
3  * You can copy, redistribute or modify this Program under the terms of
4  * the GNU General Public License version 2 as published by the Free
5  * Software Foundation.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * version 2 along with this program; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15  * 02110-1301, USA.
16  */
17 
18 /**
19  * \file
20  *
21  * \author Anoop Saldanha <anoopsaldanha@gmail.com>
22  *
23  * Error utility functions
24  *
25  * \todo Needs refining of the error codes. Renaming with a prefix of SC_ERR,
26  * removal of duplicates and entries have to be made in util-error.c
27  */
28 
29 #include "util-error.h"
30 
31 #define CASE_CODE(E) case E: return #E
32 
33 /**
34  * \brief Maps the error code, to its string equivalent
35  *
36  * \param The error code
37  *
38  * \retval The string equivalent for the error code
39  */
40 const char * SCErrorToString(SCError err)
41 {
42  switch (err) {
43  CASE_CODE (SC_OK);
373 
375  }
376 
377  return "UNKNOWN_ERROR";
378 }
SC_ERR_HTTP_COOKIE_RELATIVE_MISSING
@ SC_ERR_HTTP_COOKIE_RELATIVE_MISSING
Definition: util-error.h:216
SC_ERR_FWRITE
@ SC_ERR_FWRITE
Definition: util-error.h:129
SC_ERR_PCAP_SET_TIMEOUT
@ SC_ERR_PCAP_SET_TIMEOUT
Definition: util-error.h:54
SC_ERR_THRESHOLD_HASH_ADD
@ SC_ERR_THRESHOLD_HASH_ADD
Definition: util-error.h:130
SC_ERR_NFLOG_MAX_BUFSIZ
@ SC_ERR_NFLOG_MAX_BUFSIZ
Definition: util-error.h:282
SC_ERR_BYTEJUMP_MISSING_CONTENT
@ SC_ERR_BYTEJUMP_MISSING_CONTENT
Definition: util-error.h:140
SC_ERR_PIDFILE_SNPRINTF
@ SC_ERR_PIDFILE_SNPRINTF
Definition: util-error.h:183
SC_ERR_TM_MODULES_ERROR
@ SC_ERR_TM_MODULES_ERROR
Definition: util-error.h:167
SC_ERR_IPPAIR_INIT
@ SC_ERR_IPPAIR_INIT
Definition: util-error.h:298
SC_ERR_POOL_EMPTY
@ SC_ERR_POOL_EMPTY
Definition: util-error.h:94
SC_ERR_INVALID_DIRECTION
@ SC_ERR_INVALID_DIRECTION
Definition: util-error.h:221
SC_ERR_NIC_OFFLOADING
@ SC_ERR_NIC_OFFLOADING
Definition: util-error.h:317
SC_ERR_DATASET
@ SC_ERR_DATASET
Definition: util-error.h:355
SC_ERR_NFQ_MAXLEN
@ SC_ERR_NFQ_MAXLEN
Definition: util-error.h:101
SC_ERR_PCRE_COMPILE
@ SC_ERR_PCRE_COMPILE
Definition: util-error.h:35
SC_ERR_MT_DUPLICATE_TENANT
@ SC_ERR_MT_DUPLICATE_TENANT
Definition: util-error.h:300
SC_ERR_TM_THREADS_ERROR
@ SC_ERR_TM_THREADS_ERROR
Definition: util-error.h:166
SC_ERR_MISSING_CONFIG_PARAM
@ SC_ERR_MISSING_CONFIG_PARAM
Definition: util-error.h:148
SC_ERR_TLS_LOG_GENERIC
@ SC_ERR_TLS_LOG_GENERIC
Definition: util-error.h:126
SC_ERR_DAG_REQUIRED
@ SC_ERR_DAG_REQUIRED
Definition: util-error.h:201
SC_ERR_WINDIVERT_NOSUPPORT
@ SC_ERR_WINDIVERT_NOSUPPORT
Definition: util-error.h:346
SC_ERR_DEPRECATED_CONF
@ SC_ERR_DEPRECATED_CONF
Definition: util-error.h:307
SC_ERR_DUPLICATE_SIG
@ SC_ERR_DUPLICATE_SIG
Definition: util-error.h:208
SC_ERR_POOL_INIT
@ SC_ERR_POOL_INIT
Definition: util-error.h:96
SC_ERR_INVALID_VALUE
@ SC_ERR_INVALID_VALUE
Definition: util-error.h:160
SC_WARN_EVENT_DROPPED
@ SC_WARN_EVENT_DROPPED
Definition: util-error.h:332
SC_ERR_NAPATECH_INIT_FAILED
@ SC_ERR_NAPATECH_INIT_FAILED
Definition: util-error.h:251
SC_ERR_SOCKET
@ SC_ERR_SOCKET
Definition: util-error.h:232
SC_ERR_PF_RING_RECV
@ SC_ERR_PF_RING_RECV
Definition: util-error.h:61
SC_ERR_MEM_BUFFER_API
@ SC_ERR_MEM_BUFFER_API
Definition: util-error.h:239
SC_ERR_HASH_TABLE_INIT
@ SC_ERR_HASH_TABLE_INIT
Definition: util-error.h:144
SC_ERR_LIBNET_REQUIRED_FOR_ACTION
@ SC_ERR_LIBNET_REQUIRED_FOR_ACTION
Definition: util-error.h:173
SC_ERR_MAGIC_OPEN
@ SC_ERR_MAGIC_OPEN
Definition: util-error.h:228
SC_WARN_RUST_NOT_AVAILABLE
@ SC_WARN_RUST_NOT_AVAILABLE
Definition: util-error.h:349
SC_ERR_CUDA_HANDLER_ERROR
@ SC_ERR_CUDA_HANDLER_ERROR
Definition: util-error.h:165
SC_WARN_ANOMALY_CONFIG
@ SC_WARN_ANOMALY_CONFIG
Definition: util-error.h:356
SC_ERR_NAPATECH_NOSUPPORT
@ SC_ERR_NAPATECH_NOSUPPORT
Definition: util-error.h:248
SC_ERR_GID_FAILED
@ SC_ERR_GID_FAILED
Definition: util-error.h:188
SC_ERR_INVALID_CLUSTER_TYPE
@ SC_ERR_INVALID_CLUSTER_TYPE
Definition: util-error.h:66
SC_ERR_LOG_FG_FILTER_MATCH
@ SC_ERR_LOG_FG_FILTER_MATCH
Definition: util-error.h:39
SC_ERR_AHO_CORASICK
@ SC_ERR_AHO_CORASICK
Definition: util-error.h:206
SC_ERR_NO_PORTS_LEFT_AFTER_MERGE
@ SC_ERR_NO_PORTS_LEFT_AFTER_MERGE
Definition: util-error.h:85
SC_ERR_NFQ_NOSUPPORT
@ SC_ERR_NFQ_NOSUPPORT
Definition: util-error.h:97
SC_ERR_PCAP_OPEN_LIVE
@ SC_ERR_PCAP_OPEN_LIVE
Definition: util-error.h:55
SC_ERR_OFFSET_MISSING_CONTENT
@ SC_ERR_OFFSET_MISSING_CONTENT
Definition: util-error.h:137
SC_WARN_DUPLICATE_OUTPUT
@ SC_WARN_DUPLICATE_OUTPUT
Definition: util-error.h:329
SC_ERR_INVALID_RULE_ARGUMENT
@ SC_ERR_INVALID_RULE_ARGUMENT
Definition: util-error.h:302
SC_ERR_ERF_DAG_STREAM_START_FAILED
@ SC_ERR_ERF_DAG_STREAM_START_FAILED
Definition: util-error.h:197
SC_ERR_DEBUG_LOG_GENERIC
@ SC_ERR_DEBUG_LOG_GENERIC
Definition: util-error.h:123
SC_ERR_NOT_SUPPORTED
@ SC_ERR_NOT_SUPPORTED
Definition: util-error.h:257
SC_ERR_WINDIVERT_GENERIC
@ SC_ERR_WINDIVERT_GENERIC
Definition: util-error.h:345
SC_WARN_PCRE_JITSTACK
@ SC_WARN_PCRE_JITSTACK
Definition: util-error.h:359
SC_ERR_PCAP_SET_SNAPLEN
@ SC_ERR_PCAP_SET_SNAPLEN
Definition: util-error.h:52
SC_ERR_NO_MD5_SUPPORT
@ SC_ERR_NO_MD5_SUPPORT
Definition: util-error.h:241
SC_WARN_JA3_DISABLED
@ SC_WARN_JA3_DISABLED
Definition: util-error.h:342
SC_ERR_NO_PCAP_SET_BUFFER_SIZE
@ SC_ERR_NO_PCAP_SET_BUFFER_SIZE
Definition: util-error.h:59
SC_ERR_INVALID_IPV6_ADDR
@ SC_ERR_INVALID_IPV6_ADDR
Definition: util-error.h:48
SC_ERR_UNIFIED_ALERT_GENERIC
@ SC_ERR_UNIFIED_ALERT_GENERIC
Definition: util-error.h:127
SC_WARN_NO_STATS_LOGGERS
@ SC_WARN_NO_STATS_LOGGERS
Definition: util-error.h:293
SC_ERR_WITHIN_MISSING_CONTENT
@ SC_ERR_WITHIN_MISSING_CONTENT
Definition: util-error.h:135
SC_ERR_PCAP_FILE_DELETE_FAILED
@ SC_ERR_PCAP_FILE_DELETE_FAILED
Definition: util-error.h:226
SC_ERR_NETMAP_CREATE
@ SC_ERR_NETMAP_CREATE
Definition: util-error.h:295
SC_ERR_IPFW_NOSUPPORT
@ SC_ERR_IPFW_NOSUPPORT
Definition: util-error.h:109
SC_ERR_INVALID_SIGNATURE
@ SC_ERR_INVALID_SIGNATURE
Definition: util-error.h:69
SC_ERR_IPFW_NOPORT
@ SC_ERR_IPFW_NOPORT
Definition: util-error.h:112
SC_ERR_NAPATECH_TIMESTAMP_TYPE_NOT_SUPPORTED
@ SC_ERR_NAPATECH_TIMESTAMP_TYPE_NOT_SUPPORTED
Definition: util-error.h:250
SC_ERR_NO_JSON_SUPPORT
@ SC_ERR_NO_JSON_SUPPORT
Definition: util-error.h:301
SC_ERR_MT_NO_SELECTOR
@ SC_ERR_MT_NO_SELECTOR
Definition: util-error.h:299
SC_ERR_NFLOG_OPEN
@ SC_ERR_NFLOG_OPEN
Definition: util-error.h:279
SC_ERR_IPONLY_RADIX
@ SC_ERR_IPONLY_RADIX
Definition: util-error.h:121
SC_WARN_ERF_DAG_REC_LEN_CHANGED
@ SC_WARN_ERF_DAG_REC_LEN_CHANGED
Definition: util-error.h:200
SC_ERR_UNIFIED_LOG_GENERIC
@ SC_ERR_UNIFIED_LOG_GENERIC
Definition: util-error.h:124
SC_ERR_RAWBYTES_MISSING_CONTENT
@ SC_ERR_RAWBYTES_MISSING_CONTENT
Definition: util-error.h:142
SC_ERR_PF_RING_OPEN
@ SC_ERR_PF_RING_OPEN
Definition: util-error.h:64
SC_ERR_CREATE_DIRECTORY
@ SC_ERR_CREATE_DIRECTORY
Definition: util-error.h:338
SC_ERR_FTP_LOG_GENERIC
@ SC_ERR_FTP_LOG_GENERIC
Definition: util-error.h:353
SC_ERR_THREAD_CREATE
@ SC_ERR_THREAD_CREATE
Definition: util-error.h:78
SC_ERR_VAR_LIMIT
@ SC_ERR_VAR_LIMIT
Definition: util-error.h:328
SC_ERR_LIBNET_INIT
@ SC_ERR_LIBNET_INIT
Definition: util-error.h:174
SC_WARN_ERSPAN_CONFIG
@ SC_WARN_ERSPAN_CONFIG
Definition: util-error.h:362
SC_ERR_PCRE_GET_SUBSTRING
@ SC_ERR_PCRE_GET_SUBSTRING
Definition: util-error.h:34
SC_ERR_NFQ_THREAD_INIT
@ SC_ERR_NFQ_THREAD_INIT
Definition: util-error.h:108
SC_WARN_XFF_INVALID_HEADER
@ SC_WARN_XFF_INVALID_HEADER
Definition: util-error.h:269
SC_WARN_COMPATIBILITY
@ SC_WARN_COMPATIBILITY
Definition: util-error.h:193
SC_ERR_DETECT_PREPARE
@ SC_ERR_DETECT_PREPARE
Definition: util-error.h:205
SC_ERR_NO_RULES
@ SC_ERR_NO_RULES
Definition: util-error.h:72
SC_ERR_SHUTDOWN
@ SC_ERR_SHUTDOWN
Definition: util-error.h:220
SCErrorToString
const char * SCErrorToString(SCError err)
Maps the error code, to its string equivalent.
Definition: util-error.c:40
SC_ERR_SYSCONF
@ SC_ERR_SYSCONF
Definition: util-error.h:81
SC_ERR_SMTP_LOG_GENERIC
@ SC_ERR_SMTP_LOG_GENERIC
Definition: util-error.h:315
SC_WARN_LOG_CF_TOO_MANY_NODES
@ SC_WARN_LOG_CF_TOO_MANY_NODES
Definition: util-error.h:331
SC_ERR_RUNMODE
@ SC_ERR_RUNMODE
Definition: util-error.h:219
SC_ERR_PCAP_CREATE
@ SC_ERR_PCAP_CREATE
Definition: util-error.h:51
SC_ERR_PCAP_OPEN_OFFLINE
@ SC_ERR_PCAP_OPEN_OFFLINE
Definition: util-error.h:56
SC_ERR_INVALID_ARGUMENTS
@ SC_ERR_INVALID_ARGUMENTS
Definition: util-error.h:82
SC_ERR_UNREACHABLE_CODE_REACHED
@ SC_ERR_UNREACHABLE_CODE_REACHED
Definition: util-error.h:88
SC_ERR_NFQ_CREATE_QUEUE
@ SC_ERR_NFQ_CREATE_QUEUE
Definition: util-error.h:102
SC_ERR_CONF_NAME_TOO_LONG
@ SC_ERR_CONF_NAME_TOO_LONG
Definition: util-error.h:275
SC_WARN_PCAP_MULTI_DEV_EXPERIMENTAL
@ SC_WARN_PCAP_MULTI_DEV_EXPERIMENTAL
Definition: util-error.h:209
SC_ERR_CHANGING_CAPS_FAILED
@ SC_ERR_CHANGING_CAPS_FAILED
Definition: util-error.h:189
SC_ERR_DNP3_CONFIG
@ SC_ERR_DNP3_CONFIG
Definition: util-error.h:323
SC_ERR_NAPATECH_OPEN_FAILED
@ SC_ERR_NAPATECH_OPEN_FAILED
Definition: util-error.h:246
SC_ERR_PCRE_PARSE
@ SC_ERR_PCRE_PARSE
Definition: util-error.h:37
SC_WARN_XFF_INVALID_MODE
@ SC_WARN_XFF_INVALID_MODE
Definition: util-error.h:268
SC_WARN_POOR_RULE
@ SC_WARN_POOR_RULE
Definition: util-error.h:309
SC_ERR_STATS_NOT_INIT
@ SC_ERR_STATS_NOT_INIT
Definition: util-error.h:83
SC_ERR_WINDIVERT_INVALID_FILTER
@ SC_ERR_WINDIVERT_INVALID_FILTER
Definition: util-error.h:347
SC_ERR_LUA_SCRIPT
@ SC_ERR_LUA_SCRIPT
Definition: util-error.h:292
SC_ERR_NFLOG_SET_MODE
@ SC_ERR_NFLOG_SET_MODE
Definition: util-error.h:283
SC_ERR_THREAD_INIT
@ SC_ERR_THREAD_INIT
Definition: util-error.h:79
SC_ERR_UID_FAILED
@ SC_ERR_UID_FAILED
Definition: util-error.h:187
SC_ERR_SIZE_PARSE
@ SC_ERR_SIZE_PARSE
Definition: util-error.h:230
SC_ERR_REPUTATION_INVALID_OPERATION
@ SC_ERR_REPUTATION_INVALID_OPERATION
Definition: util-error.h:152
SC_WARN_OUTDATED_LIBHTP
@ SC_WARN_OUTDATED_LIBHTP
Definition: util-error.h:234
SC_ERR_NFLOG_GROUP
@ SC_ERR_NFLOG_GROUP
Definition: util-error.h:285
SC_ERR_SMB_CONFIG
@ SC_ERR_SMB_CONFIG
Definition: util-error.h:340
SC_ERR_ERF_DAG_OPEN_FAILED
@ SC_ERR_ERF_DAG_OPEN_FAILED
Definition: util-error.h:195
SC_WARN_NFLOG_SETSOCKOPT
@ SC_WARN_NFLOG_SETSOCKOPT
Definition: util-error.h:290
SC_ERR_STATS_LOG_GENERIC
@ SC_ERR_STATS_LOG_GENERIC
Definition: util-error.h:311
SC_ERR_FLOW_INIT
@ SC_ERR_FLOW_INIT
Definition: util-error.h:237
SC_WARN_LUA_SCRIPT
@ SC_WARN_LUA_SCRIPT
Definition: util-error.h:291
SC_ERR_NO_URICONTENT_NEGATION
@ SC_ERR_NO_URICONTENT_NEGATION
Definition: util-error.h:143
SC_ERR_DEPTH_MISSING_CONTENT
@ SC_ERR_DEPTH_MISSING_CONTENT
Definition: util-error.h:138
SC_ERR_IPFW_BIND
@ SC_ERR_IPFW_BIND
Definition: util-error.h:110
SC_ERR_PF_RING_VLAN
@ SC_ERR_PF_RING_VLAN
Definition: util-error.h:337
SC_ERR_RAWBYTES_BUFFER
@ SC_ERR_RAWBYTES_BUFFER
Definition: util-error.h:231
SC_ERR_SSH_LOG_GENERIC
@ SC_ERR_SSH_LOG_GENERIC
Definition: util-error.h:316
SC_ERR_PCRE_MATCH
@ SC_ERR_PCRE_MATCH
Definition: util-error.h:32
SC_WARN_CHMOD
@ SC_WARN_CHMOD
Definition: util-error.h:330
SC_ERR_CMD_LINE
@ SC_ERR_CMD_LINE
Definition: util-error.h:227
SC_ERR_CONF_YAML_ERROR
@ SC_ERR_CONF_YAML_ERROR
Definition: util-error.h:274
util-error.h
SC_ERR_PCIE_INIT_FAILED
@ SC_ERR_PCIE_INIT_FAILED
Definition: util-error.h:277
SC_ERR_AC_CUDA_ERROR
@ SC_ERR_AC_CUDA_ERROR
Definition: util-error.h:168
SC_ERR_UNKNOWN_DECODE_EVENT
@ SC_ERR_UNKNOWN_DECODE_EVENT
Definition: util-error.h:218
SC_ERR_PIDFILE_OPEN
@ SC_ERR_PIDFILE_OPEN
Definition: util-error.h:184
SC_ERR_REDIS_CONFIG
@ SC_ERR_REDIS_CONFIG
Definition: util-error.h:334
SC_ERR_WINDIVERT_TOOLONG_FILTER
@ SC_ERR_WINDIVERT_TOOLONG_FILTER
Definition: util-error.h:348
SC_ERR_GET_CLUSTER_TYPE_FAILED
@ SC_ERR_GET_CLUSTER_TYPE_FAILED
Definition: util-error.h:65
SC_ERR_NAPATECH_CONFIG_STREAM
@ SC_ERR_NAPATECH_CONFIG_STREAM
Definition: util-error.h:252
SC_ERR_UNKNOWN_VALUE
@ SC_ERR_UNKNOWN_VALUE
Definition: util-error.h:159
SC_ERR_IPFW_SETSOCKOPT
@ SC_ERR_IPFW_SETSOCKOPT
Definition: util-error.h:258
SC_ERR_DNS_LOG_GENERIC
@ SC_ERR_DNS_LOG_GENERIC
Definition: util-error.h:264
SC_WARN_IPFW_UNBIND
@ SC_WARN_IPFW_UNBIND
Definition: util-error.h:116
SC_ERR_NFQ_SETSOCKOPT
@ SC_ERR_NFQ_SETSOCKOPT
Definition: util-error.h:104
SC_ERR_ALERT_PAYLOAD_BUFFER
@ SC_ERR_ALERT_PAYLOAD_BUFFER
Definition: util-error.h:310
SC_ERR_PCRE_COPY_SUBSTRING
@ SC_ERR_PCRE_COPY_SUBSTRING
Definition: util-error.h:358
SC_ERR_UNIFIED_LOG_FILE_HEADER
@ SC_ERR_UNIFIED_LOG_FILE_HEADER
Definition: util-error.h:179
SC_ERR_COUNTER_EXCEEDED
@ SC_ERR_COUNTER_EXCEEDED
Definition: util-error.h:40
SC_ERR_MT_NO_MAPPING
@ SC_ERR_MT_NO_MAPPING
Definition: util-error.h:304
SC_ERR_NFQ_BIND
@ SC_ERR_NFQ_BIND
Definition: util-error.h:99
SC_ERR_INVALID_IP_NETBLOCK
@ SC_ERR_INVALID_IP_NETBLOCK
Definition: util-error.h:46
SC_ERR_PLEDGE_FAILED
@ SC_ERR_PLEDGE_FAILED
Definition: util-error.h:352
SC_ERR_MUTEX
@ SC_ERR_MUTEX
Definition: util-error.h:151
SC_ERR_DNS_CONFIG
@ SC_ERR_DNS_CONFIG
Definition: util-error.h:272
SC_ERR_PIDFILE_DAEMON
@ SC_ERR_PIDFILE_DAEMON
Definition: util-error.h:186
SC_ERR_PF_RING_GET_INTERFACE_FAILED
@ SC_ERR_PF_RING_GET_INTERFACE_FAILED
Definition: util-error.h:63
SC_WARN_IPFW_SETSOCKOPT
@ SC_WARN_IPFW_SETSOCKOPT
Definition: util-error.h:115
SC_ERR_PORT_PARSE_INSERT_STRING
@ SC_ERR_PORT_PARSE_INSERT_STRING
Definition: util-error.h:87
SC_WARN_NFLOG_LOSING_EVENTS
@ SC_WARN_NFLOG_LOSING_EVENTS
Definition: util-error.h:288
SC_ERR_LUA_ERROR
@ SC_ERR_LUA_ERROR
Definition: util-error.h:244
SC_ERR_HOST_INIT
@ SC_ERR_HOST_INIT
Definition: util-error.h:238
SC_ERR_SVC
@ SC_ERR_SVC
Definition: util-error.h:194
SC_ERR_INVALID_ARGUMENT
@ SC_ERR_INVALID_ARGUMENT
Definition: util-error.h:43
SC_ERR_LIBCAP_NG_REQUIRED
@ SC_ERR_LIBCAP_NG_REQUIRED
Definition: util-error.h:190
SC_ERR_HTTP_METHOD_INCOMPATIBLE_WITH_RAWBYTES
@ SC_ERR_HTTP_METHOD_INCOMPATIBLE_WITH_RAWBYTES
Definition: util-error.h:212
SC_ERR_NAPATECH_STAT_DROPS_FAILED
@ SC_ERR_NAPATECH_STAT_DROPS_FAILED
Definition: util-error.h:254
SC_WARN_RENAMING_FILE
@ SC_WARN_RENAMING_FILE
Definition: util-error.h:336
SC_WARN_DEPRECATED
@ SC_WARN_DEPRECATED
Definition: util-error.h:235
SC_ERR_BYTE_EXTRACT_FAILED
@ SC_ERR_BYTE_EXTRACT_FAILED
Definition: util-error.h:158
SC_WARN_ALERT_CONFIG
@ SC_WARN_ALERT_CONFIG
Definition: util-error.h:357
SC_ERR_SYSCALL
@ SC_ERR_SYSCALL
Definition: util-error.h:80
SC_ERR_THRESHOLD_SETUP
@ SC_ERR_THRESHOLD_SETUP
Definition: util-error.h:271
CASE_CODE
#define CASE_CODE(E)
Definition: util-error.c:31
SC_ERR_AFP_READ
@ SC_ERR_AFP_READ
Definition: util-error.h:223
SC_ERR_PF_RING_SET_CLUSTER_FAILED
@ SC_ERR_PF_RING_SET_CLUSTER_FAILED
Definition: util-error.h:67
SC_ERR_TMQ_ALREADY_REGISTERED
@ SC_ERR_TMQ_ALREADY_REGISTERED
Definition: util-error.h:170
SC_ERR_FOPEN
@ SC_ERR_FOPEN
Definition: util-error.h:74
SC_ERR_DAG_NOSUPPORT
@ SC_ERR_DAG_NOSUPPORT
Definition: util-error.h:202
SC_ERR_PCAP_SET_BUFF_SIZE
@ SC_ERR_PCAP_SET_BUFF_SIZE
Definition: util-error.h:58
SC_ERR_CUDA_BUFFER_ERROR
@ SC_ERR_CUDA_BUFFER_ERROR
Definition: util-error.h:263
SC_ERR_SPRINTF
@ SC_ERR_SPRINTF
Definition: util-error.h:42
SC_WARN_FASTER_CAPTURE_AVAILABLE
@ SC_WARN_FASTER_CAPTURE_AVAILABLE
Definition: util-error.h:308
SC_ERR_NAPATECH_PARSE_CONFIG
@ SC_ERR_NAPATECH_PARSE_CONFIG
Definition: util-error.h:255
SC_ERR_LIBNET_WRITE_FAILED
@ SC_ERR_LIBNET_WRITE_FAILED
Definition: util-error.h:177
SC_ERR_THREAD_QUEUE
@ SC_ERR_THREAD_QUEUE
Definition: util-error.h:267
SC_ERR_PORT_ENGINE_GENERIC
@ SC_ERR_PORT_ENGINE_GENERIC
Definition: util-error.h:120
SC_OK
@ SC_OK
Definition: util-error.h:30
SC_ERR_CUDA_ERROR
@ SC_ERR_CUDA_ERROR
Definition: util-error.h:164
SC_ERR_UNDEFINED_VAR
@ SC_ERR_UNDEFINED_VAR
Definition: util-error.h:131
SC_ERR_INVALID_CHECKSUM
@ SC_ERR_INVALID_CHECKSUM
Definition: util-error.h:41
SC_ERR_INVALID_NUM_BYTES
@ SC_ERR_INVALID_NUM_BYTES
Definition: util-error.h:92
SC_ERR_ADDRESS_ENGINE_GENERIC
@ SC_ERR_ADDRESS_ENGINE_GENERIC
Definition: util-error.h:119
SC_ERR_PCAP_RECV_INIT
@ SC_ERR_PCAP_RECV_INIT
Definition: util-error.h:163
SC_ERR_NO_REPUTATION
@ SC_ERR_NO_REPUTATION
Definition: util-error.h:256
SC_ERR_DEFRAG_INIT
@ SC_ERR_DEFRAG_INIT
Definition: util-error.h:245
SC_ERR_NETMAP_READ
@ SC_ERR_NETMAP_READ
Definition: util-error.h:296
SC_ERR_PCRE_STUDY
@ SC_ERR_PCRE_STUDY
Definition: util-error.h:36
SC_WARN_FLOWBIT
@ SC_WARN_FLOWBIT
Definition: util-error.h:339
SC_ERR_FLOW_LOG_GENERIC
@ SC_ERR_FLOW_LOG_GENERIC
Definition: util-error.h:313
SC_ERR_LIBNET11_INCOMPATIBLE_WITH_LIBCAP_NG
@ SC_ERR_LIBNET11_INCOMPATIBLE_WITH_LIBCAP_NG
Definition: util-error.h:191
SC_WARN_IPFW_XMIT
@ SC_WARN_IPFW_XMIT
Definition: util-error.h:114
SC_ERR_INVALID_RUNMODE
@ SC_ERR_INVALID_RUNMODE
Definition: util-error.h:49
SC_ERR_LIBNET_BUILD_FAILED
@ SC_ERR_LIBNET_BUILD_FAILED
Definition: util-error.h:176
SC_ERR_OPENING_RULE_FILE
@ SC_ERR_OPENING_RULE_FILE
Definition: util-error.h:71
SC_WARN_REMOVE_FILE
@ SC_WARN_REMOVE_FILE
Definition: util-error.h:325
SC_ERR_INVALID_MD5
@ SC_ERR_INVALID_MD5
Definition: util-error.h:240
SC_ERR_DCERPC
@ SC_ERR_DCERPC
Definition: util-error.h:204
SC_ERR_INVALID_YAML_CONF_ENTRY
@ SC_ERR_INVALID_YAML_CONF_ENTRY
Definition: util-error.h:169
SC_ERR_LOGPCAP_SGUIL_BASE_DIR_MISSING
@ SC_ERR_LOGPCAP_SGUIL_BASE_DIR_MISSING
Definition: util-error.h:217
SC_ERR_NFLOG_FD
@ SC_ERR_NFLOG_FD
Definition: util-error.h:286
SC_ERR_INVALID_IPV4_ADDR
@ SC_ERR_INVALID_IPV4_ADDR
Definition: util-error.h:47
SC_ERR_NFQ_UNBIND
@ SC_ERR_NFQ_UNBIND
Definition: util-error.h:100
SC_ERR_GEOIP_ERROR
@ SC_ERR_GEOIP_ERROR
Definition: util-error.h:260
SC_ERR_STATS_LOG_NEGATED
@ SC_ERR_STATS_LOG_NEGATED
Definition: util-error.h:305
SC_ERR_EVENT_ENGINE
@ SC_ERR_EVENT_ENGINE
Definition: util-error.h:242
SC_WARN_NFLOG_RECV
@ SC_WARN_NFLOG_RECV
Definition: util-error.h:287
SC_ERR_HTTP_LOG_GENERIC
@ SC_ERR_HTTP_LOG_GENERIC
Definition: util-error.h:125
SC_ERR_NFQ_HANDLE_PKT
@ SC_ERR_NFQ_HANDLE_PKT
Definition: util-error.h:106
SC_ERR_NO_SHA1_SUPPORT
@ SC_ERR_NO_SHA1_SUPPORT
Definition: util-error.h:320
SC_ERR_UNKNOWN_PROTOCOL
@ SC_ERR_UNKNOWN_PROTOCOL
Definition: util-error.h:154
SC_WARN_NO_JA3_SUPPORT
@ SC_WARN_NO_JA3_SUPPORT
Definition: util-error.h:341
SC_ERR_NEGATED_VALUE_IN_PORT_RANGE
@ SC_ERR_NEGATED_VALUE_IN_PORT_RANGE
Definition: util-error.h:86
SC_ERR_PF_RING_GET_CLUSTERID_FAILED
@ SC_ERR_PF_RING_GET_CLUSTERID_FAILED
Definition: util-error.h:62
SC_ERR_LIVE_RULE_SWAP
@ SC_ERR_LIVE_RULE_SWAP
Definition: util-error.h:261
SC_ERR_UNKNOWN_RUN_MODE
@ SC_ERR_UNKNOWN_RUN_MODE
Definition: util-error.h:155
SC_ERR_NO_GEOIP_SUPPORT
@ SC_ERR_NO_GEOIP_SUPPORT
Definition: util-error.h:259
SC_ERR_NO_MAGIC_SUPPORT
@ SC_ERR_NO_MAGIC_SUPPORT
Definition: util-error.h:326
SC_ERR_INVALID_OPERATOR
@ SC_ERR_INVALID_OPERATOR
Definition: util-error.h:162
SC_ERR_ACTION_ORDER
@ SC_ERR_ACTION_ORDER
Definition: util-error.h:33
SC_ERR_HTTP_METHOD_RELATIVE_MISSING
@ SC_ERR_HTTP_METHOD_RELATIVE_MISSING
Definition: util-error.h:213
SC_ERR_NO_RULES_LOADED
@ SC_ERR_NO_RULES_LOADED
Definition: util-error.h:73
SC_ERR_DAEMON
@ SC_ERR_DAEMON
Definition: util-error.h:117
SC_ERR_NFLOG_BIND
@ SC_ERR_NFLOG_BIND
Definition: util-error.h:280
SC_ERR_FAST_LOG_GENERIC
@ SC_ERR_FAST_LOG_GENERIC
Definition: util-error.h:122
SC_ERR_REPUTATION_INVALID_TYPE
@ SC_ERR_REPUTATION_INVALID_TYPE
Definition: util-error.h:153
SC_ERR_HTTP_METHOD_NEEDS_PRECEEDING_CONTENT
@ SC_ERR_HTTP_METHOD_NEEDS_PRECEEDING_CONTENT
Definition: util-error.h:211
SC_WARN_NFLOG_MAXBUFSIZ_REACHED
@ SC_WARN_NFLOG_MAXBUFSIZ_REACHED
Definition: util-error.h:289
SC_ERR_REFERENCE_UNKNOWN
@ SC_ERR_REFERENCE_UNKNOWN
Definition: util-error.h:182
SC_ERR_BYTETEST_MISSING_CONTENT
@ SC_ERR_BYTETEST_MISSING_CONTENT
Definition: util-error.h:139
SC_ERR_PCAP_TRANSLATE
@ SC_ERR_PCAP_TRANSLATE
Definition: util-error.h:233
SCError
SCError
Definition: util-error.h:29
SC_ERR_PCAP_DISPATCH
@ SC_ERR_PCAP_DISPATCH
Definition: util-error.h:50
SC_ERR_MAGIC_LOAD
@ SC_ERR_MAGIC_LOAD
Definition: util-error.h:229
SC_ERR_NFQ_SET_VERDICT
@ SC_ERR_NFQ_SET_VERDICT
Definition: util-error.h:107
SC_ERR_AFP_DISPATCH
@ SC_ERR_AFP_DISPATCH
Definition: util-error.h:224
SC_ERR_BYPASS_NOT_SUPPORTED
@ SC_ERR_BYPASS_NOT_SUPPORTED
Definition: util-error.h:335
SC_ERR_REDIS
@ SC_ERR_REDIS
Definition: util-error.h:327
SC_ERR_NFQ_OPEN
@ SC_ERR_NFQ_OPEN
Definition: util-error.h:98
SC_ERR_INVALID_ACTION
@ SC_ERR_INVALID_ACTION
Definition: util-error.h:172
SC_ERR_NETFLOW_LOG_GENERIC
@ SC_ERR_NETFLOW_LOG_GENERIC
Definition: util-error.h:314
SC_ERR_AFP_CREATE
@ SC_ERR_AFP_CREATE
Definition: util-error.h:222
SC_ERR_UNIFIED2_ALERT_GENERIC
@ SC_ERR_UNIFIED2_ALERT_GENERIC
Definition: util-error.h:128
SC_ERR_NO_SHA256_SUPPORT
@ SC_ERR_NO_SHA256_SUPPORT
Definition: util-error.h:321
SC_ERR_FSEEK
@ SC_ERR_FSEEK
Definition: util-error.h:344
SC_ERR_NO_AF_PACKET
@ SC_ERR_NO_AF_PACKET
Definition: util-error.h:225
SC_ERR_BPF
@ SC_ERR_BPF
Definition: util-error.h:157
SC_ERR_UNIMPLEMENTED
@ SC_ERR_UNIMPLEMENTED
Definition: util-error.h:118
SC_WARN_PROFILE
@ SC_WARN_PROFILE
Definition: util-error.h:236
SC_ERR_THASH_INIT
@ SC_ERR_THASH_INIT
Definition: util-error.h:354
SC_ERR_NFLOG_UNBIND
@ SC_ERR_NFLOG_UNBIND
Definition: util-error.h:281
SC_ERR_NO_LUA_SUPPORT
@ SC_ERR_NO_LUA_SUPPORT
Definition: util-error.h:243
SC_ERR_PIDFILE_WRITE
@ SC_ERR_PIDFILE_WRITE
Definition: util-error.h:185
SC_ERR_NAPATECH_STREAMS_REGISTER_FAILED
@ SC_ERR_NAPATECH_STREAMS_REGISTER_FAILED
Definition: util-error.h:253
SC_WARN_FLOW_EMERGENCY
@ SC_WARN_FLOW_EMERGENCY
Definition: util-error.h:192
SC_ERR_PCAP_LOG_COMPRESS
@ SC_ERR_PCAP_LOG_COMPRESS
Definition: util-error.h:343
SC_ERR_NAPATECH_STREAM_NEXT_FAILED
@ SC_ERR_NAPATECH_STREAM_NEXT_FAILED
Definition: util-error.h:247
SC_ERR_TCPDATA_LOG_GENERIC
@ SC_ERR_TCPDATA_LOG_GENERIC
Definition: util-error.h:312
SC_ERR_NO_NETMAP
@ SC_ERR_NO_NETMAP
Definition: util-error.h:294
SC_ERR_NUMERIC_VALUE_ERANGE
@ SC_ERR_NUMERIC_VALUE_ERANGE
Definition: util-error.h:91
SC_ERR_ERF_DAG_STREAM_OPEN_FAILED
@ SC_ERR_ERF_DAG_STREAM_OPEN_FAILED
Definition: util-error.h:196
SC_ERR_FATAL
@ SC_ERR_FATAL
Definition: util-error.h:203
SC_ERR_THREAD_NICE_PRIO
@ SC_ERR_THREAD_NICE_PRIO
Definition: util-error.h:77
SC_ERR_UNKNOWN_REGEX_MOD
@ SC_ERR_UNKNOWN_REGEX_MOD
Definition: util-error.h:161
SC_ERR_COMPLETE_PORT_SPACE_NEGATED
@ SC_ERR_COMPLETE_PORT_SPACE_NEGATED
Definition: util-error.h:84
SC_ERR_REASSEMBLY
@ SC_ERR_REASSEMBLY
Definition: util-error.h:95
SC_ERR_RADIX_TREE_GENERIC
@ SC_ERR_RADIX_TREE_GENERIC
Definition: util-error.h:149
SC_ERR_ERF_DAG_STREAM_READ_FAILED
@ SC_ERR_ERF_DAG_STREAM_READ_FAILED
Definition: util-error.h:199
SC_ERR_MAX
@ SC_ERR_MAX
Definition: util-error.h:364
SC_ERR_MODBUS_CONFIG
@ SC_ERR_MODBUS_CONFIG
Definition: util-error.h:273
SC_WARN_EVE_MISSING_EVENTS
@ SC_WARN_EVE_MISSING_EVENTS
Definition: util-error.h:351
SC_ERR_DATALINK_UNIMPLEMENTED
@ SC_ERR_DATALINK_UNIMPLEMENTED
Definition: util-error.h:68
SC_ERR_THREAD_SPAWN
@ SC_ERR_THREAD_SPAWN
Definition: util-error.h:76
SC_ERR_STAT
@ SC_ERR_STAT
Definition: util-error.h:145
SC_ERR_WITHIN_INVALID
@ SC_ERR_WITHIN_INVALID
Definition: util-error.h:136
SC_ERR_NO_FILES_FOR_PROTOCOL
@ SC_ERR_NO_FILES_FOR_PROTOCOL
Definition: util-error.h:318
SC_WARN_OPTION_OBSOLETE
@ SC_WARN_OPTION_OBSOLETE
Definition: util-error.h:265
SC_ERR_MEM_ALLOC
@ SC_ERR_MEM_ALLOC
Definition: util-error.h:31
SC_ERR_ERF_BAD_RLEN
@ SC_ERR_ERF_BAD_RLEN
Definition: util-error.h:361
SC_ERR_FLAGS_MODIFIER
@ SC_ERR_FLAGS_MODIFIER
Definition: util-error.h:133
SC_ERR_NFLOG_NOSUPPORT
@ SC_ERR_NFLOG_NOSUPPORT
Definition: util-error.h:278
SC_ERR_INVALID_ENUM_MAP
@ SC_ERR_INVALID_ENUM_MAP
Definition: util-error.h:45
SC_ERR_NFQ_RECV
@ SC_ERR_NFQ_RECV
Definition: util-error.h:105
SC_ERR_JSON_STATS_LOG_NEGATED
@ SC_ERR_JSON_STATS_LOG_NEGATED
Definition: util-error.h:306
SC_ERR_LOGDIR_CMDLINE
@ SC_ERR_LOGDIR_CMDLINE
Definition: util-error.h:147
SC_ERR_IPFW_SOCK
@ SC_ERR_IPFW_SOCK
Definition: util-error.h:111
SC_ERR_LIBNET_NOT_ENABLED
@ SC_ERR_LIBNET_NOT_ENABLED
Definition: util-error.h:178
SC_WARN_REGISTRATION_FAILED
@ SC_WARN_REGISTRATION_FAILED
Definition: util-error.h:360
SC_ERR_APP_LAYER_PROTOCOL_DETECTION
@ SC_ERR_APP_LAYER_PROTOCOL_DETECTION
Definition: util-error.h:276
SC_ERR_LOG_MODULE_NOT_INIT
@ SC_ERR_LOG_MODULE_NOT_INIT
Definition: util-error.h:38
SC_ERR_RULE_KEYWORD_UNKNOWN
@ SC_ERR_RULE_KEYWORD_UNKNOWN
Definition: util-error.h:132
SC_ERR_PCAP_ACTIVATE_HANDLE
@ SC_ERR_PCAP_ACTIVATE_HANDLE
Definition: util-error.h:57
SC_ERR_INITIALIZATION
@ SC_ERR_INITIALIZATION
Definition: util-error.h:75
SC_ERR_DISTANCE_MISSING_CONTENT
@ SC_ERR_DISTANCE_MISSING_CONTENT
Definition: util-error.h:134
SC_ERR_ARG_LEN_LONG
@ SC_ERR_ARG_LEN_LONG
Definition: util-error.h:93
SC_ERR_THREAD_DEINIT
@ SC_ERR_THREAD_DEINIT
Definition: util-error.h:297
SC_ERR_PCAP_SET_PROMISC
@ SC_ERR_PCAP_SET_PROMISC
Definition: util-error.h:53
SC_ERR_ENIP_CONFIG
@ SC_ERR_ENIP_CONFIG
Definition: util-error.h:322
SC_ERR_INVALID_NUMERIC_VALUE
@ SC_ERR_INVALID_NUMERIC_VALUE
Definition: util-error.h:90
SC_ERR_HTTP_COOKIE_NEEDS_PRECEEDING_CONTENT
@ SC_ERR_HTTP_COOKIE_NEEDS_PRECEEDING_CONTENT
Definition: util-error.h:214
SC_ERR_MISSING_QUOTE
@ SC_ERR_MISSING_QUOTE
Definition: util-error.h:150
SC_ERR_PCAP_MULTI_DEV_NO_SUPPORT
@ SC_ERR_PCAP_MULTI_DEV_NO_SUPPORT
Definition: util-error.h:210
SC_WARN_NO_UNITTESTS
@ SC_WARN_NO_UNITTESTS
Definition: util-error.h:266
SC_WARN_DEFAULT_WILL_CHANGE
@ SC_WARN_DEFAULT_WILL_CHANGE
Definition: util-error.h:350
SC_ERR_NAPATECH_REQUIRED
@ SC_ERR_NAPATECH_REQUIRED
Definition: util-error.h:249
SC_ERR_DIR_OPEN
@ SC_ERR_DIR_OPEN
Definition: util-error.h:324
SC_ERR_SPINLOCK
@ SC_ERR_SPINLOCK
Definition: util-error.h:44
SC_ERR_HTTP_COOKIE_INCOMPATIBLE_WITH_RAWBYTES
@ SC_ERR_HTTP_COOKIE_INCOMPATIBLE_WITH_RAWBYTES
Definition: util-error.h:215
SC_ERR_ALPARSER
@ SC_ERR_ALPARSER
Definition: util-error.h:89
SC_ERR_LOGDIR_CONFIG
@ SC_ERR_LOGDIR_CONFIG
Definition: util-error.h:146
SC_ERR_ERF_DAG_STREAM_SET_FAILED
@ SC_ERR_ERF_DAG_STREAM_SET_FAILED
Definition: util-error.h:198
SC_ERR_MULTIPLE_RUN_MODE
@ SC_ERR_MULTIPLE_RUN_MODE
Definition: util-error.h:156
SC_ERR_INVALID_HASH
@ SC_ERR_INVALID_HASH
Definition: util-error.h:319
SC_ERR_NO_REDIS_ASYNC
@ SC_ERR_NO_REDIS_ASYNC
Definition: util-error.h:333
SC_ERR_REFERENCE_CONFIG
@ SC_ERR_REFERENCE_CONFIG
Definition: util-error.h:207
SC_ERR_NFQ_SET_MODE
@ SC_ERR_NFQ_SET_MODE
Definition: util-error.h:103
SC_WARN_XFF_INVALID_DEPLOYMENT
@ SC_WARN_XFF_INVALID_DEPLOYMENT
Definition: util-error.h:270
SC_ERR_OPENING_FILE
@ SC_ERR_OPENING_FILE
Definition: util-error.h:70
SC_ERR_NOCASE_MISSING_PATTERN
@ SC_ERR_NOCASE_MISSING_PATTERN
Definition: util-error.h:141
SC_WARN_IPFW_RECV
@ SC_WARN_IPFW_RECV
Definition: util-error.h:113
SC_ERR_NFLOG_HANDLE_PKT
@ SC_ERR_NFLOG_HANDLE_PKT
Definition: util-error.h:284
SC_ERR_NO_PF_RING
@ SC_ERR_NO_PF_RING
Definition: util-error.h:60
SC_ERR_CONFLICTING_RULE_KEYWORDS
@ SC_ERR_CONFLICTING_RULE_KEYWORDS
Definition: util-error.h:171
SC_ERR_LIBNET_INVALID_DIR
@ SC_ERR_LIBNET_INVALID_DIR
Definition: util-error.h:175
SC_WARN_UNCOMMON
@ SC_WARN_UNCOMMON
Definition: util-error.h:262