summaryrefslogtreecommitdiffstats
path: root/src/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2017-12-12 13:38:43 +0000
committerRoy Marples <roy@marples.name>2017-12-12 13:38:43 +0000
commitb48d4bdd2bef865c566ef645db26087737269b13 (patch)
treea14d8ba7f24e924a9d9ba2a54dbd90eabaed1c47 /src/dhcpcd.c
parente7a23bd916f229a45d433df1c92943b748acb164 (diff)
downloaddhcpcd-b48d4bdd2bef865c566ef645db26087737269b13.tar.xz
ipv6: disable kernel RA if interface is active
Diffstat (limited to 'src/dhcpcd.c')
-rw-r--r--src/dhcpcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcpcd.c b/src/dhcpcd.c
index 6ce077f7..d29cc508 100644
--- a/src/dhcpcd.c
+++ b/src/dhcpcd.c
@@ -438,7 +438,7 @@ configure_interface1(struct interface *ifp)
~(DHCPCD_IPV6RS | DHCPCD_DHCP6 | DHCPCD_WAITIP6);
/* We want to disable kernel interface RA as early as possible. */
- if (ifo->options & DHCPCD_IPV6RS &&
+ if (ifp->active == IF_ACTIVE_USER &&
!(ifp->ctx->options & DHCPCD_DUMPLEASE))
{
int ra_global, ra_iface;