[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGCdqXHpQfkXHFjX8K-ptv=CxrpS2htJgWKzJTn=n+CDV6GpqA@mail.gmail.com>
Date: Mon, 28 Oct 2013 09:56:18 -0400
From: Vladislav Yasevich <vyasevich@...il.com>
To: Jiri Pirko <jiri@...nulli.us>,
Vladislav Yasevich <vyasevich@...il.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
David Miller <davem@...emloft.net>,
Alexey Kuznetsov <kuznet@....inr.ac.ru>, jmorris@...ei.org,
yoshfuji@...ux-ipv6.org, Patrick McHardy <kaber@...sh.net>,
thaller@...hat.com, Stephen Hemminger <stephen@...workplumber.org>
Subject: Re: [patch net-next] ipv6: allow userspace to create address with
IFLA_F_TEMPORARY flag
On Sun, Oct 27, 2013 at 12:48 PM, Hannes Frederic Sowa
<hannes@...essinduktion.org> wrote:
> Hi Jiri!
>
> On Sun, Oct 27, 2013 at 02:29:41PM +0100, Jiri Pirko wrote:
>> The idea is to provide possibility to do address configuration not in
>> kernel but rather in userspace (as it is done for example in NetworkManager)
>>
>> Maybe I'm missing something, but why is it problem to have the
>> possibility to set lifetime even for temporary prefix?
>
> There is no problem setting the lifetime for a temporary prefix (in
> contrary, it needs one) but the code paths designed for IFA_F_TEMPORARY
> may not fiddle with it. This needs to be checked.
>
> In this constellation addrconf_verify does not refresh the privacy
> address when its preferred lifetime is expired, if you create the
> address by only passing IFA_F_TEMPORARY to rtm_newaddr (as Vlad pointed
> out). E.g. NetworkManager has to take care about that, then.
>
> A temporary address is also bound to a non-privacy public address so
> it's lifetime is determined by its lifetime (e.g. if you switch the
> network and don't receive on-link information for that prefix any
> more). NetworkManager would have to take care about that, too. It is
> just a question of what NetworkManager wants to handle itself or lets
> the kernel handle for it.
>
Exactly. If we want to re-use the as much of the kernel implementation as
possible, it might be nice to also add a regen notification in case there
is no public address. This way, Network Manger (or another application)
can do the re-generation if need be for these user configured temporary
addresses.
-vlad
> Greetings,
>
> Hannes
>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists