android_packages_modules_Co.../Tethering
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hungming Chen 3dbd4a1cc4 [NFCT.TETHER.15] Attach BPF program in the mainline module
Migrate Maze's BPF program attaching and detaching functions from
system/netd/server/OffloadUtils.{c, h} to tethering module.

Test: atest TetheringCoverageTests
Test case #1:
Enable WiFi hotspot and check tc filters are added or removed on both
wlan1 and rmnet_data#.

$ adb shell tc filter show dev wlan1 ingress
filter protocol ipv6 pref 1 bpf chain 0
filter protocol ipv6 pref 1 bpf chain 0 handle 0x1
prog_offload_schedcls_tether_upstream6_ether:[*fsobj] direct-action
not_in_hw id 2 tag 7cf020cc09a7c982
filter protocol ip pref 2 bpf chain 0
filter protocol ip pref 2 bpf chain 0 handle 0x1
prog_offload_schedcls_tether_upstream4_ether:[*fsobj] direct-action
not_in_hw id 7 tag 2f87d55b636c082c

$ adb shell tc filter show dev rmnet_data2 ingress;
filter protocol ipv6 pref 1 bpf chain 0
filter protocol ipv6 pref 1 bpf chain 0 handle 0x1
prog_offload_schedcls_tether_downstream6_rawip:[*fsobj] direct-action
not_in_hw id 3 tag 8b3885b75bd261de
filter protocol ip pref 2 bpf chain 0
filter protocol ip pref 2 bpf chain 0 handle 0x1
prog_offload_schedcls_tether_downstream4_rawip:[*fsobj] direct-action
not_in_hw id 6 tag b1c9478c91f8df9a

Test case #2:
Enable USB tethering and check tc filters are added or removed on both
rndis0 and rmnet_data#.

Test case #3:
Enable WiFi and USB tethering and check tc filter are added or removed
on rndis0, wlan1 and rmnet_data#.

Change-Id: I3f9a65043271bc8f5bf1b82ae505c471625ca9de
2021-03-11 17:49:42 +08:00
..
apex Merge "[LSC] Add LOCAL_LICENSE_KINDS to packages/modules/Connectivity" 2021-02-19 06:23:22 +00:00
apishim [NFCT.TETHER.15] Attach BPF program in the mainline module 2021-03-11 17:49:42 +08:00
bpf_progs Merge "ebpf offload: bump size of ipv4 tethering maps" 2021-02-26 05:43:07 +00:00
common/TetheringLib Add dependency on system API in connectivity 2021-02-26 19:36:06 +09:00
jni [NFCT.TETHER.15] Attach BPF program in the mainline module 2021-03-11 17:49:42 +08:00
res wifi: Add bridged pre-fix for tethering interface 2021-01-18 01:21:32 +00:00
src [NFCT.TETHER.15] Attach BPF program in the mainline module 2021-03-11 17:49:42 +08:00
tests [NFCT.TETHER.15] Attach BPF program in the mainline module 2021-03-11 17:49:42 +08:00
Android.bp Add dependency on system API in connectivity 2021-02-26 19:36:06 +09: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