From: Roy Marples Date: Mon, 7 Jul 2014 10:01:24 +0000 (+0000) Subject: There are no pd's in the config if we're not dealing with them. X-Git-Tag: v6.4.1~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ab234549b19f9c5b4aad1fc1add66c36ab2e4469;p=thirdparty%2Fdhcpcd.git There are no pd's in the config if we're not dealing with them. --- diff --git a/dhcp6.c b/dhcp6.c index 6c431cfd..1095bbe9 100644 --- a/dhcp6.c +++ b/dhcp6.c @@ -1318,6 +1318,9 @@ dhcp6_hasprefixdelegation(struct interface *ifp) { size_t i; + if (ifp->options->options & DHCPCD_NOPFXDLG) + return 0; + for (i = 0; i < ifp->options->ia_len; i++) { if (ifp->options->ia[i].ia_type == D6_OPTION_IA_PD) return 1;