summaryrefslogtreecommitdiff
path: root/src/basic/missing.h
diff options
context:
space:
mode:
authorTom Yan <tom.ty89@gmail.com>2016-05-25 20:04:01 +0800
committerTom Yan <tom.ty89@gmail.com>2016-05-25 20:04:01 +0800
commitfbc38f230bcc296772f53898fb79cda7075025b8 (patch)
treec7c58252f67d972578fc6ebf8d7975f5a572cb92 /src/basic/missing.h
parent15fec93be37f12ef6c36a3e8f7dbb1984e1bcfe7 (diff)
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.
Diffstat (limited to 'src/basic/missing.h')
-rw-r--r--src/basic/missing.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/missing.h b/src/basic/missing.h
index 651e414395..9b4be5e3d0 100644
--- a/src/basic/missing.h
+++ b/src/basic/missing.h
@@ -565,6 +565,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