From: Roy Marples Date: Sun, 14 Feb 2016 09:53:06 +0000 (+0000) Subject: For the time being, consider STATIC6 as not up X-Git-Tag: v6.10.2~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b3560152cff92dbc47e1fd934954178f8c99e54;p=thirdparty%2Fdhcpcd.git For the time being, consider STATIC6 as not up --- diff --git a/script.c b/script.c index 6909f187..4fab7916 100644 --- 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)