changeset 2579:e8cfd1740182 draft

There are no pd's in the config if we're not dealing with them.
author Roy Marples <roy@marples.name>
date Mon, 07 Jul 2014 10:01:24 +0000
parents cc2c75cedfe4
children 2f67f9e4d8cd
files dhcp6.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dhcp6.c	Mon Jul 07 09:36:17 2014 +0000
+++ b/dhcp6.c	Mon Jul 07 10:01:24 2014 +0000
@@ -1318,6 +1318,9 @@
 {
 	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;