diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2006-02-21 21:30:27 +0000 |
---|---|---|
committer | Jaap Keuter <jaap.keuter@xs4all.nl> | 2006-02-21 21:30:27 +0000 |
commit | f459143fb4df3788b031fc09d78d3b09aebcd5b1 (patch) | |
tree | 5d533a0054e15391f1b3ab0fb346a17d9387ae12 | |
parent | 3d728fcf08cd66170faead5bed32e81df3b022f5 (diff) |
Fix for bug 758: Adding facility codes 12-15 according to RFC 3164
svn path=/trunk/; revision=17361
-rw-r--r-- | epan/dissectors/packet-syslog.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/epan/dissectors/packet-syslog.c b/epan/dissectors/packet-syslog.c index 1fd272eadb..852ec12e4f 100644 --- a/epan/dissectors/packet-syslog.c +++ b/epan/dissectors/packet-syslog.c @@ -53,7 +53,7 @@ static const value_string short_lev[] = { { 5, "NOTICE" }, { 6, "INFO" }, { 7, "DEBUG" }, - { 0, NULL }, + { 0, NULL } }; static const value_string short_fac[] = { @@ -69,6 +69,9 @@ static const value_string short_fac[] = { { 9, "CRON" }, /* The BSDs, Linux, and others */ { 10, "AUTHPRIV" }, { 11, "FTP" }, + { 12, "NTP" }, + { 13, "LOGAUDIT" }, + { 14, "LOGALERT" }, { 15, "CRON" }, /* Solaris */ { 16, "LOCAL0" }, { 17, "LOCAL1" }, @@ -78,7 +81,7 @@ static const value_string short_fac[] = { { 21, "LOCAL5" }, { 22, "LOCAL6" }, { 23, "LOCAL7" }, - { 0, NULL }, + { 0, NULL } }; static const value_string long_lev[] = { @@ -90,7 +93,7 @@ static const value_string long_lev[] = { { 5, "NOTICE - normal but significant condition" }, { 6, "INFO - informational" }, { 7, "DEBUG - debug-level messages" }, - { 0, NULL }, + { 0, NULL } }; static const value_string long_fac[] = { @@ -106,6 +109,9 @@ static const value_string long_fac[] = { { 9, "CRON - clock daemon (BSD, Linux)" }, { 10, "AUTHPRIV - security/authorization messages (private)" }, { 11, "FTP - ftp daemon" }, + { 12, "NTP - ntp subsystem" }, + { 13, "LOGAUDIT - log audit" }, + { 14, "LOGALERT - log alert" }, { 15, "CRON - clock daemon (Solaris)" }, { 16, "LOCAL0 - reserved for local use" }, { 17, "LOCAL1 - reserved for local use" }, @@ -115,7 +121,7 @@ static const value_string long_fac[] = { { 21, "LOCAL5 - reserved for local use" }, { 22, "LOCAL6 - reserved for local use" }, { 23, "LOCAL7 - reserved for local use" }, - { 0, NULL }, + { 0, NULL } }; static gint proto_syslog = -1; @@ -125,12 +131,7 @@ static gint hf_syslog_msg = -1; static gint ett_syslog = -1; -/* I couldn't find any documentation for the syslog message format. - According to the BSD sources, the message format is '<', P, '>', and - T. P is a decimal value, which should be treated as an 8 bit - unsigned integer. The lower three bits comprise the level, and the - upper five bits are the facility. T is the message text. - */ +/* The message format is defined in RFC 3164 */ static void dissect_syslog(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { |