summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Ma <xiaom@google.com>2023-02-14 12:10:18 +0900
committerXiao Ma <xiaom@google.com>2023-02-14 20:14:52 +0900
commit346ad4e7421ef0d1dd18f11bac72699831f78449 (patch)
treea5a55d8280c6119ce73f5c34b0212781ad53990e
parentaf2ed4d5792622c6cbefd5076079d6f6fa5a5c84 (diff)
downloadnet-346ad4e7421ef0d1dd18f11bac72699831f78449.tar.gz
Add DHCPv6 IA_PD and IA_PREFIX option constants.
Bug: 260934173 Test: m Change-Id: I2f6692f4915c937787f023d40924f17f61d4a44e
-rw-r--r--common/framework/com/android/net/module/util/NetworkStackConstants.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/framework/com/android/net/module/util/NetworkStackConstants.java b/common/framework/com/android/net/module/util/NetworkStackConstants.java
index 7b3943ce..1d88d6ef 100644
--- a/common/framework/com/android/net/module/util/NetworkStackConstants.java
+++ b/common/framework/com/android/net/module/util/NetworkStackConstants.java
@@ -214,11 +214,14 @@ public final class NetworkStackConstants {
*
* See also:
* - https://datatracker.ietf.org/doc/html/rfc8415
+ * - https://www.iana.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xhtml
*/
public static final int DHCP6_CLIENT_PORT = 546;
public static final int DHCP6_SERVER_PORT = 547;
public static final Inet6Address ALL_DHCP_RELAY_AGENTS_AND_SERVERS =
(Inet6Address) InetAddresses.parseNumericAddress("ff02::1:2");
+ public static final int DHCP6_OPTION_IA_PD = 25;
+ public static final int DHCP6_OPTION_IAPREFIX = 26;
/**
* IEEE802.11 standard constants.