Home
last modified time | relevance | path

Searched refs:upstreamIface (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/Tethering/src/android/net/ip/
DIpServer.java707 final String upstreamIface = v6only.getInterfaceName(); in updateUpstreamIPv6LinkProperties() local
713 if (params.hasDefaultRoute) params.hopLimit = getHopLimit(upstreamIface, ttlAdjustment); in updateUpstreamIPv6LinkProperties()
728 upstreamIfindex = mDeps.getIfindex(upstreamIface); in updateUpstreamIPv6LinkProperties()
736 mBpfCoordinator.addUpstreamNameToLookupTable(upstreamIfindex, upstreamIface); in updateUpstreamIPv6LinkProperties()
983 private byte getHopLimit(String upstreamIface, int adjustTTL) { in getHopLimit() argument
986 mNetd.getProcSysNet(INetd.IPV6, INetd.CONF, upstreamIface, "hop_limit")); in getHopLimit()
1232 private void cleanupUpstreamInterface(String upstreamIface) { in cleanupUpstreamInterface() argument
1238 mNetd.ipfwdRemoveInterfaceForward(mIfaceName, upstreamIface); in cleanupUpstreamInterface()
1243 mNetd.tetherRemoveForward(mIfaceName, upstreamIface); in cleanupUpstreamInterface()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DBpfCoordinator.java367 public void addUpstreamNameToLookupTable(int upstreamIfindex, @NonNull String upstreamIface) { in addUpstreamNameToLookupTable() argument
370 if (upstreamIfindex == 0 || TextUtils.isEmpty(upstreamIface)) return; in addUpstreamNameToLookupTable()
376 mInterfaceNames.put(upstreamIfindex, upstreamIface); in addUpstreamNameToLookupTable()
377 } else if (!TextUtils.equals(iface, upstreamIface)) { in addUpstreamNameToLookupTable()
378 Log.wtf(TAG, "The upstream interface name " + upstreamIface in addUpstreamNameToLookupTable()
/frameworks/base/packages/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java199 private void initTetheredStateMachine(int interfaceType, String upstreamIface) in initTetheredStateMachine() argument
201 initTetheredStateMachine(interfaceType, upstreamIface, false, in initTetheredStateMachine()
205 private void initTetheredStateMachine(int interfaceType, String upstreamIface, in initTetheredStateMachine() argument
209 if (upstreamIface != null) { in initTetheredStateMachine()
211 lp.setInterfaceName(upstreamIface); in initTetheredStateMachine()
212 dispatchTetherConnectionChanged(upstreamIface, lp, 0); in initTetheredStateMachine()
1049 private void dispatchTetherConnectionChanged(String upstreamIface, LinkProperties v6lp, in dispatchTetherConnectionChanged() argument
1051 dispatchTetherConnectionChanged(upstreamIface); in dispatchTetherConnectionChanged()
1056 private void dispatchTetherConnectionChanged(String upstreamIface) { in dispatchTetherConnectionChanged() argument
1057 final InterfaceSet ifs = (upstreamIface != null) ? new InterfaceSet(upstreamIface) : null; in dispatchTetherConnectionChanged()