From: Daniel Borkmann <daniel@iogearbox.net>
To: "Robin H. Johnson" <robbat2@gentoo.org>
Cc: netdev@vger.kernel.org, hannes@stressinduktion.org
Subject: Re: ip-token: unable to remove a token & multi-token handling & concurrent use w/ EUI64/privacy
Date: Tue, 22 Mar 2016 18:03:24 +0100 [thread overview]
Message-ID: <56F17ADC.9080806@iogearbox.net> (raw)
In-Reply-To: <robbat2-20160319T175636-156562343Z@orbis-terrarum.net>
Hi Robin,
On 03/19/2016 07:53 PM, Robin H. Johnson wrote:
[...]
> Playing around with IPv6 tokens, I ran into a problem:
> Once you have a token set on an interface, it's impossible to remove it!
>
> # ip token set :: dev eth0
> RTNETLINK answers: Invalid argument
I'll have a look into a fix, I think this was intentional, but I currently
fail to recall a reason why (should have put a note into the commit log). ;)
The draft is pretty terse in any case, it seems as we only invalidate other
tokenized addresses, it should be okay to just remove it.
> This is a side-effect of rejecting ipv6_addr_any in inet6_set_iftoken.
>
> While this gets fixed, I have two related feature requests for this:
> - Please make it possible to configure multiple tokens on an interface:
> Use case: Deploying local services on well-known addresses inside a
> network without explicit prefix configuration.
> - Adding a token causes other address generation methods to be disabled,
> this is problematic if you wish to prefer privacy addresses for
> outbound connections.
>
> Design suggestion:
> Convert from using a single token to using a list of tokens, with an
> explicit default IPv6-any-addr (::) in the list, to represent that
> other address generation should ALSO take place (EUI64/privacy).
> Deletion of the any-addr from the list should disable EUI64/privacy
> addresses.
Seems you already have some patches, please feel free to send them. ;)
Thanks for the feedback!
Daniel
prev parent reply other threads:[~2016-03-22 17:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-19 18:53 ip-token: unable to remove a token & multi-token handling & concurrent use w/ EUI64/privacy Robin H. Johnson
2016-03-22 17:03 ` Daniel Borkmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56F17ADC.9080806@iogearbox.net \
--to=daniel@iogearbox.net \
--cc=hannes@stressinduktion.org \
--cc=netdev@vger.kernel.org \
--cc=robbat2@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox