From: Roy Marples Date: Sat, 12 Jul 2008 17:38:42 +0000 (+0000) Subject: BSD systems auto gratuitous ARP when configured with an address, so no need to send... X-Git-Tag: v4.0.2~193 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddfae9f2bd771b3f457f803156ddfb382d905aa3;p=thirdparty%2Fdhcpcd.git BSD systems auto gratuitous ARP when configured with an address, so no need to send 2 announcements, just the one. --- diff --git a/client.c b/client.c index d71b7a87..85b6f3c6 100644 --- a/client.c +++ b/client.c @@ -98,7 +98,13 @@ #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