summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2003-11-08 19:51:39 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2003-11-08 19:51:39 +0000
commit9e066c5b3955e2d814380ac9b73a757f5aebe879 (patch)
tree4e08a4d1f8d5d0d77b07456cf7b6b244fd9f0ad7 /usr.sbin/tcpdump
parentf9f14a9c601ce315abc03482cec3a455d84485be (diff)
Return proper anchor rule number in correct byte order.
From Pyun YongHyeon. ok henning@, canacar@
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r--usr.sbin/tcpdump/print-pfsync.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-pfsync.c b/usr.sbin/tcpdump/print-pfsync.c
index f51f825fa4e..4c09468942e 100644
--- a/usr.sbin/tcpdump/print-pfsync.c
+++ b/usr.sbin/tcpdump/print-pfsync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-pfsync.c,v 1.11 2003/11/08 06:46:44 mcbride Exp $ */
+/* $OpenBSD: print-pfsync.c,v 1.12 2003/11/08 19:51:38 dhartmei Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -28,7 +28,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-pfsync.c,v 1.11 2003/11/08 06:46:44 mcbride Exp $";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-pfsync.c,v 1.12 2003/11/08 19:51:38 dhartmei Exp $";
#endif
#include <sys/param.h>
@@ -111,6 +111,7 @@ pfsync_if_print(u_char *user, const struct pcap_pkthdr *h,
pf_state_peer_ntoh(&s->src, &st.src);
pf_state_peer_ntoh(&s->dst, &st.dst);
st.rule.nr = ntohl(s->rule.nr);
+ st.anchor.nr = ntohl(s->anchor.nr);
bcopy(&s->rt_addr, &st.rt_addr, sizeof(st.rt_addr));
st.creation = ntohl(s->creation);
st.expire = ntohl(s->expire);