From 9e066c5b3955e2d814380ac9b73a757f5aebe879 Mon Sep 17 00:00:00 2001 From: Daniel Hartmeier Date: Sat, 8 Nov 2003 19:51:39 +0000 Subject: Return proper anchor rule number in correct byte order. From Pyun YongHyeon. ok henning@, canacar@ --- usr.sbin/tcpdump/print-pfsync.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.sbin/tcpdump') 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 @@ -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); -- cgit v1.2.3