From ffb312a7f14bbdd40d509e57f951b70974ce7a35 Mon Sep 17 00:00:00 2001 From: brian Date: Thu, 11 Mar 1999 09:24:52 +0000 Subject: Fix a diagnostic typo Submitted by: Martin Machacek --- sbin/natd/natd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sbin/natd') diff --git a/sbin/natd/natd.c b/sbin/natd/natd.c index 5852135..5dab03e 100644 --- a/sbin/natd/natd.c +++ b/sbin/natd/natd.c @@ -9,7 +9,7 @@ * * Ari Suutari * - * $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: -- cgit v1.1