Commit Graph

10 Commits

Author SHA1 Message Date
Alex Buynytskyy
57bd2e41e9 UpsideDownCake is now 34
Ignore-AOSP-First: UpsideDownCake Finalization
Bug: 275409981
Test: build
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8bc31011a242dddb401273b5b6505b49b649ae67)
Merged-In: Ic36cad45118f0220e44279a8b6ac89d22c3319d3
Change-Id: Ic36cad45118f0220e44279a8b6ac89d22c3319d3
2023-08-17 04:07:50 +00:00
Ken Chen
da7a00d147 Adds setNetworkAllowlist and freeze AIDL to v13
Add this interface so that CS can tell netd the network is allowed for
the given UID ranges.

Freeze AIDL to v13.

Test: netd_integration_test
Change-Id: I00c45a663dc917fc0ba4da5a99828edad1562d8c
2022-12-23 09:47:29 +00:00
Yan Yan
111118096a Add XFRM_MIGRATE support and freeze INetd v12.
This commit updates netd_aidl_interface to support
migrating IPsec tunnel mode SA to different source
and destination addresses.

server/aidl_api/netd_aidl_interface/12/ are generated
by "m netd_aidl_interface-freeze-api"

Bug: 169170985
Test: atest netd_integration_test (new tests)
Change-Id: I89b54272c1528f12e6351819e0efe666af7a2946
2022-12-20 01:10:00 +00:00
Chalard Jean
8a00b8cf7c Add a physical local native network type.
There are no local networks yet, but they will come in
followup patches.

Test: netd_integration_test
Bug: 64955351
Change-Id: Ic82cf2390f52024e44e03b264b55c9843b932b71
2022-12-14 19:33:09 +09:00
Lorenzo Colitti
747ba67de6 Add an int constant for CLAT_MARK and freeze INetd v10.
Test: m
Bug: 235778483
Change-Id: I45a0bd6be39022a913bc6cff8216df0b6559cd4b
2022-06-15 23:42:29 +09:00
Hungming Chen
ed1292644e Freeze netd_aidl_interface V9
Deprecate APIs which were moved the implementation to mainline module.
- clatdStart (since T)
- clatdStop (since T)
- tetherOffloadRuleAdd (since S)
- tetherOffloadRuleRemove (since S)
- tetherOffloadGetStats (since S)
- tetherOffloadSetInterfaceQuota (since S)
- tetherOffloadGetAndClearStats (since S)

Bug: 212345928
Test: cd system/netd; atest
Change-Id: I7916512c7174a7b50833036bc89df37a266ca67e
2022-04-28 15:03:18 +08:00
paulhu
973f6f8d59 Freeze Mdns AIDL interface to V1
- Also add mdns_aidl_interface-lateststable-java lib for
  Connectivity module usage.

Bug: 209894875
Test: m mdns_aidl_interface-freeze-api
Change-Id: I58364dcf6d0377fbac7533eb95d2aacddd120092
2022-04-04 14:15:27 +00:00
paulhu
483b356965 Add MDNS aidl
- Add MDNS aidl that NsdService can communicate with mdns service
  via binder call instead of using ndc.
- Add mdns_aidl_interface to separate the mdns aidl from
  netd_aidl_interface.

Bug: 209894875
Test: atest FrameworksNetTests CtsNetTestCases
Change-Id: I7bcbd6146269bdd9ac973d651a676bd9d126ae2d
2022-04-03 16:04:05 +00:00
Chiachang Wang
3faa0a0911 Add excludeLocalRoutes in NativeNetworkConfig
Add a extra field in NativeNetworkConfig to allow CS to notify
netd to exclude the local traffic from the VPN network. Also
freeze netd_aidl_interface as v8 and update the corresponding
configuration.

diff -U10 -ru -N common/netd/aidl_api/netd_aidl_interface/7/android/net/NativeNetworkConfig.aidl common/netd/aidl_api/netd_aidl_interface/8/android/net/NativeNetworkConfig.aidl

--- common/netd/aidl_api/netd_aidl_interface/7/android/net/NativeNetworkConfig.aidl	2021-10-29 14:52:13.069757396 +0800
+++ common/netd/aidl_api/netd_aidl_interface/8/android/net/NativeNetworkConfig.aidl	2022-01-11 21:35:55.088966333 +0800
@@ -33,11 +33,12 @@

 package android.net;
 /* @hide */
 @JavaDerive(equals=true, toString=true) @JavaOnlyImmutable
 parcelable NativeNetworkConfig {
   int netId;
   android.net.NativeNetworkType networkType = android.net.NativeNetworkType.PHYSICAL;
   int permission;
   boolean secure;
   android.net.NativeVpnType vpnType = android.net.NativeVpnType.PLATFORM;
+  boolean excludeLocalRoutes = false;
 }
diff -U10 -ru -N common/netd/aidl_api/netd_aidl_interface/7/.hash common/netd/aidl_api/netd_aidl_interface/8/.hash
--- common/netd/aidl_api/netd_aidl_interface/7/.hash	2021-10-29 14:52:13.069757396 +0800
+++ common/netd/aidl_api/netd_aidl_interface/8/.hash	2022-01-11 21:35:55.084966375 +0800
@@ -1 +1 @@
-850353de5d19a0dd718f8fd20791f0532e6a34c7
+e8cf8586fc5da9063818d8775e9a21c4b0addb5b

Bug: 184750836
Test: atest FrameworksNetTests
Change-Id: Icadca719aaba678b06f617c581e3c80a22248f26
2022-01-12 02:56:46 +00:00
markchien
38c3248623 Move netd AIDL to frameworks/lib/net
Clean move system/netd/server/aidl_api/ and
system/netd/server/binder/

$ diff -qr frameworks/libs/net/common/binder/netd/aidl_api/ system/netd/server/aidl_api/
$ diff -qr frameworks/libs/net/common/binder/netd/src/ system/netd/server/binder/
Only in system/netd/server/binder/: com

Bug: 201488997
Test: atest netd_integration_test
      atest netd_unit_test
Ignore-AOSP-First: the netd change(same topic) would not automerger from
aosp.
No-Typo-Check: this is a simple code move with no other changes.
BYPASS_INCLUSIVE_LANGUAGE_REASON=this is a simple code move with no other
changes and these files are frozen anyway

Change-Id: Id5bb63794aff4025355c587b372c3ff5b1054da6
Merged-In: Id5bb63794aff4025355c587b372c3ff5b1054da6
2021-10-07 14:43:03 +08:00