diff options
author | Ian Darwin <ian@cvs.openbsd.org> | 2002-03-27 17:13:48 +0000 |
---|---|---|
committer | Ian Darwin <ian@cvs.openbsd.org> | 2002-03-27 17:13:48 +0000 |
commit | d0d12731d1effad29d23f723d67ceb4f520e40ca (patch) | |
tree | f3c94c838ad5a371e29bdc9e14d90ba6b86a2b9f | |
parent | 2ab75e0819ad364a7bcba3a91c0a976a54487bb7 (diff) |
suppress "duplicate IP" message when booting machines with no initial IP.
-rw-r--r-- | sys/netinet/if_ether.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index 5057db4e630..5587ff0d68b 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ether.c,v 1.39 2002/03/14 03:16:11 millert Exp $ */ +/* $OpenBSD: if_ether.c,v 1.40 2002/03/27 17:13:47 ian Exp $ */ /* $NetBSD: if_ether.c,v 1.31 1996/05/11 12:59:58 mycroft Exp $ */ /* @@ -532,7 +532,7 @@ in_arpinput(m) inet_ntoa(isaddr)); goto out; } - if (isaddr.s_addr == myaddr.s_addr) { + if (myaddr.s_addr && isaddr.s_addr == myaddr.s_addr) { log(LOG_ERR, "duplicate IP address %s sent from ethernet address %s\n", inet_ntoa(isaddr), ether_sprintf(ea->arp_sha)); |