[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b6c121f1-c585-6fa4-8dc9-8847ea5ee20c@gmail.com>
Date: Fri, 6 Oct 2017 12:18:44 -0600
From: David Ahern <dsahern@...il.com>
To: Nicolas Dichtel <nicolas.dichtel@...nd.com>, davem@...emloft.net
Cc: netdev@...r.kernel.org, Oliver Hartkopp <oliver@...tkopp.net>,
Stephen Hemminger <stephen@...workplumber.org>
Subject: Re: [PATCH net] net: enable interface alias removal via rtnl
On 10/5/17 4:19 AM, Nicolas Dichtel wrote:
> IFLA_IFALIAS is defined as NLA_STRING. It means that the minimal length of
> the attribute is 1 ("\0"). However, to remove an alias, the attribute
> length must be 0 (see dev_set_alias()).
why not add a check in dev_set_alias that if len is 1 and the 1
character is '\0' it means remove the alias?
>
> Let's define the type to NLA_BINARY, so that the alias can be removed.
that changes the uapi
Powered by blists - more mailing lists