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