summaryrefslogtreecommitdiff
path: root/tests/syslog-v.out
diff options
context:
space:
mode:
authorBram <tcpdump@mail.wizbit.be>2010-09-28 11:32:14 +0200
committerDenis Ovsienko <infrastation@yandex.ru>2013-09-12 21:14:16 +0400
commitd44f963e59ead8486d097f890ec8ca7c3000a8af (patch)
treef627418cf1605a5f005545af3c24fcb61df57656 /tests/syslog-v.out
parentf5acc04bef89751b57441dcdac7a86b8f981989b (diff)
downloadtcpdump-d44f963e59ead8486d097f890ec8ca7c3000a8af.tar.gz
fix parsing of syslog priority (GH #264)
...the code * first looks for '<' and advances to the next character, * it looks for a number between 0 and 9 and advances to the next character, (it finds 7) * it looks for '>' and advances to the next character, * it looks for a number between 0 and 9 and advances to the next character, (it finds the '2' of '2010') => result: prio is 72 instead of 7. The code that checks if the character is '>' should be outside the loop that checks if the character is a number. The attached patch moves this check.
Diffstat (limited to 'tests/syslog-v.out')
-rw-r--r--tests/syslog-v.out4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/syslog-v.out b/tests/syslog-v.out
index 8249cae5..5ebed29f 100644
--- a/tests/syslog-v.out
+++ b/tests/syslog-v.out
@@ -12,5 +12,5 @@ IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 107)
Msg: 2013-09-12T19:16:34.457849+04:00 localhost through rsyslog: test message 23
IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 106)
10.0.0.20.52693 > 10.0.0.71.514: SYSLOG, length: 78
- Facility ftp (11), Severity warning (4)
- Msg: 013-09-12T19:16:43.513746+04:00 localhost through rsyslog: test message 24
+ Facility user (1), Severity alert (1)
+ Msg: 2013-09-12T19:16:43.513746+04:00 localhost through rsyslog: test message 24