summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Kline <ek@google.com>2015-06-01 12:44:01 +0900
committerErik Kline <ek@google.com>2015-06-01 12:46:24 +0900
commitab06923576d4a49bc84c94badfcebcb7f6b103a8 (patch)
tree3ae9cca2e49081fc64c815226c6aa4e3434e1cf2
parent29932d13a90e02c3fce680e68de975a5d77ab9db (diff)
downloadframeworks_base-ab06923576d4a49bc84c94badfcebcb7f6b103a8.zip
frameworks_base-ab06923576d4a49bc84c94badfcebcb7f6b103a8.tar.gz
frameworks_base-ab06923576d4a49bc84c94badfcebcb7f6b103a8.tar.bz2
Treat RTM_DELNEIGH as a transition to NUD_NONE
RTM_DELNEIGHs can happen naturally during garbage collection of STALE entries, as well as when an interface is going down. All other transitions of interest at this time pass through FAILED. Bug: 18581716 Bug: 21531726 Change-Id: Ib2a731dd6ad6ece478df6950d4cc7752588328a4
-rw-r--r--core/java/android/net/IpReachabilityMonitor.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/java/android/net/IpReachabilityMonitor.java b/core/java/android/net/IpReachabilityMonitor.java
index 78d147d..3cfd8b2 100644
--- a/core/java/android/net/IpReachabilityMonitor.java
+++ b/core/java/android/net/IpReachabilityMonitor.java
@@ -443,14 +443,13 @@ public class IpReachabilityMonitor {
if (mIpWatchList.containsKey(destination)) {
final short value =
(msgType == NetlinkConstants.RTM_DELNEIGH)
- ? StructNdMsg.NUD_FAILED
+ ? StructNdMsg.NUD_NONE
: nudState;
mIpWatchList.put(destination, value);
}
}
- if ((msgType == NetlinkConstants.RTM_DELNEIGH) ||
- (nudState == StructNdMsg.NUD_FAILED)) {
+ if (nudState == StructNdMsg.NUD_FAILED) {
Log.w(TAG, "ALERT: " + eventMsg);
handleNeighborLost(eventMsg);
}