]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
For the time being, consider STATIC6 as not up
authorRoy Marples <roy@marples.name>
Sun, 14 Feb 2016 09:53:06 +0000 (09:53 +0000)
committerRoy Marples <roy@marples.name>
Sun, 14 Feb 2016 09:53:06 +0000 (09:53 +0000)
script.c

index 6909f187ae70ac4504f8d7a73892b73fe0813ef5..4fab7916b8a55395a732450e52f52bf8f9f36690 100644 (file)
--- a/script.c
+++ b/script.c
@@ -356,6 +356,14 @@ make_env(const struct interface *ifp, const char *reason, char ***argv)
        {
                env[9] = strdup("if_up=false");
                env[10] = strdup("if_down=false");
+#ifdef INET6
+       } else if (strcmp(reason, "STATIC6") == 0) {
+               /* For the time being, a static IPv6 address is does not qualify
+                * the interface to be up.
+                * Should we consider the presence of a static DNS server? */
+               env[9] = strdup("if_up=false");
+               env[10] = strdup("if_down=false");
+#endif
        } else if (1 == 2 /* appease ifdefs */
 #ifdef INET
            || (dhcp && state && state->new)