From: Tom Yan Date: Wed, 25 May 2016 12:04:01 +0000 (+0800) Subject: networkd: set IFLA_INET6_ADDR_GEN_MODE as per stable_secret X-Git-Tag: v231.3~122 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=52e9e5b0b5c34eb60ca1d935a640fd791a1e4e3a 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. --- diff --git a/src/basic/missing.h b/src/basic/missing.h index 984a4c0ed..236ac3632 100644 --- a/src/basic/missing.h +++ b/src/basic/missing.h @@ -570,6 +570,7 @@ struct btrfs_ioctl_quota_ctl_args { #define IN6_ADDR_GEN_MODE_EUI64 0 #define IN6_ADDR_GEN_MODE_NONE 1 +#define IN6_ADDR_GEN_MODE_STABLE_PRIVACY 2 #endif #if !HAVE_DECL_IFLA_MACVLAN_FLAGS