diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/server/util/NetworkStackConstants.java | 13 |
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. |