Fix byte-order bug in printf() statement.

This commit is contained in:
mycroft 1994-07-27 12:36:09 +00:00
parent 14fe202dc4
commit f21c4cc68a
2 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_arp.c,v 1.17 1994/07/24 02:41:27 cgd Exp $ */
/* $NetBSD: if_arp.c,v 1.18 1994/07/27 12:36:09 mycroft Exp $ */
/*
* Copyright (c) 1982, 1986, 1988, 1993
@ -467,7 +467,7 @@ in_arpinput(m)
}
if (isaddr.s_addr == myaddr.s_addr) {
log(LOG_ERR,
"duplicate IP address %x!! sent from ethernet address: %s\n",
"duplicate IP address %08x sent from ethernet address %s\n",
ntohl(isaddr.s_addr), ether_sprintf(ea->arp_sha));
itaddr = myaddr;
goto reply;
@ -476,8 +476,8 @@ in_arpinput(m)
if (la && (rt = la->la_rt) && (sdl = SDL(rt->rt_gateway))) {
if (sdl->sdl_alen &&
bcmp((caddr_t)ea->arp_sha, LLADDR(sdl), sdl->sdl_alen))
log(LOG_INFO, "arp info overwritten for %x by %s\n",
isaddr.s_addr, ether_sprintf(ea->arp_sha));
log(LOG_INFO, "arp info overwritten for %08x by %s\n",
ntohl(isaddr.s_addr), ether_sprintf(ea->arp_sha));
bcopy((caddr_t)ea->arp_sha, LLADDR(sdl),
sdl->sdl_alen = sizeof(ea->arp_sha));
if (rt->rt_expire)

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ether.c,v 1.17 1994/07/24 02:41:27 cgd Exp $ */
/* $NetBSD: if_ether.c,v 1.18 1994/07/27 12:36:09 mycroft Exp $ */
/*
* Copyright (c) 1982, 1986, 1988, 1993
@ -467,7 +467,7 @@ in_arpinput(m)
}
if (isaddr.s_addr == myaddr.s_addr) {
log(LOG_ERR,
"duplicate IP address %x!! sent from ethernet address: %s\n",
"duplicate IP address %08x sent from ethernet address %s\n",
ntohl(isaddr.s_addr), ether_sprintf(ea->arp_sha));
itaddr = myaddr;
goto reply;
@ -476,8 +476,8 @@ in_arpinput(m)
if (la && (rt = la->la_rt) && (sdl = SDL(rt->rt_gateway))) {
if (sdl->sdl_alen &&
bcmp((caddr_t)ea->arp_sha, LLADDR(sdl), sdl->sdl_alen))
log(LOG_INFO, "arp info overwritten for %x by %s\n",
isaddr.s_addr, ether_sprintf(ea->arp_sha));
log(LOG_INFO, "arp info overwritten for %08x by %s\n",
ntohl(isaddr.s_addr), ether_sprintf(ea->arp_sha));
bcopy((caddr_t)ea->arp_sha, LLADDR(sdl),
sdl->sdl_alen = sizeof(ea->arp_sha));
if (rt->rt_expire)