summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-01-28 22:45:20 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-01-28 22:45:20 +0000
commitc23d089fed5d4fb4f4942877c0ef2edff1a35529 (patch)
treef1a3551a4c1428feccefc980fbaafb1aaa9d2007
parentf8b5b3d433359e01946d98b2818148627ae88d15 (diff)
a lost ntohs() caused tcpdump not to print the action.
debugging session with and ok'd by dhartmei@
-rw-r--r--usr.sbin/tcpdump/print-pflog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/print-pflog.c b/usr.sbin/tcpdump/print-pflog.c
index 96a8c82ca90..109b80730a5 100644
--- a/usr.sbin/tcpdump/print-pflog.c
+++ b/usr.sbin/tcpdump/print-pflog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-pflog.c,v 1.11 2003/01/01 16:55:16 mcbride Exp $ */
+/* $OpenBSD: print-pflog.c,v 1.12 2003/01/28 22:45:19 henning Exp $ */
/*
* Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996
@@ -23,7 +23,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-pflog.c,v 1.11 2003/01/01 16:55:16 mcbride Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-pflog.c,v 1.12 2003/01/28 22:45:19 henning Exp $ (LBL)";
#endif
#include <sys/param.h>
@@ -91,7 +91,7 @@ pflog_if_print(u_char *user, const struct pcap_pkthdr *h,
printf("rule %d/%s: ",
(short)ntohs(hdr->rnr), reason);
- switch (hdr->action) {
+ switch (ntohs(hdr->action)) {
case PF_SCRUB:
printf("scrub");
break;