summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-03-11 09:24:52 +0000
committerbrian <brian@FreeBSD.org>1999-03-11 09:24:52 +0000
commitffb312a7f14bbdd40d509e57f951b70974ce7a35 (patch)
tree2940be5cefc00cf1e970fd14d25a5c59e6657f23 /usr.sbin
parente4c4c7a0ff6824de6ba899ab305a47c726a135bb (diff)
downloadFreeBSD-src-ffb312a7f14bbdd40d509e57f951b70974ce7a35.zip
FreeBSD-src-ffb312a7f14bbdd40d509e57f951b70974ce7a35.tar.gz
Fix a diagnostic typo
Submitted by: Martin Machacek <mm@i.cz>
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/natd/natd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/natd/natd.c b/usr.sbin/natd/natd.c
index 5852135..5dab03e 100644
--- a/usr.sbin/natd/natd.c
+++ b/usr.sbin/natd/natd.c
@@ -9,7 +9,7 @@
*
* Ari Suutari <suutari@iki.fi>
*
- * $Id:$
+ * $Id: natd.c,v 1.10 1999/03/07 18:23:56 brian Exp $
*/
#define SYSLOG_NAMES
@@ -659,11 +659,11 @@ static char* FormatPacket (struct ip* ip)
case IPPROTO_ICMP:
icmphdr = (struct icmp*) ((char*) ip + (ip->ip_hl << 2));
- sprintf (buf, "[ICMP] %s -> %s %d(%d)",
+ sprintf (buf, "[ICMP] %s -> %s %u(%u)",
src,
dst,
- ntohs (icmphdr->icmp_type),
- ntohs (icmphdr->icmp_code));
+ icmphdr->icmp_type,
+ icmphdr->icmp_code);
break;
default:
OpenPOWER on IntegriCloud