summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2005-03-06 17:36:32 +0000
committerChad Loder <cloder@cvs.openbsd.org>2005-03-06 17:36:32 +0000
commite3c1279904f73552b5e47d5756866bc959b09c3a (patch)
tree2e2c8c37a9127affb257b2a86f4e8a1c63cbb357 /usr.sbin
parent42385adb8bb48a4996300ef21b954e35bb30e873 (diff)
Use correct byte order when logging port numbers.
OK tdeval, markus
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/ppp/slcompress.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ppp/slcompress.c b/usr.sbin/ppp/ppp/slcompress.c
index 20b508444ee..ffea072bdaa 100644
--- a/usr.sbin/ppp/ppp/slcompress.c
+++ b/usr.sbin/ppp/ppp/slcompress.c
@@ -36,7 +36,7 @@
* Van Jacobson (van@helios.ee.lbl.gov), Dec 31, 1989:
* - Initial distribution.
*
- * $OpenBSD: slcompress.c,v 1.17 2003/06/04 16:08:08 deraadt Exp $
+ * $OpenBSD: slcompress.c,v 1.18 2005/03/06 17:36:31 cloder Exp $
*/
#include <sys/param.h>
@@ -175,7 +175,7 @@ sl_compress_tcp(struct mbuf * m,
*/
if ((ip->ip_off & htons(0x3fff)) || m->m_len < 40) {
log_Printf(LogDEBUG, "??? 1 ip_off = %x, m_len = %lu\n",
- ip->ip_off, (unsigned long)m->m_len);
+ ntohs(ip->ip_off), (unsigned long)m->m_len);
log_DumpBp(LogDEBUG, "", m);
return (TYPE_IP);
}