suricata
util-error.h
Go to the documentation of this file.
1 /* Copyright (C) 2007-2014 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 
24 #ifndef __ERROR_H__
25 #define __ERROR_H__
26 
27 
28 /* different error types */
29 typedef enum {
79  SC_ERR_THREAD_INIT, /**< thread's initialization function failed */
154  SC_ERR_UNKNOWN_PROTOCOL, /**< signature contains invalid protocol */
179  SC_ERR_UNIFIED_LOG_FILE_HEADER, /**< Error to indicate the unified file
180  header writing function has been
181  failed */
182  SC_ERR_REFERENCE_UNKNOWN, /**< unknown reference key (cve, url, etc) */
202  SC_ERR_DAG_NOSUPPORT, /**< no ERF/DAG support compiled in */
205  SC_ERR_DETECT_PREPARE, /**< preparing the detection engine failed */
208  SC_ERR_DUPLICATE_SIG, /**< Error to indicate that signature is duplicate */
233  SC_ERR_PCAP_TRANSLATE, /* failed to translate ip to dev */
297  SC_ERR_THREAD_DEINIT, /**< thread's deinit function failed */
302  SC_ERR_INVALID_RULE_ARGUMENT, /**< Generic error code for invalid
303  * rule argument. */
305  SC_ERR_STATS_LOG_NEGATED, /** When totals and threads are both NO in yaml **/
306  SC_ERR_JSON_STATS_LOG_NEGATED, /** When totals and threads are both NO in yaml **/
307  SC_ERR_DEPRECATED_CONF, /**< Deprecated configuration parameter. */
358 
360 } SCError;
361 
362 const char *SCErrorToString(SCError);
363 
364 
365 #endif /* __ERROR_H__ */
SCError
Definition: util-error.h:29
const char * SCErrorToString(SCError)
Maps the error code, to its string equivalent.
Definition: util-error.c:40