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

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



ack

On Tue, 2011-01-18 at 13:54 +0100, Radek Vykydal wrote:
> 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
>  

-- 
Martin Gracik <mgracik redhat com>


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