From: Roy Marples Date: Wed, 2 Jul 2014 08:23:28 +0000 (+0000) Subject: Add a comment to describe why we deny the ability to assign prefixes X-Git-Tag: v6.4.1~40 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4571e3f87a0f086c621842670a95f5f5078bd22e;p=thirdparty%2Fdhcpcd.git Add a comment to describe why we deny the ability to assign prefixes to the requesting interface [ac7063e671]. --- diff --git a/if-options.c b/if-options.c index a2345c9d..dc39f0a7 100644 --- a/if-options.c +++ b/if-options.c @@ -1322,6 +1322,13 @@ parse_option(struct dhcpcd_ctx *ctx, const char *ifname, struct if_options *ifo, np = strchr(p, '/'); if (np) *np++ = '\0'; + /* + * RFC3633 12.1 + * the requesting router MUST NOT assign any delegated + * prefixes or subnets from the delegated prefix(es) to + * the link through which it received the DHCP message + * from the delegating router. + */ if (strcmp(ifname, p) == 0) { syslog(LOG_ERR, "%s: cannot assign IA_PD to itself",