- Dec 05, 2023
-
-
Treehugger Robot authored
-
Mark Chien authored
-
- Dec 04, 2023
-
-
Ken Chen authored
-
Mark authored
This fix the code review comment from aosp/2319853 that getXXX functions should be renamed to makeXXX because it's actually creating the object. Test: TH Change-Id: Ife8e1cc3a90b835764a2dd9731388b05d8a5c964
-
Paul Hu authored
-
Hansen Kurli authored
-
- Dec 03, 2023
-
-
Ken Chen authored
Instead of logging and aborting from the BpfHandler::initPrograms(), return a Status object with an error message. The caller NetdUpdatable::libnetd_updatable_init() will log the message. Netd main() will exit and restart. Bug: 312094533 Test: m Change-Id: I6717da871a9a53357ac895709ea0094c089e7bbd
-
- Dec 02, 2023
-
-
Yuyang Huang authored
-
- Dec 01, 2023
-
-
Motomu Utsumi authored
-
Yuyang Huang authored
The current implementation of MdnsAdvertiser doesn't support updating an existing registration. For an update request, the client needs to unregister it first, which will trigger an exit message and then register again, which will trigger an announcement message. There are some clients that don't want to trigger the exit and announcement message every time. This CL adds the API to support that use case. Bug: 309372239 Test: TH Change-Id: Iabe69a987a11104090082e01969e7595f05504e8
-
Motomu Utsumi authored
This reverts commit db884c9a. Reason for revert: reason of aosp/2849874 revert is solved by aosp/2854408 Change-Id: Ic5ffddf2f811c0d2c359f292c3b44b833bae5eaa
-
- Nov 30, 2023
-
-
Nick Wille authored
-
Nick Wille authored
This reverts commit 1e7c4a49. This change is a suspect for causing test breakages, it may or may not be reverted. Bug: 314087796 Reason for revert: 314087796 Change-Id: If0a1c1e2d0e260319cf64b2d00828638abebb7fe
-
Motomu Utsumi authored
-
Motomu Utsumi authored
-
Motomu Utsumi authored
aosp/2792436 updated NetworkAgent and NetworkAgentTest. But the NetworkAgent change was not compatible with the old NetworkAgentTest. This CL makes NetworkAgent change to compatible with the old NetworkAgentTest. aosp/2851330 will update NetworkAgentTest to support NetworkAgent change done in aosp/2792436. Once the old cts is EOL, workaround in NetworkAgentTest and NetworkAgent can be removed. Bug: 310124646 Test: atest NetworkAgentTest Change-Id: Ic99b0ab72526a9ba22653f5bb132214ef0814440
-
Yuyang Huang authored
-
Yuyang Huang authored
-
Lorenzo Colitti authored
-
Yan Yan authored
-
- Nov 29, 2023
-
-
Lorenzo Colitti authored
This reverts commit 11eac8e1. Reason for revert: there are devices in the field using usbX interfaces for tethering Change-Id: I7bbcbb703294de1c9dd3e0390bc8ad28aa350ef6
-
Yuyang Huang authored
Check if the bpf loader rc file is differs from the template files when ConnectivityService starts. Use Log.wtf() to log the file if there is a diff. Bug: 312638861 Test: TH Change-Id: I0b9ed9962ad0954a051a17b01357d04a0e655ff4
-
Yuyang Huang authored
Update registerOffloadEngine() permission check to check the DEVICE_POWER permission in U. This change is required to allow the android TV device to access the API in U because the REGISTER_NSD_OFFLOAD_ENGINE permission can not be backported. Bug: 313546516 Test: TH Change-Id: I84b80d102a34487ad54719a86eb525b319e2fd8b
-
Mike Yu authored
-
Yan Yan authored
Previously the calculation of the expected ADD_TIME implicitly depended on the default timezone of the test device and thus might have different values and cause test failures. This fix updates the test to always use "GMT" to generate the ADD_TIME Bug: 308011229 Test: StructXfrmLifetimeCurTest passing with default timezone being GMT, GMT-6, GMT-10 Change-Id: Ib88a253c1ecb09feeb298a04b847c4105651a710
-
- Nov 28, 2023
-
-
Yan Yan authored
* changes: [XFRM_MSG_NEWSA] Support xfrm_lifetime_cfg and xfrm_lifetime_cur [XFRM_MSG_NEWSA] Support xfrm_selector and xfrm_id
-
Xiao Ma authored
-
Motomu Utsumi authored
These APIs were released via SDK extension but they need to have FlaggedAPI annotation to avoid being released by quarterly release. Note that this CL does not contain udc-extended-api change. Once com.android.net.flags.register_nsd_offload_engine_api is marked as released API, APIs with this annotations should be visible in udc-mainline-prod API .txt files. Bug: 301713539 Test: TH Change-Id: I32b58ec64c1f599f48bc89b189ed24ac1717a1d7
-
Mike Yu authored
In PrivateDnsConfig class, `useTls` is replaced with `mode`. This CL a corresponding change. Bug: 240259333 Test: atest ConnectivityCoverageTests Change-Id: I60c53e52f287fc7fa05543603a62632d934bb2e6
-
Hansen Kurli authored
Vpn.Dependencies contains methods used for legacy VPNs that are now unused. Remove them. Bug: 161776767 Test: atest FrameworksNetTests Change-Id: I68bbb3e519f5558f9006f680df79ae8073e196cd
-
Mark authored
Currently, PrivateAddressCoordinator always selects the /24 prefix from the 192.168.x.x/16 range first. If the upstream is also a /24 prefix in the 192.168.x.x/16 range, there's a 1/256 chance of a conflict (192.168.0.x/24 ~ 192.168.255.x/24). Since 192.168.x.x/16 is a popular range for home and small business networks, we should randomize the starting prefix range to reduce the chance of a conflict. The /8, /12, and /16 range selection rates are 0.39%, 5.86%, and 93.7%, respectively (see the inline comments for how the rates are calculated). The chance of selecting a /24 prefix is: - 10.0.0.0/8: 1/(256*256) * 93.7% = 0.001429% - 172.16.0.0/12: 1/(16*256) * 5.86% = 0.00143% - 192.168.0.0/16: 1/256 * 0.39% = 0.001523% Note: This change is currently turned off by the tether_force_random_prefix_base_selection flag. We'll run experiments to make sure tethering stays reliable with this change enabled. Bug: 312647670 Test: atest TetheringTests Change-Id: Iea03fdcf0fccad95410e79ae87fcb046d75da457
-
Ken Chen authored
-
Xiao Ma authored
Change the component number to 685852 which is used for IpSec. and also add OWNER file for xfrm unit test folder. Test: TH Change-Id: I2359d6d8c6b3916ce36fdbcc1f487896efb0dccb
-
Ken Chen authored
Debugging the SIGABRT of this function is annoying because the module can be built from source or pre-built. It requires finding the correct version of the symbol to get the correct line number. In addition, there are 7 consecutive aborts in source code, it is hard to tell whether the symbolized call stack shows the right line number or not. Adds error trace before abort so we can identify the root cause without even symbolizing the call stack of SIGABRT. Bug: 312094533 Test: make; flash; adb logcat Change-Id: I74713029d059e10bf5d34694cdb96712bc806696
-
- Nov 27, 2023
-
-
Yan Yan authored
-
Yan Yan authored
Bug: 308011229 Test: atest NetworkStaticLibTests:com.android.net.moduletests.util.netlink (new tests added) Change-Id: Ibd38e3c0036c760f6397910162054cfb02e45059
-
Yan Yan authored
Bug: 308011229 Test: atest NetworkStaticLibTests:com.android.net.moduletests.util.netlink (new tests added) Change-Id: I0e9f52aad8e9cb72b8bbac1f9ee9f8e53d939e47
-
Yan Yan authored
Bug: 308011229 Test: atest NetworkStaticLibTests:com.android.net.moduletests.util.netlink (new tests added) Change-Id: I42e423c09ffb733a809636360468c963c7864872
-
Lorenzo Colitti authored
-
Paul Hu authored
This is a no-op change, only refactoring the query packet generation code to use MdnsPacket. This refactoring enables the insertion of additional sections into the query packet and facilitates the determination of truncation requirements. Bug: 312657709 Test: atest FrameworksNetTests NsdManagerTest Change-Id: I3671842b6d433e1856a1efae643f3fe1f6c532d1
-