]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Add a comment to describe why we deny the ability to assign prefixes
authorRoy Marples <roy@marples.name>
Wed, 2 Jul 2014 08:23:28 +0000 (08:23 +0000)
committerRoy Marples <roy@marples.name>
Wed, 2 Jul 2014 08:23:28 +0000 (08:23 +0000)
to the requesting interface [ac7063e671].

if-options.c

index a2345c9d3ba32bbfcac673d0fb6052be884b0abe..dc39f0a7467a6c3f4f1806b6f7ad038dc6db4be7 100644 (file)
@@ -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",