TestNetworkService: add support to disable DAD on test interfaces
DscpPolicyTest does not have an IpClient, so it relies on assigning the LinkAddresses at interface creation. If DAD is enabled, the global address cannot be used immediately, so the test packet selects the wrong source address. There is no obvious way to fix this without disabling DAD as the TestableNetworkCallback receives the LinkProperties update before the address can be used. This functionality will also be useful in ethernet tests, which currently have to block for a long time. Test: atest DscpPolicyTest Bug: 235559605 Change-Id: Id7788df5e92ebd8eaf4619a23f44135ea4a2144e
Showing
- framework/src/android/net/ITestNetworkManager.aidl 2 additions, 1 deletionframework/src/android/net/ITestNetworkManager.aidl
- framework/src/android/net/TestNetworkManager.java 55 additions, 7 deletionsframework/src/android/net/TestNetworkManager.java
- service/src/com/android/server/TestNetworkService.java 9 additions, 1 deletionservice/src/com/android/server/TestNetworkService.java
Please register or sign in to comment