TetherController: attach/detach tether bpf program to upstream interface
Test: build, atest
Manual test steps:
1. Connect to FarEastone mobile
2. Enable WiFi hotspot
3. Get the upstream interface via logcat
I netd : ipfwdAddInterfaceForward("wlan1", "rmnet_data1")
4. Check the tether BPF program attaching on upstream interface
$ adb shell tc filter show dev rmnet_data1 ingress
filter protocol ipv6 pref 1 bpf
filter protocol ipv6 pref 1 bpf handle 0x1
prog_offload_schedcls_ingress_tether_rawip:[*fsobj] direct-action
5. Disable WiFi hotspot
6. Check the tether BPF program detaching on upstream interface by
logcat
Change-Id: I2acca0220a660fbaa235f8863237d526828c2af8
2 files changed