[PATCH] net: ipv6: don't generate link-local address in any addr_gen_mode

Lorenzo Colitti lorenzo at google.com
Mon Sep 13 02:38:06 PDT 2021


On Mon, Sep 13, 2021 at 12:47 AM Mark Smith <markzzzsmith at gmail.com> wrote:
> This is all going in the wrong direction. Link-local addresses are not
> optional on an interface, all IPv6 enabled interfaces are required to
> have one:

The original patch did indeed disable the generation of the link-local
address, but that patch was rejected. It sounds like the right
approach here is to provide two new addressing modes:

IN6_ADDR_GEN_MODE_RANDOM_LL_TOKEN
IN6_ADDR_GEN_MODE_STABLE_PRIVACY_LL_TOKEN

which would form the link-local address from the token passed in via
IFLA_INET6_TOKEN, but would form non-link-local addresses (e.g.,
global addresses) via the specified means (either random or stable
privacy). I haven't looked at how to do that yet though.



More information about the Linux-mediatek mailing list