diff options
| author | Roy Marples <roy@marples.name> | 2015-06-12 20:23:28 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2015-06-12 20:23:28 +0000 |
| commit | 389a250b2f84828d0668a93ec24f4b4138791829 (patch) | |
| tree | 87f7948f6dcf3a4a6ccf4e4d707d36291f623403 /ipv6nd.c | |
| parent | accc0bb8716dd3c381d706a95076bcc69a64a17c (diff) | |
| download | dhcpcd-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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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"); } } |
