* commit '8ef5ac13abf3602c195ea972a9c5ce5626d1a6dd': Treat RTM_DELNEIGH as a transition to NUD_NONE
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user