/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | BpfCoordinator.java | 547 maybeAddDevMap(rule.upstreamIfindex, rule.downstreamIfindex); in tetherOffloadRuleAdd() 550 maybeSetLimit(rule.upstreamIfindex); in tetherOffloadRuleAdd() 552 if (!isAnyRuleFromDownstreamToUpstream(rule.downstreamIfindex, rule.upstreamIfindex)) { in tetherOffloadRuleAdd() 554 final int upstream = rule.upstreamIfindex; in tetherOffloadRuleAdd() 595 if (!isAnyRuleFromDownstreamToUpstream(rule.downstreamIfindex, rule.upstreamIfindex)) { in tetherOffloadRuleRemove() 597 final int upstream = rule.upstreamIfindex; in tetherOffloadRuleRemove() 606 maybeClearLimit(rule.upstreamIfindex); in tetherOffloadRuleRemove() 665 public void addUpstreamNameToLookupTable(int upstreamIfindex, @NonNull String upstreamIface) { in addUpstreamNameToLookupTable() argument 668 if (upstreamIfindex == 0 || TextUtils.isEmpty(upstreamIface)) return; in addUpstreamNameToLookupTable() 674 final String iface = mInterfaceNames.get(upstreamIfindex); in addUpstreamNameToLookupTable() [all …]
|
/packages/modules/Connectivity/Tethering/apishim/31/com/android/networkstack/tethering/apishim/api31/ |
D | BpfCoordinatorShimImpl.java | 200 public boolean startUpstreamIpv6Forwarding(int downstreamIfindex, int upstreamIfindex, in startUpstreamIpv6Forwarding() argument 206 final Tether6Value value = new Tether6Value(upstreamIfindex, outSrcMac, in startUpstreamIpv6Forwarding() 218 public boolean stopUpstreamIpv6Forwarding(int downstreamIfindex, int upstreamIfindex, in stopUpstreamIpv6Forwarding() argument 362 final int upstreamIfindex = (int) key.iif; in tetherOffloadRuleAdd() local 363 int count = mRule4CountOnUpstream.get(upstreamIfindex, 0 /* default */); in tetherOffloadRuleAdd() 364 mRule4CountOnUpstream.put(upstreamIfindex, ++count); in tetherOffloadRuleAdd() 388 final int upstreamIfindex = (int) key.iif; in tetherOffloadRuleRemove() local 389 Integer count = mRule4CountOnUpstream.get(upstreamIfindex); in tetherOffloadRuleRemove() 391 Log.wtf(TAG, "Could not delete count for interface " + upstreamIfindex); in tetherOffloadRuleRemove() 397 mRule4CountOnUpstream.remove(upstreamIfindex); in tetherOffloadRuleRemove() [all …]
|
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/ |
D | IpServerTest.java | 815 public final int upstreamIfindex; field in IpServerTest.TetherOffloadRuleParcelMatcher 819 TetherOffloadRuleParcelMatcher(int upstreamIfindex, InetAddress dst, MacAddress dstMac) { in TetherOffloadRuleParcelMatcher() argument 820 this.upstreamIfindex = upstreamIfindex; in TetherOffloadRuleParcelMatcher() 826 return upstreamIfindex == parcel.inputInterfaceIndex in matches() 836 upstreamIfindex, dst.getHostAddress(), dstMac); in toString() 842 int upstreamIfindex, InetAddress dst, MacAddress dstMac) { in matches() argument 843 return argThat(new TetherOffloadRuleParcelMatcher(upstreamIfindex, dst, dstMac)); in matches() 848 int upstreamIfindex, @NonNull InetAddress dst, @NonNull MacAddress dstMac) { in makeForwardingRule() argument 849 return new Ipv6ForwardingRule(upstreamIfindex, TEST_IFACE_PARAMS.index, in makeForwardingRule() 854 private static TetherDownstream6Key makeDownstream6Key(int upstreamIfindex, in makeDownstream6Key() argument [all …]
|
/packages/modules/Connectivity/Tethering/apishim/common/com/android/networkstack/tethering/apishim/common/ |
D | BpfCoordinatorShim.java | 88 public abstract boolean startUpstreamIpv6Forwarding(int downstreamIfindex, int upstreamIfindex, in startUpstreamIpv6Forwarding() argument 101 int upstreamIfindex, @NonNull MacAddress inDstMac); in stopUpstreamIpv6Forwarding() argument
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | BpfCoordinatorTest.java | 445 MacAddress downstreamMac, int upstreamIfindex) throws Exception { in verifyStartUpstreamIpv6Forwarding() argument 448 final Tether6Value value = new Tether6Value(upstreamIfindex, in verifyStartUpstreamIpv6Forwarding() 747 public final int upstreamIfindex; field in BpfCoordinatorTest.TetherOffloadRuleParcelMatcher 754 upstreamIfindex = rule.upstreamIfindex; in TetherOffloadRuleParcelMatcher() 762 return upstreamIfindex == parcel.inputInterfaceIndex in matches() 772 upstreamIfindex, downstreamIfindex, address.getHostAddress(), srcMac, dstMac); in toString() 783 int upstreamIfindex, @NonNull InetAddress address, @NonNull MacAddress dstMac) { in buildTestForwardingRule() argument 784 return new Ipv6ForwardingRule(upstreamIfindex, DOWNSTREAM_IFINDEX, (Inet6Address) address, in buildTestForwardingRule() 1034 coordinator.tetherOffloadRuleUpdate(mIpServer, rule.upstreamIfindex + 1 /* new */); in checkBpfDisabled()
|
/packages/modules/Connectivity/Tethering/apishim/30/com/android/networkstack/tethering/apishim/api30/ |
D | BpfCoordinatorShimImpl.java | 84 public boolean startUpstreamIpv6Forwarding(int downstreamIfindex, int upstreamIfindex, in startUpstreamIpv6Forwarding() argument 92 int upstreamIfindex, @NonNull MacAddress inDstMac) { in stopUpstreamIpv6Forwarding() argument
|
/packages/modules/Connectivity/Tethering/src/android/net/ip/ |
D | IpServer.java | 907 private void updateIpv6ForwardingRules(int prevUpstreamIfindex, int upstreamIfindex, in updateIpv6ForwardingRules() argument 912 if (upstreamIfindex == 0 || isIpv6VcnNetworkInterface()) { in updateIpv6ForwardingRules() 919 if (prevUpstreamIfindex != upstreamIfindex) { in updateIpv6ForwardingRules() 920 updateIpv6ForwardingRule(upstreamIfindex); in updateIpv6ForwardingRules() 935 Ipv6ForwardingRule rule = new Ipv6ForwardingRule(upstreamIfindex, in updateIpv6ForwardingRules()
|