]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
There are no pd's in the config if we're not dealing with them.
authorRoy Marples <roy@marples.name>
Mon, 7 Jul 2014 10:01:24 +0000 (10:01 +0000)
committerRoy Marples <roy@marples.name>
Mon, 7 Jul 2014 10:01:24 +0000 (10:01 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index 6c431cfddd630e5e01f810de35ceee8dbd0eb936..1095bbe9ae9b7a85aa5ae46b0a3e1696b6320890 100644 (file)
--- 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;