summaryrefslogtreecommitdiffstats
path: root/arp.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-11-09 16:55:00 +0000
committerRoy Marples <roy@marples.name>2007-11-09 16:55:00 +0000
commite669863c75ef3865986aacb17581ca03a6018946 (patch)
tree65d69bddea0570661cf5c61fe2b4972a8a4decf5 /arp.c
parentb0e24b8d2184d574f385896537485a8a6a317687 (diff)
downloaddhcpcd-e669863c75ef3865986aacb17581ca03a6018946.tar.xz
Don't spam the log as much when constantly using IPV4LL addresses.
Diffstat (limited to 'arp.c')
-rw-r--r--arp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arp.c b/arp.c
index b797b655..05541856 100644
--- a/arp.c
+++ b/arp.c
@@ -100,8 +100,10 @@ int arp_claim (interface_t *iface, struct in_addr address)
return (0);
}
- logger (LOG_INFO, "checking %s is available on attached networks",
- inet_ntoa (address));
+ if (! IN_LINKLOCAL (ntohl (iface->previous_address.s_addr)) &&
+ ! IN_LINKLOCAL (ntohl (address.s_addr)))
+ logger (LOG_INFO, "checking %s is available on attached networks",
+ inet_ntoa (address));
if (! open_socket (iface, true))
return (-1);