summaryrefslogtreecommitdiff
path: root/common/netd
AgeCommit message (Collapse)Author
2022-06-16Add an int constant for CLAT_MARK and freeze INetd v10.Lorenzo Colitti
Test: m Bug: 235778483 Change-Id: I45a0bd6be39022a913bc6cff8216df0b6559cd4b (cherry picked from commit 80664c52df2cf24fa4332084586324fd4a93de81) Merged-In: I45a0bd6be39022a913bc6cff8216df0b6559cd4b
2022-06-16Freeze netd_aidl_interface V9Hungming Chen
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 (cherry picked from commit 7b29319fcfeed3f9423fd583da705bf35ed34126) Merged-In: I7916512c7174a7b50833036bc89df37a266ca67e
2022-06-02Add IPPrefix.contains()Chiachang
Add helper methods to check whether the specified prefix is entirely contained in this prefix, or the specified address is contained in this prefix. Bug: 184750836 Test: atest IPPrefixTest Change-Id: I838510b347ac5741c589ee8f3983111209155588 (cherry picked from commit abe2e7fab4702113df60511f4642a6277321eb20) Merged-In: I838510b347ac5741c589ee8f3983111209155588
2022-04-21Add wrappers for the latest stable version of netd_aidl_interface-V*-cppKen Chen
Currently, we need to update linked AILD interface in several places when we freeze a new interface version. Otherwise, it will have multiple versions of an AIDL lib and waste space/memory (b/220392885). To avoid manually update all AILD interface users every time, adds wrappers for the latest version of netd_aidl_interface-V*-cpp. The reason to use cc_default as a wrapper instead of cc_library is that it doesn't create an extra .so. Bug: 220392885 Test: TH Change-Id: I281b2e5f7d04fadfae0ede4db7565e9f222dbe95
2022-04-04Freeze Mdns AIDL interface to V1paulhu
- 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-03Add MDNS aidlpaulhu
- 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-01-20Move NetlinkListener relevant files to frameworks/libs/netWayne Ma
NetlinkListener is used by Netd, so move it to frameworks/libs/net and then it can be used by platform code and mainline module. Bug: 209935649 Test: m; flash; boot Change-Id: I4cf0e64eee1dda1e452d76af77642416c9729d42
2022-01-14Merge "[NETD-TC#12] Fix dependency on libtraffic_controller"Wayne Ma
2022-01-14[NETD-TC#12] Fix dependency on libtraffic_controllerWayne Ma
1. Add visibility for libtraffic_control 2. Add com.android.tethering into apex_available statement Bug: 202086915 Test: m; flash; boot Change-Id: I817e22c24dd205f09ef62a2a7ff85b2a970f6d3a
2022-01-12Add excludeLocalRoutes in NativeNetworkConfigChiachang Wang
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
2021-12-20Remove ambiguity when using error().code().Jiyong Park
A recent change in android::base::Result has changed the type of error().code() from int to Errno. The latter is a new type that provides a type-safe way of handling errno values. The new type supports conversion to and from int for compatibility reasons. However, that conversion has caused an ambiguity when int and Error are used at the same time in a ternary operator. The type of an expression "(cond) ? 0 : ret.error().code()" is ambiguous. It can be int because error().code() can be converted to an int. It can also be Error because 0 can be converted to Errno. To eliminate the ambiguity, add a static cast. Bug: 209929099 Test: m Change-Id: I0ad634310d9094868c29754f96c5c98e6180b738
2021-12-15Merge "Remove apex_available for bluetooth.updatable"Etienne Ruffieux
2021-12-15Remove apex_available for bluetooth.updatableRemi NGUYEN VAN
The build will pass without it, showing that it's not exercised today, and the bluetooth apex is being renamed anyway. Bug: 206614050 Test: m Change-Id: I71dac10159b799b9f23550d27424f19d077164cc
2021-12-08[NETD-TC#7] Move getIfaceNames() and getIfaceList() to libnetdutils.waynema
getIfaceNames() and getIfaceList() are used by Netd. Test: m; flash; boot Change-Id: Id95e2e7e83c07b2f420880feebdf12d4c477c958
2021-12-07[NETD-BPF#23] Make libnetdutils apex_available for tethering moduleKen Chen
libconn_for_netd.so in tethering module needs utilities in libnetdutils, e.g. Status class. Bug: 202086915 Test: m Change-Id: Idb7f11d146570972f2467b7faa624f41bd859062
2021-11-20[NETD-BPF#1] Move libnetdutils to framework/libs/net/...Ken Chen
libnetdutils is referenced by netd.c and TrafficController.cpp, which are going to be mainlined. Therefore, move libnetdutils to a common place where both mainline module and platform code (Netd) can refer to. Bug: 202086915 Test: build; flash; cd system/netd; atest No-Typo-Check: Clean code move with no other changes. BYPASS_INCLUSIVE_LANGUAGE_REASON=Clean code move with no other changes. Merged-In: I645bfe35f6543149c9a9f894cd4158d27a481abe Change-Id: I645bfe35f6543149c9a9f894cd4158d27a481abe
2021-10-07[LSC] Add LOCAL_LICENSE_KINDS to frameworks/libs/netBob Badour
Added SPDX-license-identifier-Apache-2.0 to: common/netd/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Change-Id: Ic163988eea096e967a8d04624772b2eff350026d
2021-10-07Move netd AIDL to frameworks/lib/netmarkchien
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