Skip to content
Snippets Groups Projects
  1. Jan 26, 2021
    • Lorenzo Colitti's avatar
      Add an isEmpty convenience method to BpfMap. · 77262cea
      Lorenzo Colitti authored
      Test: new unit test
      Change-Id: Ibec09f328e24111aee4760af2f75ea5a80ba84c3
      77262cea
    • Lorenzo Colitti's avatar
      Address a TODO in BpfMapTest. · 7bf39e56
      Lorenzo Colitti authored
      Test: test-only change
      Change-Id: I9a47234979cbb161dfcd0c97c54c0476aa753c5e
      7bf39e56
    • Lorenzo Colitti's avatar
      Program the upstream IPv6 map in BpfCoordinator. · 5b1ed508
      Lorenzo Colitti authored
      - Add methods to start and stop IPv6 forwarding upstream
      - Populate the upstream IPv6 map when the first rule for any
        upstream/downstream pair is created.
      - Clear the upstream IPv6 map when the last rule for any
        upstream/downstream pair is deleted.
      
      Test: Added coverage to IpServerTest and BpfCoordinatorTest
      Change-Id: Ib041081e95f5f449489ab63138de034222ffac8f
      5b1ed508
    • Lorenzo Colitti's avatar
      Rename TetherDownstream6Value to Tether6Value. · d69a8862
      Lorenzo Colitti authored
      The two value types are identical so there is no need to have
      separate classes for them.
      
      Test: atest TetheringTests
      Change-Id: Ia622b082d0a44373d21f51222f5e675e5bde08e0
      d69a8862
    • Lorenzo Colitti's avatar
      Merge changes from topic "bpf_tether4_rename" · 3c356668
      Lorenzo Colitti authored
      * changes:
        merge Tether{Down,Up}stream4{Key,Value} - part 3 - fixups
        merge Tether{Down,Up}stream4{Key,Value} - part 2 - java
        merge Tether{Down,Up}stream4{Key,Value} - part 1 - C portion
      3c356668
    • Lorenzo Colitti's avatar
      Mark the EntitlementManager PendingIntents as immutable. · a36d65da
      Lorenzo Colitti authored
      These are read-only intents and should not be mutated by any
      app receiving them.
      
      Bug: 178324405
      Bug: 178249531
      Test: atest TetheringTests TetheringCoverageTests GtsTetheringTestCases
      Change-Id: I5395e7c19e6453640ad790f2b9a9ba22bbcefa88
      a36d65da
    • Lorenzo Colitti's avatar
      Fix a WTF in IpServerTest. · ae27ecf5
      Lorenzo Colitti authored
      Bug: 178324405
      Test: atest TetheringTests
      Change-Id: I2069ea79f982e6bb197388edd7820a05d1e651f1
      ae27ecf5
    • Maciej Żenczykowski's avatar
      merge Tether{Down,Up}stream4{Key,Value} - part 3 - fixups · 911a7267
      Maciej Żenczykowski authored
      
      Test: atest, TreeHugger
      Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
      Change-Id: Ia7840698e80ded33d8e0b59efe1ca7267254b892
      911a7267
    • Maciej Żenczykowski's avatar
      merge Tether{Down,Up}stream4{Key,Value} - part 2 - java · 32874eb6
      Maciej Żenczykowski authored
      
      Generated via:
        git grep 'Tether(Down|Up)stream4(Key|Value)' | cut -d: -f1 | sort -u | while read i; do
          sed -r -i 's@TetherUpstream4Value@Tether4Value@g' "$i"
          sed -r -i 's@TetherDownstream4Value@Tether4Value@g' "$i"
          sed -r -i 's@TetherDownstream4Key@Tether4Key@g' "$i"
          sed -r -i 's@TetherUpstream4Key@Tether4Key@g' "$i"
        done
      
        cd Tethering/src/com/android/networkstack/tethering
        git mv TetherUpstream4Key.java Tether4Key.java
        git mv TetherUpstream4Value.java Tether4Value.java
      
        git diff TetherDownstream4Key.java Tether4Key.java
        git diff TetherDownstream4Value.java Tether4Value.java
        git rm TetherDownstream4Key.java
        git rm TetherDownstream4Value.java
      
      Fixup resulting 'import' duplication
        mcedit Tethering/apishim/31/com/android/networkstack/tethering/apishim/api31/BpfCoordinatorShimImpl.java
        mcedit Tethering/apishim/30/com/android/networkstack/tethering/apishim/api30/BpfCoordinatorShimImpl.java
        mcedit Tethering/apishim/common/com/android/networkstack/tethering/apishim/common/BpfCoordinatorShim.java
        mcedit Tethering/tests/unit/src/android/net/ip/IpServerTest.java
      
      Test: N/A, requires follow up commit
      Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
      Change-Id: I1dfc3108ca4bbd0cefc3420bc7e421594b62619c
      32874eb6
    • Maciej Żenczykowski's avatar
      merge Tether{Down,Up}stream4{Key,Value} - part 1 - C portion · 1feb8b4a
      Maciej Żenczykowski authored
      
      The keys are identical, and the values nearly so, this will make everyone's life easier.
      
      Test: git grep 'Tether(Down|Up)stream4(Key|Value)' finds nothing
        (note this requires follow up commits)
      Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
      Change-Id: Ifbff2c617ac5834ea80f827eaf89ca81e862baec
      1feb8b4a
    • Lorenzo Colitti's avatar
      Merge changes I8cd6e49b,Ibb52c7b7 · dc4189f0
      Lorenzo Colitti authored
      * changes:
        [NFCT.TETHER.10] Add/delete IPv4 offload BPF rules to/from BPF map
        [NFCT.TETHER.9] Build IPv4 offload BPF rules for raw ip
      dc4189f0
  2. Jan 25, 2021
  3. Jan 23, 2021
  4. Jan 22, 2021
  5. Jan 21, 2021
  6. Jan 20, 2021
  7. Jan 19, 2021
    • Nucca Chen's avatar
      Merge changes I969d6182,Ie73f7b4d · 2668d4a0
      Nucca Chen authored
      * changes:
        [NFCT.TETHER.4] Migrate tetherOffloadRuleRemove from netd to mainline
        [NFCT.TETHER.3] Migrate tetherOffloadGetStats from netd to mainline
      2668d4a0
Loading