]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
BSD systems auto gratuitous ARP when configured with an address, so no need to send...
authorRoy Marples <roy@marples.name>
Sat, 12 Jul 2008 17:38:42 +0000 (17:38 +0000)
committerRoy Marples <roy@marples.name>
Sat, 12 Jul 2008 17:38:42 +0000 (17:38 +0000)
client.c

index d71b7a87634a0f29bb28860a1f2d90985c35c9d2..85b6f3c6e90d6c4e9cb74fb733a4d5bc0cfa734f 100644 (file)
--- a/client.c
+++ b/client.c
 #define PROBE_MIN               1
 #define PROBE_MAX               2
 #define ANNOUNCE_WAIT           2
-#define ANNOUNCE_NUM            2
+/* BSD systems always do a grauitous ARP when assigning an address,
+ * so we can do one less announce. */
+#ifdef BSD
+# define ANNOUNCE_NUM           1
+#else
+# define ANNOUNCE_NUM           2
+#endif
 #define ANNOUNCE_INTERVAL       2
 #define MAX_CONFLICTS          10
 #define RATE_LIMIT_INTERVAL    60