summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorXiao Ma <xiaom@google.com>2021-03-09 01:10:44 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-03-09 01:10:44 +0000
commit98e9e80694639337aa91daa2091767aa9937d0d6 (patch)
tree8096b0308f920c9fc8623b60d6c2f0d3755d2783 /common
parentb3a3042446c4218e7e8c912359f23d344e01f0e1 (diff)
parent4d60ef22b683f305842186fa436c1c3ef36adc06 (diff)
downloadnet-98e9e80694639337aa91daa2091767aa9937d0d6.tar.gz
Merge "Add bit mask constants for the flags used in the ND packet."
Diffstat (limited to 'common')
-rw-r--r--common/framework/com/android/net/module/util/NetworkStackConstants.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/common/framework/com/android/net/module/util/NetworkStackConstants.java b/common/framework/com/android/net/module/util/NetworkStackConstants.java
index 5f621863..499297c9 100644
--- a/common/framework/com/android/net/module/util/NetworkStackConstants.java
+++ b/common/framework/com/android/net/module/util/NetworkStackConstants.java
@@ -148,9 +148,18 @@ public final class NetworkStackConstants {
public static final int ICMPV6_ND_OPTION_RDNSS = 25;
public static final int ICMPV6_ND_OPTION_PREF64 = 38;
-
public static final int ICMPV6_RA_HEADER_LEN = 16;
+ public static final int NEIGHBOR_ADVERTISEMENT_FLAG_ROUTER = 1 << 31;
+ public static final int NEIGHBOR_ADVERTISEMENT_FLAG_SOLICITED = 1 << 30;
+ public static final int NEIGHBOR_ADVERTISEMENT_FLAG_OVERRIDE = 1 << 29;
+
+ public static final byte ROUTER_ADVERTISEMENT_FLAG_MANAGED_ADDRESS = (byte) (1 << 7);
+ public static final byte ROUTER_ADVERTISEMENT_FLAG_OTHER = (byte) (1 << 6);
+
+ public static final byte PIO_FLAG_ON_LINK = (byte) (1 << 7);
+ public static final byte PIO_FLAG_AUTONOMOUS = (byte) (1 << 6);
+
/**
* UDP constants.
*