Maciej Żenczykowski
770e0a7a8f
refactor: TetherIngress becomes TetherDownstream6 (and friends)
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
|
2021-01-19 23:18:46 -08:00 |
| .. |
|
apex
|
move bpf test map into a separate file
|
2021-01-18 18:36:00 -08:00 |
|
apishim
|
refactor: TetherIngress becomes TetherDownstream6 (and friends)
|
2021-01-19 23:18:46 -08:00 |
|
bpf_progs
|
refactor: TetherIngress becomes TetherDownstream6 (and friends)
|
2021-01-19 23:18:46 -08:00 |
|
common/TetheringLib
|
com.android.tethering: set min_sdk_version 30
|
2020-11-05 20:30:40 +00:00 |
|
jni
|
Use header module bpf_syscall_wrappers
|
2021-01-13 14:31:28 +08:00 |
|
res
|
wifi: Add bridged pre-fix for tethering interface
|
2021-01-18 01:21:32 +00:00 |
|
src
|
refactor: TetherIngress becomes TetherDownstream6 (and friends)
|
2021-01-19 23:18:46 -08:00 |
|
tests
|
refactor: TetherIngress becomes TetherDownstream6 (and friends)
|
2021-01-19 23:18:46 -08:00 |
|
Android.bp
|
Merge "[NFCT.TETHER.2] Migrate tetherOffloadRuleAdd from netd to mainline"
|
2021-01-18 06:37:23 +00:00 |
|
AndroidManifest.xml
|
Update language to comply with Android's inclusive language guidance
|
2020-07-29 12:05:04 +08:00 |
|
AndroidManifest_InProcess.xml
|
Change tethering file structure to respect its package name
|
2020-04-14 14:33:45 +08:00 |
|
AndroidManifestBase.xml
|
Add usesCleartextTraffic to Tethering
|
2020-08-18 09:00:58 +00:00 |
|
jarjar-rules.txt
|
Provide a easy way to access bpf maps from java
|
2021-01-11 17:43:27 +08:00 |
|
OWNERS
|
Revert "Add OWNERS block to prevent the tree from mooving during migration."
|
2020-10-31 04:50:11 +00:00 |
|
proguard.flags
|
Provide a easy way to access bpf maps from java
|
2021-01-11 17:43:27 +08:00 |
|
TEST_MAPPING
|
Move TetheringTests to presubmit
|
2020-06-10 02:33:37 +00:00 |