From: Roy Marples Date: Tue, 6 Sep 2016 12:05:55 +0000 (+0000) Subject: DragonFly needs to ingore RTM_DELADDR as well. X-Git-Tag: v6.11.4~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91bdb2797fe3b997e0614d4417ea7c39850ee780;p=thirdparty%2Fdhcpcd.git DragonFly needs to ingore RTM_DELADDR as well. --- diff --git a/if-bsd.c b/if-bsd.c index 7322bae0..f2cee0e7 100644 --- a/if-bsd.c +++ b/if-bsd.c @@ -1449,7 +1449,7 @@ if_ifa(struct dhcpcd_ctx *ctx, const struct ifa_msghdr *ifam) bcast.s_addr = sin != NULL && sin->sin_family == AF_INET ? sin->sin_addr.s_addr : INADDR_ANY; -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) || defined(__DragonFly__) /* FreeBSD sends RTM_DELADDR for each assigned address * to an interface just brought down. * This is wrong, because the address still exists.