Skip to content
Snippets Groups Projects
  1. Dec 05, 2023
  2. Dec 04, 2023
  3. Dec 03, 2023
    • Ken Chen's avatar
      Return error Status from BpfHandler::initPrograms() · d6ea75ac
      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
      d6ea75ac
  4. Dec 02, 2023
  5. Dec 01, 2023
  6. Nov 30, 2023
  7. Nov 29, 2023
  8. Nov 28, 2023
    • Yan Yan's avatar
      Merge changes Ibd38e3c0,I0e9f52aa into main · 7475acf7
      Yan Yan authored
      * changes:
        [XFRM_MSG_NEWSA] Support xfrm_lifetime_cfg and xfrm_lifetime_cur
        [XFRM_MSG_NEWSA] Support xfrm_selector and xfrm_id
      7475acf7
    • Xiao Ma's avatar
    • Motomu Utsumi's avatar
      Add FlaggedAPI annotation to NSD offload APIs · ce23d846
      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
      ce23d846
    • Mike Yu's avatar
      Replace useTls with mode in PrivateDnsConfig · 9738b477
      Mike Yu authored
      In PrivateDnsConfig class, `useTls` is replaced with `mode`.
      This CL a corresponding change.
      
      Bug: 240259333
      Test: atest ConnectivityCoverageTests
      Change-Id: I60c53e52f287fc7fa05543603a62632d934bb2e6
      9738b477
    • Hansen Kurli's avatar
      Remove unused Vpn Dependency methods in VpnTest. · b27602c8
      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
      b27602c8
    • Mark's avatar
      Random select started prefix range · c0b0f616
      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
      c0b0f616
    • Ken Chen's avatar
    • Xiao Ma's avatar
      Update bug component in xfrm folder OWNER file. · 9224b101
      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
      9224b101
    • Ken Chen's avatar
      Add error trace in BpfHandler::initPrograms · 5d14649a
      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
      5d14649a
  9. Nov 27, 2023
Loading