Searched refs:upstreamIfindex (Results 1 – 4 of 4) sorted by relevance
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | BpfCoordinator.java | 640 maybeAddDevMap(rule.upstreamIfindex, rule.downstreamIfindex); in addIpv6UpstreamRule() 643 maybeSetLimit(rule.upstreamIfindex); in addIpv6UpstreamRule() 667 int upstreamIfindex = 0; in clearIpv6UpstreamRules() local 669 if (upstreamIfindex != 0 && rule.upstreamIfindex != upstreamIfindex) { in clearIpv6UpstreamRules() 672 upstreamIfindex = rule.upstreamIfindex; in clearIpv6UpstreamRules() 682 if (upstreamIfindex == 0) { in clearIpv6UpstreamRules() 686 maybeClearLimit(upstreamIfindex); in clearIpv6UpstreamRules() 698 if (rule.upstreamIfindex != NO_UPSTREAM in addIpv6DownstreamRule() 715 if (rule.upstreamIfindex != NO_UPSTREAM in removeIpv6DownstreamRule() 743 if (rule.upstreamIfindex == NO_UPSTREAM) continue; in clearIpv6DownstreamRules() [all …]
|
/packages/modules/Connectivity/Tethering/apishim/31/com/android/networkstack/tethering/apishim/api31/ |
D | BpfCoordinatorShimImpl.java | 350 final int upstreamIfindex = (int) key.iif; in tetherOffloadRuleAdd() local 351 int count = mRule4CountOnUpstream.get(upstreamIfindex, 0 /* default */); in tetherOffloadRuleAdd() 352 mRule4CountOnUpstream.put(upstreamIfindex, ++count); in tetherOffloadRuleAdd() 374 final int upstreamIfindex = (int) key.iif; in tetherOffloadRuleRemove() local 375 Integer count = mRule4CountOnUpstream.get(upstreamIfindex); in tetherOffloadRuleRemove() 377 Log.wtf(TAG, "Could not delete count for interface " + upstreamIfindex); in tetherOffloadRuleRemove() 383 mRule4CountOnUpstream.remove(upstreamIfindex); in tetherOffloadRuleRemove() 385 mRule4CountOnUpstream.put(upstreamIfindex, count); in tetherOffloadRuleRemove()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | BpfCoordinatorTest.java | 792 private void verifyStartUpstreamIpv6Forwarding(@Nullable InOrder inOrder, int upstreamIfindex, in verifyStartUpstreamIpv6Forwarding() argument 800 final Tether6Value value = new Tether6Value(upstreamIfindex, in verifyStartUpstreamIpv6Forwarding() 1229 public final int upstreamIfindex; field in BpfCoordinatorTest.TetherOffloadRuleParcelMatcher 1236 upstreamIfindex = rule.upstreamIfindex; in TetherOffloadRuleParcelMatcher() 1244 return upstreamIfindex == parcel.inputInterfaceIndex in matches() 1254 upstreamIfindex, downstreamIfindex, address.getHostAddress(), srcMac, dstMac); in toString() 1264 private static Ipv6UpstreamRule buildTestUpstreamRule(int upstreamIfindex, in buildTestUpstreamRule() argument 1266 return new Ipv6UpstreamRule(upstreamIfindex, downstreamIfindex, sourcePrefix, inDstMac, in buildTestUpstreamRule() 1272 int upstreamIfindex, @NonNull InetAddress address, @NonNull MacAddress dstMac) { in buildTestDownstreamRule() argument 1273 return new Ipv6DownstreamRule(upstreamIfindex, DOWNSTREAM_IFINDEX, in buildTestDownstreamRule() [all …]
|
/packages/modules/Connectivity/Tethering/src/android/net/ip/ |
D | IpServer.java | 973 @NonNull Set<IpPrefix> prevUpstreamPrefixes, int upstreamIfindex, in updateIpv6ForwardingRules() argument 977 if (prevUpstreamIfindex != upstreamIfindex in updateIpv6ForwardingRules() 980 getInterfaceIndexForRule(upstreamIfindex, upstreamSupportsBpf), in updateIpv6ForwardingRules()
|