Searched refs:upstreamIfindex (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | BpfCoordinator.java | 258 final int upstreamIfindex = rule.upstreamIfindex; in tetherOffloadRuleAdd() local 259 if (!isAnyRuleOnUpstream(upstreamIfindex)) { in tetherOffloadRuleAdd() 263 boolean success = updateDataLimit(upstreamIfindex); in tetherOffloadRuleAdd() 265 final String iface = mInterfaceNames.get(upstreamIfindex); in tetherOffloadRuleAdd() 307 final int upstreamIfindex = rule.upstreamIfindex; in tetherOffloadRuleRemove() local 308 if (!isAnyRuleOnUpstream(upstreamIfindex)) { in tetherOffloadRuleRemove() 311 mNetd.tetherOffloadGetAndClearStats(upstreamIfindex); in tetherOffloadRuleRemove() 314 mStats.remove(upstreamIfindex); in tetherOffloadRuleRemove() 317 + upstreamIfindex + ": ", e); in tetherOffloadRuleRemove() 367 public void addUpstreamNameToLookupTable(int upstreamIfindex, @NonNull String upstreamIface) { in addUpstreamNameToLookupTable() argument [all …]
|
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | BpfCoordinatorTest.java | 300 public final int upstreamIfindex; field in BpfCoordinatorTest.TetherOffloadRuleParcelMatcher 307 upstreamIfindex = rule.upstreamIfindex; in TetherOffloadRuleParcelMatcher() 315 return upstreamIfindex == parcel.inputInterfaceIndex in matches() 325 upstreamIfindex, downstreamIfindex, address.getHostAddress(), srcMac, dstMac); in toString() 336 int upstreamIfindex, @NonNull InetAddress address, @NonNull MacAddress dstMac) { in buildTestForwardingRule() argument 337 return new Ipv6ForwardingRule(upstreamIfindex, DOWNSTREAM_IFINDEX, (Inet6Address) address, in buildTestForwardingRule() 551 coordinator.tetherOffloadRuleUpdate(mIpServer, rule.upstreamIfindex + 1 /* new */); in testTetheringConfigDisable()
|
/frameworks/base/packages/Tethering/src/android/net/ip/ |
D | IpServer.java | 704 int upstreamIfindex = 0; in updateUpstreamIPv6LinkProperties() local 728 upstreamIfindex = mDeps.getIfindex(upstreamIface); in updateUpstreamIPv6LinkProperties() 736 mBpfCoordinator.addUpstreamNameToLookupTable(upstreamIfindex, upstreamIface); in updateUpstreamIPv6LinkProperties() 745 updateIpv6ForwardingRules(mLastIPv6UpstreamIfindex, upstreamIfindex, null); in updateUpstreamIPv6LinkProperties() 746 mLastIPv6UpstreamIfindex = upstreamIfindex; in updateUpstreamIPv6LinkProperties() 879 private void updateIpv6ForwardingRules(int prevUpstreamIfindex, int upstreamIfindex, in updateIpv6ForwardingRules() argument 882 if (upstreamIfindex == 0) { in updateIpv6ForwardingRules() 889 if (prevUpstreamIfindex != upstreamIfindex) { in updateIpv6ForwardingRules() 890 updateIpv6ForwardingRule(upstreamIfindex); in updateIpv6ForwardingRules() 905 Ipv6ForwardingRule rule = new Ipv6ForwardingRule(upstreamIfindex, in updateIpv6ForwardingRules()
|
/frameworks/base/packages/Tethering/tests/unit/src/android/net/ip/ |
D | IpServerTest.java | 684 public final int upstreamIfindex; field in IpServerTest.TetherOffloadRuleParcelMatcher 688 TetherOffloadRuleParcelMatcher(int upstreamIfindex, InetAddress dst, MacAddress dstMac) { in TetherOffloadRuleParcelMatcher() argument 689 this.upstreamIfindex = upstreamIfindex; in TetherOffloadRuleParcelMatcher() 695 return upstreamIfindex == parcel.inputInterfaceIndex in matches() 705 upstreamIfindex, dst.getHostAddress(), dstMac); in toString() 711 int upstreamIfindex, InetAddress dst, MacAddress dstMac) { in matches() argument 712 return argThat(new TetherOffloadRuleParcelMatcher(upstreamIfindex, dst, dstMac)); in matches() 717 int upstreamIfindex, @NonNull InetAddress dst, @NonNull MacAddress dstMac) { in makeForwardingRule() argument 718 return new Ipv6ForwardingRule(upstreamIfindex, TEST_IFACE_PARAMS.index, in makeForwardingRule()
|