diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-12-23 18:55:54 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-12-23 18:55:54 +0000 |
commit | eb9bc387d241b1d0694fdef81fc6df32f8313c27 (patch) | |
tree | 6de06fd48924bba4648811d1ab023c339374400a | |
parent | 5df6df02baf829faaa56b2f656a9a3732c24e8ad (diff) |
no need to ntohs the ports
-rw-r--r-- | usr.sbin/tcpdump/print-pfsync.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/tcpdump/print-pfsync.c b/usr.sbin/tcpdump/print-pfsync.c index 8111c5a0b8b..b7ac3942852 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.4 2002/12/20 22:25:59 mickey Exp $ */ +/* $OpenBSD: print-pfsync.c,v 1.5 2002/12/23 18:55:53 mickey 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.4 2002/12/20 22:25:59 mickey Exp $"; + "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-pfsync.c,v 1.5 2002/12/23 18:55:53 mickey Exp $"; #endif #include <sys/param.h> @@ -105,9 +105,9 @@ pfsync_if_print(u_char *user, const struct pcap_pkthdr *h, i++, s++) { struct pf_state st; - bcopy(&s->lan, &st.lan, sizeof(st.lan)); NTOHS(st.lan.port); - bcopy(&s->gwy, &st.gwy, sizeof(st.gwy)); NTOHS(st.gwy.port); - bcopy(&s->ext, &st.ext, sizeof(st.ext)); NTOHS(st.ext.port); + bcopy(&s->lan, &st.lan, sizeof(st.lan)); + bcopy(&s->gwy, &st.gwy, sizeof(st.gwy)); + bcopy(&s->ext, &st.ext, sizeof(st.ext)); pf_state_peer_ntoh(&s->src, &st.src); pf_state_peer_ntoh(&s->dst, &st.dst); st.rule.nr = ntohl(s->rule.nr); |