- Feb 08, 2021
-
-
Junyu Lai authored
* changes: Address comments on aosp/1550755 [VCN07.1] Add test for bypassing VCN for non-internet request
-
junyulai authored
This CL bypass adding NOT_VCN_MANAGED on R device. And add TODOs for refactoring and adding test coverage. Test: atest CtsNetTestCasesLatestSdk:NetworkRequestTest on R device Bug: 175662146 Change-Id: Id09b19c13f9a74e25d45689d2211418172dfaec8
-
- Feb 07, 2021
-
-
Sudheer Shanka authored
This would allow us to run both metered and unmetered networkpolicy related tests when the device is on a cellular network. Bug: 165343126 Test: atest CtsHostsideNetworkTests:HostsideRestrictBackgroundNetworkTests Test: atest CtsHostsideNetworkTests:HostsideNetworkCallbackTests Change-Id: Id70856dffc920e74bda28583dba4dd851a832397 Merged-In: Id70856dffc920e74bda28583dba4dd851a832397
-
- Feb 05, 2021
-
-
Martin Stjernholm authored
This reverts commit f6a1052f. Reason for revert: Suspected reason for TetheringTests breakage Bug: 179467044 Change-Id: I3a5ee621b32145b74a31d6c3e411bd789e395935
-
junyulai authored
Test: atest NetworkRequestTest#testBypassingVcnForNonInternetRequest Bug: 175662146 Change-Id: I245bd69e02866d3608ab1667b665f6e12860037b
-
- Feb 02, 2021
-
-
Tomasz Wasilczyk authored
Bug: 175430552 Test: disable WiFi feature on device with wlan0 Change-Id: I83012013ff6a276d9a5c70748b726289b007cb0a
-
Lucas Lin authored
-
- Jan 29, 2021
- Jan 27, 2021
-
-
lucaslin authored
Add NetdStaticLibTestsLib into Tethering MTS , so that the tests under client-libs can also be run when running tethering MTS. Bug: 170598012 Test: atest TetheringCoverageTests Change-Id: Idd47becaa4254ab80b74ad5f3ddcdd4b017a5e69
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Remi NGUYEN VAN authored
-
Maciej Żenczykowski authored
Test: atest TetheringTests TetheringCoverageTests Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: Ibdbba9ef6652dd11bb18eba316045dff440fcf9e
-
Lorenzo Colitti authored
Add code to BpfCoordinator to dump upstream IPv4 and IPv6 rules. For IPv4, currently only the upstream map is printed, because the downstream map is expected to be symmetrical. Example output: ============= 21(21) -> 12(rmnet_data2) 86dd 00:00:00:00:00:00 00:00:00:00:00:00 [wlan1]: iif(iface) oif(iface) v6addr srcmac dstmac 12(rmnet_data2) 21(wlan1) /2001:240:2425:b5dc:21a9:995d:bc57:bc37 b2:b5:e0:24:21:c2 ca:06:8d:54:99:ad [IPv4]: iif(iface) oif(iface) src nat dst 21(21) 12(rmnet_data2) 192.168.16.247:41544 -> 100.101.80.108:41544 -> 216.239.36.135:443 21(21) 12(rmnet_data2) 192.168.16.247:42028 -> 100.101.80.108:42028 -> 8.8.4.4:853 21(21) 12(rmnet_data2) 192.168.16.247:42032 -> 100.101.80.108:42032 -> 8.8.4.4:853 21(21) 12(rmnet_data2) 192.168.16.247:42042 -> 100.101.80.108:42042 -> 8.8.4.4:853 21(21) 12(rmnet_data2) 192.168.16.247:41816 -> 100.101.80.108:41816 -> 8.8.8.8:853 21(21) 12(rmnet_data2) 192.168.16.247:42040 -> 100.101.80.108:42040 -> 8.8.4.4:853 ============= Also make it possible to do "dumpsys tethering bpf" and get only the BPF dump. Test: manual Change-Id: I2aaa2fdda7d724994090c26feff585f24cd3283b
-
Lorenzo Colitti authored
* changes: Remove IpServer.Dependencies#getIfIndex. Address comments on aosp/1559686.
-
Maciej Żenczykowski authored
Test: N/A Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: Ic217e08484c39077bcc408195daa3311ed93ad28
-
- Jan 26, 2021
-
-
Lorenzo Colitti authored
This code is unused. Test: atest TetheringTests Change-Id: Iaac422d72e8538b67798cb3ae3737deb7b426401
-
Lorenzo Colitti authored
Also remove some unnecessary line wrapping. Test: atest TetheringTests Change-Id: Ia7638b3198d7811cdbb34e959c50608cf1a656bf
-
Lorenzo Colitti authored
Test: new unit test Change-Id: Ibec09f328e24111aee4760af2f75ea5a80ba84c3
-
Lorenzo Colitti authored
Test: test-only change Change-Id: I9a47234979cbb161dfcd0c97c54c0476aa753c5e
-
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
-
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
-
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
-
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
-
Lorenzo Colitti authored
Bug: 178324405 Test: atest TetheringTests Change-Id: I2069ea79f982e6bb197388edd7820a05d1e651f1
-
Maciej Żenczykowski authored
Test: atest, TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: Ia7840698e80ded33d8e0b59efe1ca7267254b892
-
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:
Maciej Żenczykowski <maze@google.com> Change-Id: I1dfc3108ca4bbd0cefc3420bc7e421594b62619c
-
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:
Maciej Żenczykowski <maze@google.com> Change-Id: Ifbff2c617ac5834ea80f827eaf89ca81e862baec
-
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
-
- Jan 25, 2021
-
-
Maciej Żenczykowski authored
Test: atest, TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I0ad143be954d55d0ed39853031c7bd364378e1ec
-
Hungming Chen authored
Access the IPv4 downstream and upstream BPF map with the built rules. Test: atest TetheringCoverageTests Change-Id: I8cd6e49b377c72250988019eea57f93cccd78309
-
Maciej Żenczykowski authored
Test: atest, TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: Icabd1db48a1189425a941384d534c0f18bf20827
-
Maciej Żenczykowski authored
Test: atest, TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I649dc490b1883a1e97f748370a77c956f1315e2e
-
Remi NGUYEN VAN authored
All sources for the connectivity module are being moved to frameworks/base/packages/Connectivity, so that they can all be moved to packages/modules/Connectivity in one move keeping history. INetworkAgent and INetworkAgentRegistry were created in packages/modules/Connectivity directly, but this makes managing the sources until the move harder as the module needs to pull sources from two different locations. Considering that they do not have history to move, just move them to frameworks/base/packages/Connectivity without the commit history. Bug: 171540887 Test: m Change-Id: I1c7e83267014bff29eb938c002d6441332101248
-
- Jan 23, 2021
-
-
Nucca Chen authored
* changes: [NFCT.TETHER.8] Prepare the upstream information for IPv4 offload rule [NFCT.TETHER.7] Prepare the downstream information for IPv4 offload rule
-
Maciej Żenczykowski authored
We want connection establishment/shutdown to flow through the kernel code path so connection tracking state is at least somewhat correct. Test: atest, TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: Iee97baa65750188f3436937b16c9b320f0495a5a
-
- Jan 22, 2021
-
-
Roland Levillain authored
-
Daniel Bright authored
Bug: 155176305 Change-Id: I62958d041a8f544dbd98d5434e97ce89f843c5cb
-
Hungming Chen authored
Build the upstream and upstream rules when the conntrack event is received. Test: atest TetheringCoverageTests Change-Id: Ibb52c7b75812bd586091d809e260bc9206c06262
-