Skip to content
Snippets Groups Projects
  1. Oct 23, 2023
    • Junyu Lai's avatar
      [BR01.1] Support BpfNetMapsReader · 626045a6
      Junyu Lai authored
      A helper class to *read* java BpfMaps. This is designed to
      provide direct bpf access in the caller process through
      ConnectivityManager APIs.
      
      The change also removes any statical link to
      net-utils-device-common-struct from service-connectivity.
      This is because net-utils-device-common-struct is already
      included in framework-connectivity. Including it again in
      service-connectivity would create a r8 build fail by circular
      dependency.
      
      Test: atest FrameworksNetTests:android.net.connectivity.com.android.server.BpfNetMapsTest
      Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.net.module.util.StructTest
      Test: atest FrameworksNetTests:android.net.connectivity.android.net.BpfNetMapsReaderTest
      Bug: 297836825
      Change-Id: I7a6d2eb816d0dc7343167bddd672806b199f44fe
      626045a6
  2. Oct 22, 2023
  3. Oct 21, 2023
  4. Oct 20, 2023
  5. Oct 19, 2023
  6. Oct 18, 2023
    • Paul Hu's avatar
      Add expired services removal flag · f3fe3333
      Paul Hu authored
      The TTL check and removal of expired services is currently only
      performed when a mDNS query is sent. This can result in expired
      services remaining in the cache if no queries are sent. To
      address this, the remaining TTL will be checked when retrieving
      services from the MdnsServiceCache. Add a new flag to enable
      the expired services removal feature. This feature will be
      implemented in subsequent changes.
      
      Bug: 265787401
      Bug: 304649384
      Test: atest FrameworksNetTests CtsNetTestCases
      Change-Id: I30f0eea568ee45d363cc02821de0921d6040f981
      f3fe3333
    • Junyu Lai's avatar
      Support shell command to get bpf program id · 452e464e
      Junyu Lai authored
      Test: atest NetworkStatsIntegrationTest#testBpfProgramAttachStatus
      Bug: 292156770
      
      Change-Id: I815be0f3f3592442939872f98e3ad9d224a6aeb6
      452e464e
    • Junyu Lai's avatar
      Dump bpf program status in dumpsys · 155760b5
      Junyu Lai authored
      Sample output:
      Bpf Program Status:
        CGROUP_INET_INGRESS: 21
        CGROUP_INET_EGRESS: 22
        CGROUP_INET_SOCK_CREATE: 28
        CGROUP_INET4_BIND: 30
        CGROUP_INET6_BIND: 31
      
      Test: adb shell dumpsys connectivity
      Test: atest FrameworksNetTests:android.net.connectivity.com.android.server.ConnectivityServiceTest#testDumpDoesNotCrash
      Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.ConnectivityServiceTest#testDumpDoesNotCrash
      Bug: 292156770
      Change-Id: I312c90c524af12d093536156d6d5c6febd64305a
      155760b5
    • Chalard Jean's avatar
      Reapply "Simplify addRoutesToLocalNetwork calls" · 7f2b3dab
      Chalard Jean authored
      This reverts commit 316346be.
      
      Change-Id: I86977f6e7a5451d037c7ea6fee5c4bc7082935ff
      7f2b3dab
    • Chalard Jean's avatar
      Reapply "Add LocalNetworkConfig" · f9d0e3e9
      Chalard Jean authored
      This reverts commit 6eea22b1.
      
      Change-Id: I0a2cef4ee992577674c92ecd384dc6f4361afa02
      f9d0e3e9
    • Junyu Lai's avatar
  7. Oct 17, 2023
  8. Oct 16, 2023
  9. Oct 14, 2023
Loading