Mainline no longer supports Q.
These files were recently moved into p/m/C as part of a refactor.
Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I0f06ace921db6c79d63c0048bdb73d167ff606cf
There is a module that specifies libnetdutils/include from include_dirs
which is not recommended.
Using the cc_library_headers makes it easy to move
frameworks/libs/net to packages/modules/Connectivity.
Bug: 296014682
Test: m
Change-Id: Ia52ede9787009102ebf626fcb3b337511b0a809f
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
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
There are no local networks yet, but they will come in
followup patches.
Test: netd_integration_test
Bug: 64955351
Change-Id: Ic82cf2390f52024e44e03b264b55c9843b932b71
std::result_of is deprecated in C++17 and removed in C++20.
std::invoke_result is added in C++17.
Upstream libc++ has started removing the declaration of std::result_of
when a new-enough C++ dialect is selected, so switch to the supported
type.
Bug: http://b/175635923
Test: treehugger
Change-Id: Ie2db3e092b4300e20858097ac4e88ebaedc7ae07
The netd_aidl_interface-lateststable-cpp has been replaced by
netd_aidl_interface_lateststable_cpp_static. The dependencies in
tm-mainline-prod were removed in ag/18922953.
Change-Id: I7eae884f4040f00ac6870dfa338a820cd7217ed0
Test: TH
Bug: N/A
This reverts commit c6f9d5dc8f4b486c30e178a55ebf98c415bd3562.
Reason for revert: broke build in tm-mainline-prod
Bug: 236205815
Change-Id: I4dd1660c58e0acba0d6a036d590355bcbcd85f0f
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
This reverts commit 41fb07fc2f87db0f1f2bf6198a3b4d9f660768f6.
Reason for revert: b/231290697 broken mainline test build
Change-Id: I8051e634b06c645739779078c0ff6445db9304d0
The netd_aidl_interface-lateststable-cpp has been replaced by
netd_aidl_interface_lateststable_cpp_static.
Test: TH
Bug: N/A
Change-Id: I6ea1317bac81b602e6b398681cc453a25bf8c399
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
- 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
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
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
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
libconn_for_netd.so in tethering module needs utilities in libnetdutils,
e.g. Status class.
Bug: 202086915
Test: m
Change-Id: Idb7f11d146570972f2467b7faa624f41bd859062
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
Added SPDX-license-identifier-Apache-2.0 to:
common/netd/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Change-Id: Ic163988eea096e967a8d04624772b2eff350026d
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