summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/print-pflog.c
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2003-01-28 22:45:19 +0000
committerhenning <henning@openbsd.org>2003-01-28 22:45:19 +0000
commitc0dd0737d19af2095f72ee05a8cd858c2e02c6fc (patch)
treec30671770c9175a1abcbba3eebb33a671a20c41b /usr.sbin/tcpdump/print-pflog.c
parentsome more meat (diff)
downloadwireguard-openbsd-c0dd0737d19af2095f72ee05a8cd858c2e02c6fc.tar.xz
wireguard-openbsd-c0dd0737d19af2095f72ee05a8cd858c2e02c6fc.zip
a lost ntohs() caused tcpdump not to print the action.
debugging session with and ok'd by dhartmei@
Diffstat (limited to 'usr.sbin/tcpdump/print-pflog.c')
-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 2c6824cbdd4..b0ca03b8e30 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: /home/cvs/src/usr.sbin/tcpdump/print-pflog.c,v 1.11 2003/01/01 16:55:16 mcbride Exp $ (LBL)";
+ "@(#) $Header: /home/cvs/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;