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 894f181c89 Use NsdServiceInfo ifIndex in MdnsDiscoveryManager
NsdServiceInfo may contain an interface index if it was obtained from a
previous discovery callback which found a service on an interface that
does not belong to any Network.

In that case, subsequent resolve or registerServiceInfoCallback queries
using that NsdServiceInfo should only be done on the matching interface.
Apps may otherwise receive replies from other networks, with different
interface addresses.

As a simple fix, still request sockets from all interfaces in that case,
but only create the MdnsServiceTypeClients on matching sockets.

The sockets are created / cleaned up based on the lifecycle of the
requests, which does not change.

Fixes: 332262554
Test: atest
Change-Id: I2bbb498d4a0d37725f019a4cf5e367fef76fa0e8
2024-04-03 12:58:51 +09:00
..
connectivity Use NsdServiceInfo ifIndex in MdnsDiscoveryManager 2024-04-03 12:58:51 +09:00
connectivityservice Merge "Add a flag to disable the background firewall chain" into main 2024-04-02 05:47:56 +00:00
ethernet Allow HW address retrieval from EthernetNetworkFactory 2024-04-01 13:45:19 -07:00
net Merge "Changes to support satellite stats appear as TYPE_MOBILE" into main 2024-04-01 14:33:37 +00:00
BpfNetMapsTest.java Merge changes Ie1a36c3c,Id727cf7b,Ifba198d9 into main 2023-11-07 19:32:51 +00:00
ConnectivityServiceTest.java Merge "Add a flag to disable the background firewall chain" into main 2024-04-02 05:47:56 +00:00
IpSecServiceParameterizedTest.java Reland "Support getting transform state in IpSecService" 2023-12-12 22:19:55 +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
IpSecXfrmControllerTest.java [XFRM_MSG_NEWSA] Support polling SA state with netlink message 2023-12-11 18:43:34 +00:00
IpSecXfrmControllerTestHex.java [XFRM_MSG_NEWSA] Support polling SA state with netlink message 2023-12-11 18:43:34 +00: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 Use NsdServiceInfo ifIndex in MdnsDiscoveryManager 2024-04-03 12:58:51 +09:00