chiark / gitweb /
networkd: set IFLA_INET6_ADDR_GEN_MODE as per stable_secret
authorTom Yan <tom.ty89@gmail.com>
Wed, 25 May 2016 12:04:01 +0000 (20:04 +0800)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:58 +0000 (10:12 +0200)
commit52e9e5b0b5c34eb60ca1d935a640fd791a1e4e3a
treeb9bf7904bde9e044beb66f83af616661dce04859
parentdd43046853b5c272b73374e5f34892e762206277
networkd: set IFLA_INET6_ADDR_GEN_MODE as per stable_secret

Although networkd has option (LinkLocalAddressing=) to toggle IPv6LL autoconfiguration, when it is enabled, the address is autoconfigured by the kernel, but not networkd.

Therefore, we do not statically set IFLA_INET6_ADDR_GEN_MODE to IN6_ADDR_GEN_MODE_EUI64, but dynamically depending on whether stable_secret is set, just as what the kernel does by default.

Note that this does NOT affect the global addresses configured by networkd.
src/basic/missing.h