Pass upstream prefixes to bpf tethering offload
BPF needs upstream prefixes information to filter spoofing IPv6 source addresses carried in downstream traffic. We retrieve prefixes from upstream interface's LinkProperties and pass it to the BpfCoordinator. Forwarding rules will also be updated when upstream interface's IPv6 link addresses change. Test: atest TetheringTests Bug: 261923493 Change-Id: If8cfc3b191e520ca838654d1b5211ab9e9ec021d
Showing
- Tethering/src/android/net/ip/IpServer.java 36 additions, 14 deletionsTethering/src/android/net/ip/IpServer.java
- Tethering/src/com/android/networkstack/tethering/BpfCoordinator.java 28 additions, 13 deletions...rc/com/android/networkstack/tethering/BpfCoordinator.java
- Tethering/tests/unit/src/android/net/ip/IpServerTest.java 126 additions, 49 deletionsTethering/tests/unit/src/android/net/ip/IpServerTest.java
- Tethering/tests/unit/src/com/android/networkstack/tethering/BpfCoordinatorTest.java 116 additions, 42 deletions...om/android/networkstack/tethering/BpfCoordinatorTest.java
- bpf_progs/offload.c 2 additions, 1 deletionbpf_progs/offload.c
Loading
Please register or sign in to comment