shill: expand dbus constants for DHCPv6
This allows multiple DHCPv6 addresses/prefixes and preferred lease times to be
exposed over DBus from shill. This information is necessary to correctly assign
IPv6 addresses in some cases.
BUG=b:26778228
TEST=shill unit test
Change-Id: I179dc5fd02699f07598e6c7603f45d5d9ebdde52
Reviewed-on: https://chromium-review.googlesource.com/333963
Commit-Ready: Timothy Jennison <tjennison@google.com>
Tested-by: Timothy Jennison <tjennison@google.com>
Reviewed-by: Paul Stewart <pstew@chromium.org>
diff --git a/dbus/shill/dbus-constants.h b/dbus/shill/dbus-constants.h
index 6d18e22..f672e16 100644
--- a/dbus/shill/dbus-constants.h
+++ b/dbus/shill/dbus-constants.h
@@ -402,9 +402,21 @@
const char kDomainNameProperty[] = "DomainName";
const char kAcceptedHostnameProperty[] = "AcceptedHostname";
const char kNameServersProperty[] = "NameServers";
+const char kDhcpv6AddressesProperty[] = "Dhcpv6Addresses";
+const char kDhcpv6DelegatedPrefixesProperty[] = "Dhcpv6DelegatedPrefixes";
+const char kLeaseDurationSecondsProperty[] = "LeaseDurationSeconds";
+
+// These constants are deprecated in favor of kDhcpv6DelegatedPrefixesProperty.
+// TODO(tjennison): Remove when shill no longer uses them b/26778228
const char kDelegatedPrefixProperty[] = "DelegatedPrefix";
const char kDelegatedPrefixLengthProperty[] = "DelegatedPrefixLength";
-const char kLeaseDurationSecondsProperty[] = "LeaseDurationSeconds";
+
+// IPConfig DHCPv6 address/prefix property names.
+const char kDhcpv6AddressProperty[] = "Address";
+const char kDhcpv6LengthProperty[] = "Length";
+const char kDhcpv6LeaseDurationSecondsProperty[] = "LeaseDurationSeconds";
+const char kDhcpv6PreferredLeaseDurationSecondsProperty[] =
+ "PreferredLeaseDurationSeconds";
// IPConfig type options.
const char kTypeIPv4[] = "ipv4";