am ab069235: Treat RTM_DELNEIGH as a transition to NUD_NONE

* commit 'ab06923576d4a49bc84c94badfcebcb7f6b103a8':
  Treat RTM_DELNEIGH as a transition to NUD_NONE
This commit is contained in:
Erik Kline
2015-06-01 07:37:42 +00:00
committed by Android Git Automerger

View File

@@ -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);
}