summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-11-25 23:16:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-11-25 23:16:21 +0000
commit6536796ced0371c4784cc58e9399dc0c1890bedd (patch)
treefa256163fad15eb767aa7b48adfec3e05b203bc0
parent00bdcda8dc81d6a54ee2a631d1b353978d2fef21 (diff)
incorrect icmp packet length printf; gluk@ptci.ru
-rw-r--r--usr.sbin/ipmon/ipmon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ipmon/ipmon.c b/usr.sbin/ipmon/ipmon.c
index 96204b3af96..bf6c9e6f222 100644
--- a/usr.sbin/ipmon/ipmon.c
+++ b/usr.sbin/ipmon/ipmon.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipmon.c,v 1.18 1999/02/05 05:58:48 deraadt Exp $
+/* $OpenBSD: ipmon.c,v 1.19 1999/11/25 23:16:20 deraadt Exp $
* Copyright (C) 1993-1998 by Darren Reed.
*
* Redistribution and use in source and binary forms are permitted
@@ -7,7 +7,7 @@
*/
#if !defined(lint)
static const char sccsid[] = "@(#)ipmon.c 1.21 6/5/96 (C)1993-1997 Darren Reed";
-static const char rcsid[] = "@(#)$Id: ipmon.c,v 1.18 1999/02/05 05:58:48 deraadt Exp $";
+static const char rcsid[] = "@(#)$Id: ipmon.c,v 1.19 1999/11/25 23:16:20 deraadt Exp $";
#endif
#ifndef SOLARIS
@@ -615,7 +615,7 @@ int blen;
(void) sprintf(t, "%s -> ", hostname(res, ip->ip_src));
t += strlen(t);
(void) sprintf(t, "%s PR icmp len %hu %hu icmp %d/%d",
- hostname(res, ip->ip_dst), hl, ntohs(ip->ip_len),
+ hostname(res, ip->ip_dst), hl, ip->ip_len,
ic->icmp_type, ic->icmp_code);
if (ic->icmp_type == ICMP_UNREACH ||
ic->icmp_type == ICMP_SOURCEQUENCH ||