diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-11-25 23:16:21 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-11-25 23:16:21 +0000 |
commit | 6536796ced0371c4784cc58e9399dc0c1890bedd (patch) | |
tree | fa256163fad15eb767aa7b48adfec3e05b203bc0 /usr.sbin/ipmon | |
parent | 00bdcda8dc81d6a54ee2a631d1b353978d2fef21 (diff) |
incorrect icmp packet length printf; gluk@ptci.ru
Diffstat (limited to 'usr.sbin/ipmon')
-rw-r--r-- | usr.sbin/ipmon/ipmon.c | 6 |
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 || |