Skip to content
Snippets Groups Projects
  1. Dec 26, 2023
    • Chiachang Wang's avatar
      Check target sockets by UID range · d8474bb1
      Chiachang Wang authored
      This commit optimizes the mechanism to examine the TCP sockets
      based on the VPN UID range.
      
      The automaticOnOffKeepalives will be paused/resumed by checking
      the TCP sockets status on the VPN network. The existing design
      considers all UIDs, not the UID ranges for the specific VPN
      network. This may lead to an inaccurate judgement to not to
      stop the keepalive even when there is no socket on the VPN
      network.
      
      This commit is also a part of follow-up work from aosp/2354202
      to use structized class to parse the TCP sockets.
      
      Bug: 311119352
      Bug: 265877161
      Test: atest FrameworksNetTests
      Change-Id: I4a6b751cb904b9c18ed1df420cc880ea38022d6a
      d8474bb1
  2. Dec 25, 2023
    • Chiachang Wang's avatar
      Correct coding format · 4823f0fb
      Chiachang Wang authored
      A clean up commit to correct the coding format.
      
      Test: atest FrameworksNetTests
      Change-Id: I7d7ed3765a0be503400ed3c33ea461e9baa3e72d
      4823f0fb
    • Chiachang Wang's avatar
      Add netlink attributes field into the InetDiagMessage · 4fc3f4fa
      Chiachang Wang authored
      Add nlAttrs parameter to store the remaining attributes data.
      
      As a part of follow-up work from aosp/2354202, the TCP socket
      parsing can be done by using existing InetDiagMessage class.
      The missing piece in the InetDiagMessage class is the possible
      netlink attributes fields that may be appended after an
      InetDiagMessage.
      
      Bug: 311119352
      Bug: 265877161
      Test: atest NetworkStaticLibTests
      Change-Id: I9c34166124fd4efba2ab211bfb537ccce5e774a4
      4fc3f4fa
  3. Nov 23, 2023
  4. Nov 22, 2023
  5. Nov 21, 2023
  6. Nov 20, 2023
Loading