From: guy Date: Wed, 25 Oct 2006 22:13:30 +0000 (+0000) Subject: From Jun Kuriyama: X-Git-Tag: tcpdump-3.9.7~49 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/743b55bd0255dbb92c8bbb4c9fc316e7661e64ca From Jun Kuriyama: I noticed tcpdump (on FreeBSD 6.1) cannot show pflog reason value 8 (should be "ip-option"). I made a patch for print-pflog.c to add more values which obtained from /usr/include/net/pfvar.h on FreeBSD 6.1. --- diff --git a/print-pflog.c b/print-pflog.c index 60a7f2ac..9d28ce6b 100644 --- a/print-pflog.c +++ b/print-pflog.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-pflog.c,v 1.13.2.1 2005-07-07 01:24:38 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-pflog.c,v 1.13.2.2 2006-10-25 22:13:30 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -44,6 +44,15 @@ static struct tok pf_reasons[] = { { 3, "3(short)" }, { 4, "4(normalize)" }, { 5, "5(memory)" }, + { 6, "6(bad-timestamp)" }, + { 7, "7(congestion)" }, + { 8, "8(ip-option)" }, + { 9, "9(proto-cksum)" }, + { 10, "10(state-mismatch)" }, + { 11, "11(state-insert)" }, + { 12, "12(state-limit)" }, + { 13, "13(src-limit)" }, + { 14, "14(synproxy)" }, { 0, NULL } };