FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 10-27-2011, 02:20 PM
Radek Vykydal
 
Default Support prefix length in kickstart network --ipv6 option.

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
}
--
1.7.4

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

Thread Tools




All times are GMT. The time now is 07:25 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org