summaryrefslogtreecommitdiff
path: root/server/InterfaceControllerTest.cpp
diff options
context:
space:
mode:
authorKen Chen <cken@google.com>2021-05-23 14:56:43 +0800
committerKen Chen <cken@google.com>2021-07-01 19:03:38 +0800
commitd9aa98aaad690d89cc9784fa7b578bcd7b0446eb (patch)
tree3b439f18efe352c24e8112b07e037298fe6bc793 /server/InterfaceControllerTest.cpp
parent2d4975f0c055ed9ee6ef9050c03fb19214d648b5 (diff)
Support subsidiary priority on UID ranges
Network preference per-profile and OEM network preferences can't be set at the same time, because it is unclear what should happen if both preferences are active for one given UID. Therefore, it needs a parameter for ConnectivityService to specify which preference is prior to others. In this commit: 1. Adds a pair of methods with parcelable parameter, which currently includes netId, UID range array and subsidiary priority. 2. The subsidiary priority will be used to adjust the original IP rule priority. UID ranges can applies to different network with different subsidiary priority. But a single UID should not apply to multiple networks with the same subsidiary priority. 3. The possible value of subsidiary priority for physical and unreachable networks is 0-999. 0 is the highest priority. 0 is also the default value. Virtual network supports only the default value. 4. Netd and its tests reference to latest AIDL version (unstable). Bug: 182460808 Test: m; flash; cd system/netd/; atest Test: atest FrameworksNetTests Test: atest HostsideVpnTests Original-Change: https://android-review.googlesource.com/1714116 Merged-In: I94e8830d0a21ffcca17757fe4783a4be9438c8b4 Change-Id: I94e8830d0a21ffcca17757fe4783a4be9438c8b4
Diffstat (limited to 'server/InterfaceControllerTest.cpp')
0 files changed, 0 insertions, 0 deletions