[PATCH master] Enable support for static ipv6= cmdline option.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tested. We should have all the pieces needed to support this
already in loader.

---
 loader/loader.c |   19 +++----------------
 1 files changed, 3 insertions(+), 16 deletions(-)

diff --git a/loader/loader.c b/loader/loader.c
index a90f5c2..b4e6aaf 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -856,22 +856,9 @@ static void parseCmdLineIp(struct loaderData_s * loaderData, char *argv)
  */
 static void parseCmdLineIpv6(struct loaderData_s * loaderData, char *argv)
 {
-    /* right now we only accept ipv6= arguments equal to:
-     *     dhcp     DHCPv6 call
-     *     auto     RFC 2461 neighbor discovery
-     */
-    loaderData->ipv6 = NULL;
-
-    if (!strncasecmp(argv, "dhcp", 4)) {
-        loaderData->ipv6 = strdup("dhcp");
-    } else if (!strncasecmp(argv, "auto", 4)) {
-        loaderData->ipv6 = strdup("auto");
-    }
-
-    if (loaderData->ipv6 != NULL) {
-        loaderData->ipv6info_set = 1;
-        flags |= LOADER_FLAGS_IPV6_PARAM;
-    }
+    loaderData->ipv6 = strdup(argv);
+    loaderData->ipv6info_set = 1;
+    flags |= LOADER_FLAGS_IPV6_PARAM;
 }
 #endif
 
-- 
1.7.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux