Re: [PATCH 2/2 master] Support prefix length in kickstart network --ipv6 option.

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

 



On 10/27/11 10:20, Radek Vykydal wrote:
e.g. network --ipv6=2001:aaaa::1/48
---
  loader/net.c |    8 +++++++-
  1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/loader/net.c b/loader/net.c
index fc4e271..b85772d 100644
--- a/loader/net.c
+++ b/loader/net.c
@@ -1635,6 +1635,8 @@ void setKickstartNetwork(struct loaderData_s * loaderData, int argc,
  #ifdef ENABLE_IPV6
      free(loaderData->ipv6);
      loaderData->ipv6 = NULL;
+    free(loaderData->ipv6prefix);
+    loaderData->ipv6prefix = NULL;
      loaderData->ipv6info_set = 0;
      free(loaderData->gateway6);
      loaderData->gateway6 = NULL;
@@ -1742,7 +1744,11 @@ void setKickstartNetwork(struct loaderData_s * loaderData, int argc,
              flags |= LOADER_FLAGS_NOIPV6;

          if (loaderData->ipv6) {
-            loaderData->ipv6info_set = 1;
+            if (split_ipv6addr_prefix_length(loaderData->ipv6,
+&(loaderData->ipv6),
+&(loaderData->ipv6prefix))) {
+                loaderData->ipv6info_set = 1;
+            }
          }
  #endif
      }

Ack.

--
David Cantrell <dcantrell@xxxxxxxxxx>
Supervisor, Installer Engineering Team
Red Hat, Inc. | Westford, MA | EST5EDT

_______________________________________________
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