Update prepareIpReachabilityMonitorAddressResolutionTest behavior.
This CL updates the prepareIpReachabilityMonitorAddressResolutionTest
behavior by responding to the NS during address resolution, which makes
the neighbor reachable. After that, send another gratuitous NA for the
target neighbor but with a different MAC address, which will override
the neighbor entry on the tap interface and make NUD state mahcine
transit from REACHABLE to STALE, then sending another UDP packet to the
target neigbhor will force the state machine transit from STALBE to
DELAY, after DELAY_FIRST_PROBE_TIME the tap interface start probing
again. The default DELAY_FIRST_PROBE_TIME is 5s, we use 2s in the test
code to speed up.
Bug: 382194967
Test: atest NetworkStackRootTests
Test: atest NetworkStackIntegrationTests
Change-Id: I8bd114365f32c52b044529693bf2de013e3170c9
1 file changed