summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2019-11-02 23:36:41 +0900
committerLorenzo Colitti <lorenzo@google.com>2019-11-04 03:03:44 +0900
commit82a3cf69c90dc22533d1c1f24ad02fc417a38913 (patch)
tree262b3cd0b55a242a82bbbbcba295355a3f5e6d80 /src
parentd851ea747f38191d17ba37919423892510d4f333 (diff)
Add a test for IPv6 provisioning and RDNSS.
Currently, IpClientIntegrationTest only tests IPv4-only connections. Add a test that uses an IPv6-only network. Bug: 66928272 Test: test-only change Change-Id: I7d788724411fa81ae560a933727c81aadb6d6ba4
Diffstat (limited to 'src')
-rw-r--r--src/com/android/server/util/NetworkStackConstants.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/com/android/server/util/NetworkStackConstants.java b/src/com/android/server/util/NetworkStackConstants.java
index 3174a9b..c011b6a 100644
--- a/src/com/android/server/util/NetworkStackConstants.java
+++ b/src/com/android/server/util/NetworkStackConstants.java
@@ -95,6 +95,7 @@ public final class NetworkStackConstants {
*/
public static final int IPV6_ADDR_LEN = 16;
public static final int IPV6_HEADER_LEN = 40;
+ public static final int IPV6_LEN_OFFSET = 4;
public static final int IPV6_PROTOCOL_OFFSET = 6;
public static final int IPV6_SRC_ADDR_OFFSET = 8;
public static final int IPV6_DST_ADDR_OFFSET = 24;
@@ -108,6 +109,7 @@ public final class NetworkStackConstants {
* - https://tools.ietf.org/html/rfc4861
*/
public static final int ICMPV6_HEADER_MIN_LEN = 4;
+ public static final int ICMPV6_CHECKSUM_OFFSET = 2;
public static final int ICMPV6_ECHO_REPLY_TYPE = 129;
public static final int ICMPV6_ECHO_REQUEST_TYPE = 128;
public static final int ICMPV6_ROUTER_SOLICITATION = 133;
@@ -116,9 +118,14 @@ public final class NetworkStackConstants {
public static final int ICMPV6_NEIGHBOR_ADVERTISEMENT = 136;
public static final int ICMPV6_ND_OPTION_MIN_LENGTH = 8;
public static final int ICMPV6_ND_OPTION_LENGTH_SCALING_FACTOR = 8;
- public static final int ICMPV6_ND_OPTION_SLLA = 1;
- public static final int ICMPV6_ND_OPTION_TLLA = 2;
- public static final int ICMPV6_ND_OPTION_MTU = 5;
+ public static final int ICMPV6_ND_OPTION_SLLA = 1;
+ public static final int ICMPV6_ND_OPTION_TLLA = 2;
+ public static final int ICMPV6_ND_OPTION_PIO = 3;
+ public static final int ICMPV6_ND_OPTION_MTU = 5;
+ public static final int ICMPV6_ND_OPTION_RDNSS = 25;
+
+
+ public static final int ICMPV6_RA_HEADER_LEN = 16;
/**
* UDP constants.