android_packages_modules_Co.../tests/unit/java/com/android/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Remi NGUYEN VAN 98a44bcb29 Fix cache flush always causing response change
When the cache flush bit is set on host address records in a response,
known records are cleared and replaced with the contents of the packet.
However even if the response contains the same records as before, this
caused it to be marked as modified, and response modified callbacks are
sent for every incoming packet.

Instead, ensure that the response is only marked as modified if a
previously unknown address record is added, or if a previously known
address record is removed.

The issue wasn't found by the existing testDecodeWithNoChange test,
because it used a service record for testhost2 instead of testhost1, so
the address records were ignored.

Bug: 285997766
Bug: 285084489
Test: atest CtsNetTest FrameworksNetTests

Change-Id: Ic0f19adf5d9bde7cdab766e49cf677b319a2219b
2023-06-08 16:30:31 +09:00
..
connectivity Fix cache flush always causing response change 2023-06-08 16:30:31 +09:00
ethernet Connectivity Tests: join handler thread after calling quitSafely 2023-03-17 01:01:09 -07:00
net Fix template for test network needs fine location permission 2023-05-04 11:01:33 +08:00
BpfNetMapsTest.java Close sockets from ConnectivityService#setFirewallChainEnabled 2023-05-11 12:22:09 +09:00
ConnectivityServiceTest.java Merge "Fix a bug where the PAC proxy port is not set correctly." 2023-06-06 12:22:21 +00:00
IpSecServiceParameterizedTest.java Require IPSEC_TUNNEL_MIGRATION feature flag to migrate transforms 2022-12-21 23:12:48 +00:00
IpSecServiceRefcountedResourceTest.java Add some non-connectivity-module-test back to ConnectivityCoverageTests 2022-05-27 07:16:46 +00:00
IpSecServiceTest.java Experimental support for IPv6 UDP encap. 2023-02-08 15:05:07 +09:00
LegacyTypeTrackerTest.kt Build ethernet framework source into framework-connectivity-tiramisu 2022-03-14 14:06:35 +00:00
NetIdManagerTest.kt Address comments on aosp/1781202 2022-08-17 07:11:55 +00:00
NsdServiceTest.java Take the multicast lock on mDNS usage 2023-06-06 11:13:34 +09:00
VpnManagerServiceTest.java Update VpnManagerServiceTest to work with lockdown VPN main user changes. 2023-01-06 16:43:47 +00:00
VpnTestBase.java Test VPN app exclusion 2022-06-29 06:15:41 +00:00