summaryrefslogtreecommitdiffstats
path: root/ipv6nd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2015-06-12 20:23:28 +0000
committerRoy Marples <roy@marples.name>2015-06-12 20:23:28 +0000
commit389a250b2f84828d0668a93ec24f4b4138791829 (patch)
tree87f7948f6dcf3a4a6ccf4e4d707d36291f623403 /ipv6nd.c
parentaccc0bb8716dd3c381d706a95076bcc69a64a17c (diff)
downloaddhcpcd-389a250b2f84828d0668a93ec24f4b4138791829.tar.xz
Add the DHCPCD_NODROP macro to simplify if we drop addresses or not.
Diffstat (limited to 'ipv6nd.c')
-rw-r--r--ipv6nd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ipv6nd.c b/ipv6nd.c
index fe368dbd..34960eb2 100644
--- a/ipv6nd.c
+++ b/ipv6nd.c
@@ -1483,9 +1483,7 @@ ipv6nd_drop(struct interface *ifp)
ipv6nd_drop_ra(rap);
}
ipv6_buildroutes(ifp->ctx);
- if ((ifp->options->options &
- (DHCPCD_EXITING | DHCPCD_PERSISTENT)) !=
- (DHCPCD_EXITING | DHCPCD_PERSISTENT))
+ if ((ifp->options->options & DHCPCD_NODROP) != DHCPCD_NODROP)
script_runreason(ifp, "ROUTERADVERT");
}
}