Introduce Ipv6UpstreamRule to bpf tethering offload
Replaced startUpstreamIpv6Forwarding and stopUpstreamIpv6Forwarding with add/remove Ipv6UpstreamRule. This is a preparation for following CLs which will pass the upstream's prefixes to the bpf map. We might have more than one upstream rules. Also renamed Ipv6ForwardingRule to Ipv6DownstreamRule since we have defined the Ipv6UpstreamRule. No logic changes are being made in this CL. Test: atest TetheringTests Bug: 261923493 Change-Id: I022f97c2daf468bbd4a4279a069ccf498013e7e7
Showing
- Tethering/apishim/30/com/android/networkstack/tethering/apishim/api30/BpfCoordinatorShimImpl.java 14 additions, 18 deletions...stack/tethering/apishim/api30/BpfCoordinatorShimImpl.java
- Tethering/apishim/31/com/android/networkstack/tethering/apishim/api31/BpfCoordinatorShimImpl.java 30 additions, 46 deletions...stack/tethering/apishim/api31/BpfCoordinatorShimImpl.java
- Tethering/apishim/common/com/android/networkstack/tethering/apishim/common/BpfCoordinatorShim.java 31 additions, 34 deletions...orkstack/tethering/apishim/common/BpfCoordinatorShim.java
- Tethering/src/android/net/ip/IpServer.java 16 additions, 16 deletionsTethering/src/android/net/ip/IpServer.java
- Tethering/src/com/android/networkstack/tethering/BpfCoordinator.java 167 additions, 82 deletions...rc/com/android/networkstack/tethering/BpfCoordinator.java
- Tethering/tests/unit/src/android/net/ip/IpServerTest.java 28 additions, 28 deletionsTethering/tests/unit/src/android/net/ip/IpServerTest.java
- Tethering/tests/unit/src/com/android/networkstack/tethering/BpfCoordinatorTest.java 88 additions, 73 deletions...om/android/networkstack/tethering/BpfCoordinatorTest.java
Loading
Please register or sign in to comment