- Jan 26, 2021
-
-
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
-
- 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
-
Hungming Chen authored
Add upstream interface index and its IPv4 address mapping Required for building IPv4 forwarding rule when a conntrack event is received. Test: atest TetheringCoverageTests Change-Id: I73f304777704f09481b80d18751e0bab5bab2edc
-
Hungming Chen authored
Add and remove downstream client information to BpfCoordinator Required for building IPv4 forwarding rule when a conntrack event is received. The IpServer provides the following elements of a rule which is not included in conntrack event: - Downstream interface index - Downstream Mac address - Client IP address to Client Mac address Test: atest TetheringCoverageTests Change-Id: I84db13acc047ace5730d17f0d3dd99544f516084
-
Nucca Chen authored
-
Maciej Żenczykowski authored
Test: atest, TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: Idaaa1ede7c239655f5ec489532533c363d297864
-
- Jan 21, 2021
-
-
Hungming Chen authored
A preparation for starting monitoring conntrack event which is required by IPv4 tethering offload. Test: atest TetheringCoverageTests Change-Id: Ied46aeca193554f52a90889dfdf92827e94845d6
-
Maciej Żenczykowski authored
Test: atest, TreeHugger, the programs load Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: Idcacf0502719336c1b6a959fe6b782f2bce9d6b5
-
Maciej Żenczykowski authored
Additionally better document tether stats/limit keys/value. Test: atest, TreeHugger, the programs load Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I1e1832fc4f5a6704e00ea99ca377988c52a82eb1
-
Maciej Żenczykowski authored
* changes: switch bpf programs to group network_stack Add tethering programs for upstream.
-
- Jan 20, 2021
-
-
Maciej Żenczykowski authored
Test: atest, TreeHugger, the programs load Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I3ab4383978acb2681a0fd5aee2700d12c62c2769
-
Maciej Żenczykowski authored
Test: atest, TreeHugger, the programs load Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I26bc60c1066ed7317bda48ec3fa701c36e0b46dd
-
Maciej Żenczykowski authored
Test: builds, atest, TreeHugger git grep 'makeIngressKey|makeIngressValue|BpfIngressMap|TETHER_INGRESS_FS_PATH' no longer finds anything Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I27200d33cbc4ea2094b18e05bf93ab54c564da0b
-
Maciej Żenczykowski authored
Generated via: #!/bin/bash do_replace() { pushd "$1" >/dev/null shift git grep "$1" | cut -d: -f1 | sort -u | while read f; do sed -i -r "s@$1@$2@g" "${f}" git add "${f}" done popd >/dev/null } replace() { do_replace packages/modules/Connectivity/Tethering "$@" do_replace system/netd "$@" } do_reset() { pushd "$1" >/dev/null git rhh popd >/dev/null } main() { do_reset packages/modules/Connectivity/Tethering do_reset system/netd replace TetherIngressKey TetherDownstream6Key replace TetherIngressValue TetherDownstream6Value pushd packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering >/dev/null git mv TetherIngressKey.java TetherDownstream6Key.java git mv TetherIngressValue.java TetherDownstream6Value.java popd >/dev/null replace TETHER_INGRESS_PROG TETHER_DOWNSTREAM6_TC_PROG replace ingress_tether tether_downstream6 replace ingress/tether_ tether_downstream6_ replace TETHER_INGRESS_MAP TETHER_DOWNSTREAM6_MAP replace tether_ingress_map tether_downstream6_map replace getTetherIngressMapFd getTetherDownstream6MapFd replace getTetherIngressProgFd getTetherDownstream6TcProgFd replace mBpfIngressMap mBpfDownstream6Map replace bpfIngressMap bpfDownstream6Map replace printIngressMap printDownstream6Map replace 'BPF ingress map' 'BPF downstream ipv6 map' } main "$@"; exit Followed by: cd system/netd # change regexp in tests/binder_test.cpp:3374 git add tests/binder_test.cpp (and whitespace adjustments to prevent lines from going over 100 characters) Afterwards we have: $ adbz shell ls /sys/fs/bpf/tethering map_offload_tether_downstream6_map map_offload_tether_limit_map map_offload_tether_stats_map map_test_tether_downstream6_map prog_offload_schedcls_tether_downstream6_ether prog_offload_schedcls_tether_downstream6_rawip prog_test_xdp_drop_ipv4_udp_ether Test: atest, TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: Ib04dc0c6e3d034461f3f84e09f6fa93a862e1bb2
-
Maciej Żenczykowski authored
-
Treehugger Robot authored
-
Maciej Żenczykowski authored
Test: builds, boots, program present Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: Id5be48ec172366296929875856a3d17ecc87e84b
-
Maciej Żenczykowski authored
I keep on failing to find this using grep because it doesn't match how all the other programs are defined, so change it for consistency. Test: builds, atest, TreeHugger Signed-off-by:
Maciej <Żenczykowski<maze@google.com> Change-Id: Ib61b375bef84d2b489080866b2411c84880e4ef2
-
Maciej Żenczykowski authored
that puts tethering mainline module maps and programs under /sys/fs/bpf/tethering Test: builds, boots, atest, TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: If57e737168cefe9fe0fe180114c1d61918d20d21
-
Maciej Żenczykowski authored
since there's now bpf code in tethering portion of the codebase. Test: N/A Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I679b7ba6d5fff49bad4fb2fe7d251875e4cb94b5
-
Lorenzo Colitti authored
* changes: [NFCT.TETHER.6] Migrate tetherOffloadGetAndClearStats from netd to mainline [NFCT.TETHER.5] Migrate tetherOffloadSetInterfaceQuota from netd to mainline
-
- Jan 19, 2021
-
-
Nucca Chen authored
* changes: [NFCT.TETHER.4] Migrate tetherOffloadRuleRemove from netd to mainline [NFCT.TETHER.3] Migrate tetherOffloadGetStats from netd to mainline
-