2 * Routines for syslog message dissection
4 * Copyright 2000, Gerald Combs <gerald[AT]wireshark.org>
6 * Support for passing SS7 MSUs (from the Cisco ITP Packet Logging
7 * facility) to the MTP3 dissector by Abhik Sarkar <sarkar.abhik[AT]gmail.com>
8 * with some rework by Jeff Morriss <jeff.morriss.ws [AT] gmail.com>
10 * Wireshark - Network traffic analyzer
11 * By Gerald Combs <gerald[AT]wireshark.org>
12 * Copyright 1998 Gerald Combs
14 * SPDX-License-Identifier: GPL-2.0-or-later
17 #ifndef __PACKET_SYSLOG_H__
18 #define __PACKET_SYSLOG_H__
22 #endif /* __cplusplus */
24 /* Level / Priority */
29 #define LEVEL_WARNING 4
30 #define LEVEL_NOTICE 5
34 static const value_string syslog_level_vals
[] = {
35 { LEVEL_EMERG
, "EMERG - system is unusable" },
36 { LEVEL_ALERT
, "ALERT - action must be taken immediately" },
37 { LEVEL_CRIT
, "CRIT - critical conditions" },
38 { LEVEL_ERR
, "ERR - error conditions" },
39 { LEVEL_WARNING
, "WARNING - warning conditions" },
40 { LEVEL_NOTICE
, "NOTICE - normal but significant condition" },
41 { LEVEL_INFO
, "INFO - informational" },
42 { LEVEL_DEBUG
, "DEBUG - debug-level messages" },
57 #define FAC_AUTHPRIV 10
60 #define FAC_LOGAUDIT 13
61 #define FAC_LOGALERT 14
62 #define FAC_CRON_SOL 15
72 static const value_string syslog_facility_vals
[] = {
73 { FAC_KERN
, "KERN - kernel messages" },
74 { FAC_USER
, "USER - random user-level messages" },
75 { FAC_MAIL
, "MAIL - mail system" },
76 { FAC_DAEMON
, "DAEMON - system daemons" },
77 { FAC_AUTH
, "AUTH - security/authorization messages" },
78 { FAC_SYSLOG
, "SYSLOG - messages generated internally by syslogd" },
79 { FAC_LPR
, "LPR - line printer subsystem" },
80 { FAC_NEWS
, "NEWS - network news subsystem" },
81 { FAC_UUCP
, "UUCP - UUCP subsystem" },
82 { FAC_CRON
, "CRON - clock daemon (BSD, Linux)" },
83 { FAC_AUTHPRIV
, "AUTHPRIV - security/authorization messages (private)" },
84 { FAC_FTP
, "FTP - ftp daemon" },
85 { FAC_NTP
, "NTP - ntp subsystem" },
86 { FAC_LOGAUDIT
, "LOGAUDIT - log audit" },
87 { FAC_LOGALERT
, "LOGALERT - log alert" },
88 { FAC_CRON_SOL
, "CRON - clock daemon (Solaris)" },
89 { FAC_LOCAL0
, "LOCAL0 - reserved for local use" },
90 { FAC_LOCAL1
, "LOCAL1 - reserved for local use" },
91 { FAC_LOCAL2
, "LOCAL2 - reserved for local use" },
92 { FAC_LOCAL3
, "LOCAL3 - reserved for local use" },
93 { FAC_LOCAL4
, "LOCAL4 - reserved for local use" },
94 { FAC_LOCAL5
, "LOCAL5 - reserved for local use" },
95 { FAC_LOCAL6
, "LOCAL6 - reserved for local use" },
96 { FAC_LOCAL7
, "LOCAL7 - reserved for local use" },
102 #endif /* __cplusplus */
104 #endif // __PACKET_SYSLOG_H__