commit | 06ee6d27852bcbd5b66e2eb3c51fe8ccf2be7d20 | [log] [tgz] |
---|---|---|
author | Xiao Ma <xiaom@google.com> | Tue Mar 09 02:37:22 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Mar 09 02:37:22 2021 +0000 |
tree | 7393701376a510fb240af7daa14de9ffad645901 | |
parent | 8c06b0621b0c2370d139f73c7372f8ca3248b488 [diff] | |
parent | a7c245d1ceda885fddda7baa65355e3b974a02d7 [diff] |
Merge "Add bit mask constants for the flags used in the ND packet." am: 98e9e80694 am: 41629888ac Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/1619359 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I3810dc401b1c9832177631a5a333c7da3a59d7ad
diff --git a/staticlibs/framework/com/android/net/module/util/NetworkStackConstants.java b/staticlibs/framework/com/android/net/module/util/NetworkStackConstants.java index 5f62186..499297c 100644 --- a/staticlibs/framework/com/android/net/module/util/NetworkStackConstants.java +++ b/staticlibs/framework/com/android/net/module/util/NetworkStackConstants.java
@@ -148,9 +148,18 @@ 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. *