]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
DragonFly needs to ingore RTM_DELADDR as well.
authorRoy Marples <roy@marples.name>
Tue, 6 Sep 2016 12:05:55 +0000 (12:05 +0000)
committerRoy Marples <roy@marples.name>
Tue, 6 Sep 2016 12:05:55 +0000 (12:05 +0000)
if-bsd.c

index 7322bae09f09af64eea1f4084139b3ee3281dbd3..f2cee0e7e892d66514cac7ab6d736e4fa48898e7 100644 (file)
--- 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.