Re: [PATCH] net: ipv6: don't generate link-local address in any addr_gen_mode
From: Lorenzo Colitti
Date: Mon Sep 13 2021 - 05:38:25 EST
On Mon, Sep 13, 2021 at 12:47 AM Mark Smith <markzzzsmith@xxxxxxxxx> 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.