diff options
author | Xiao Ma <xiaom@google.com> | 2021-03-09 01:10:44 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-03-09 01:10:44 +0000 |
commit | 98e9e80694639337aa91daa2091767aa9937d0d6 (patch) | |
tree | 8096b0308f920c9fc8623b60d6c2f0d3755d2783 /common | |
parent | b3a3042446c4218e7e8c912359f23d344e01f0e1 (diff) | |
parent | 4d60ef22b683f305842186fa436c1c3ef36adc06 (diff) | |
download | net-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.java | 11 |
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. * |