am 8ef5ac13: am ab069235: Treat RTM_DELNEIGH as a transition to NUD_NONE

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

View File

@@ -443,14 +443,13 @@ public class IpReachabilityMonitor {
if (mIpWatchList.containsKey(destination)) { if (mIpWatchList.containsKey(destination)) {
final short value = final short value =
(msgType == NetlinkConstants.RTM_DELNEIGH) (msgType == NetlinkConstants.RTM_DELNEIGH)
? StructNdMsg.NUD_FAILED ? StructNdMsg.NUD_NONE
: nudState; : nudState;
mIpWatchList.put(destination, value); mIpWatchList.put(destination, value);
} }
} }
if ((msgType == NetlinkConstants.RTM_DELNEIGH) || if (nudState == StructNdMsg.NUD_FAILED) {
(nudState == StructNdMsg.NUD_FAILED)) {
Log.w(TAG, "ALERT: " + eventMsg); Log.w(TAG, "ALERT: " + eventMsg);
handleNeighborLost(eventMsg); handleNeighborLost(eventMsg);
} }