Update prepareIpReachabilityMonitorIpv4AddressResolutionTest
This CL updates prepareIpReachabilityMonitorIpv4AddressResolutionTest
behavior by responding to the ARP probe for the default gateway during
address resolution, which makes the neighbor as reachable. After that,
send a broadcast gratuitous ARP with a different mac address, the tap
interface will change the default gateway neighbor state from REACHABLE
to STALE, and then sending another UDP packet to default gateway will
force the state transit from STALE to DELAY, given the test code intends
not to respond to this UDP packet, after DELAY_FIRST_PROBE_TIME the
state will transit from DELAY to PROBE and start sending ARP probes
again, test case may or may not respond to the probe, depending on
whether a NUD failure is expected then.
Bug: 382194967
Test: atest NetworkStackRootTests
Test: atest NetworkStackIntegrationTests
Change-Id: I95c5711d8c535999b68b3955716567b43313a578
1 file changed