Skip to content
Snippets Groups Projects
  1. Feb 09, 2024
  2. Jan 19, 2024
  3. Jan 18, 2024
  4. Jan 17, 2024
  5. Jan 16, 2024
  6. Jan 15, 2024
    • Remi NGUYEN VAN's avatar
      Fix replying to queries via unicast · 0ca094b5
      Remi NGUYEN VAN authored
      Instead of (wrongly) looking at the DNS message flags for the Query
      Unicast bit, look at the flag in the question record.
      
      The previous bug means that all queries would be replied multicast
      instead of sometimes unicast. The fix is flagged off as this is a
      behavior change that may affect performance and latency.
      
      Bug: 289482497
      Test: atest
      Change-Id: I08e30c4ffa747c9073d631e8addca1278ea40648
      0ca094b5
    • Junyu Lai's avatar
      Support multiple addresses in PacketBridge · 3cc222dd
      Junyu Lai authored
      Test: atest NetworkStackIntegrationTests:android.net.NetworkStatsIntegrationTest
      Bug: N/A
      Change-Id: Icaef559d54f8d7ce06fb9bf231330235ee01ab8f
      3cc222dd
    • Junyu Lai's avatar
      Remove NAPT from PacketForwarder · 74acb88d
      Junyu Lai authored
      Consider below scenario:
        Internal address: 1.2.3.4
        External address: 5.6.7.8
        Remote address: 8.8.8.8
      When a packet was sent from 1.2.3.4 to 8.8.8.8, the current design
      translate it to a packet from 8.8.8.8 to 5.6.7.8 and foward it
      to the external interface. However, when the response is received
      from the external interface, there is a need to remember what is
      the original address to forward to. Thus, an address translation
      mechanism was introduced in current design.
      
      This change simplify PacketForwarder by removing the address
      translation.
      Consider, if the 2 interfaces are using the same address.
        Internal address: 1.2.3.4
        External address: 1.2.3.4
        Remote address: 8.8.8.8
      When a packet was sent from 1.2.3.4 to 8.8.8.8, simply swap
      source and destination and and foward it to the external
      interface. When there is a response from the external interface,
      the same process can be done, this removes the need of address
      translation.
      
      Test: atest NetworkStackIntegrationTests:android.net.NetworkStatsIntegrationTest
      Test: atest CtsHostsideNetworkTests:com.android.cts.net.HostsideVpnTests
      Bug: N/A
      
      Change-Id: I86f2e774e9112905e5255b5a28c927562a42ab84
      74acb88d
    • Junyu Lai's avatar
    • Junyu Lai's avatar
      Add more context in javadoc of setDataSaverEnabled · f3048230
      Junyu Lai authored
      This addresses API council review feedback at b/307695368
      
      Test: TH
      Fix: 307695368
      Change-Id: Ifc8cb890ff73be423d38e06a516853da4b9ee97f
      f3048230
  7. Jan 12, 2024
  8. Jan 11, 2024
Loading