Home
last modified time | relevance | path

Searched refs:upstreamIfindex (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DBpfCoordinator.java258 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/
DBpfCoordinatorTest.java300 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/
DIpServer.java697 int upstreamIfindex = 0; in updateUpstreamIPv6LinkProperties() local
721 upstreamIfindex = mDeps.getIfindex(upstreamIface); in updateUpstreamIPv6LinkProperties()
729 mBpfCoordinator.addUpstreamNameToLookupTable(upstreamIfindex, upstreamIface); in updateUpstreamIPv6LinkProperties()
738 updateIpv6ForwardingRules(mLastIPv6UpstreamIfindex, upstreamIfindex, null); in updateUpstreamIPv6LinkProperties()
739 mLastIPv6UpstreamIfindex = upstreamIfindex; in updateUpstreamIPv6LinkProperties()
872 private void updateIpv6ForwardingRules(int prevUpstreamIfindex, int upstreamIfindex, in updateIpv6ForwardingRules() argument
875 if (upstreamIfindex == 0) { in updateIpv6ForwardingRules()
882 if (prevUpstreamIfindex != upstreamIfindex) { in updateIpv6ForwardingRules()
883 updateIpv6ForwardingRule(upstreamIfindex); in updateIpv6ForwardingRules()
898 Ipv6ForwardingRule rule = new Ipv6ForwardingRule(upstreamIfindex, in updateIpv6ForwardingRules()
/frameworks/base/packages/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java678 public final int upstreamIfindex; field in IpServerTest.TetherOffloadRuleParcelMatcher
682 TetherOffloadRuleParcelMatcher(int upstreamIfindex, InetAddress dst, MacAddress dstMac) { in TetherOffloadRuleParcelMatcher() argument
683 this.upstreamIfindex = upstreamIfindex; in TetherOffloadRuleParcelMatcher()
689 return upstreamIfindex == parcel.inputInterfaceIndex in matches()
699 upstreamIfindex, dst.getHostAddress(), dstMac); in toString()
705 int upstreamIfindex, InetAddress dst, MacAddress dstMac) { in matches() argument
706 return argThat(new TetherOffloadRuleParcelMatcher(upstreamIfindex, dst, dstMac)); in matches()
711 int upstreamIfindex, @NonNull InetAddress dst, @NonNull MacAddress dstMac) { in makeForwardingRule() argument
712 return new Ipv6ForwardingRule(upstreamIfindex, TEST_IFACE_PARAMS.index, in makeForwardingRule()