Searched refs:upstreamIface (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/packages/Tethering/src/android/net/ip/ |
D | IpServer.java | 700 final String upstreamIface = v6only.getInterfaceName(); in updateUpstreamIPv6LinkProperties() local 706 if (params.hasDefaultRoute) params.hopLimit = getHopLimit(upstreamIface, ttlAdjustment); in updateUpstreamIPv6LinkProperties() 721 upstreamIfindex = mDeps.getIfindex(upstreamIface); in updateUpstreamIPv6LinkProperties() 729 mBpfCoordinator.addUpstreamNameToLookupTable(upstreamIfindex, upstreamIface); in updateUpstreamIPv6LinkProperties() 976 private byte getHopLimit(String upstreamIface, int adjustTTL) { in getHopLimit() argument 979 mNetd.getProcSysNet(INetd.IPV6, INetd.CONF, upstreamIface, "hop_limit")); in getHopLimit() 1225 private void cleanupUpstreamInterface(String upstreamIface) { in cleanupUpstreamInterface() argument 1231 mNetd.ipfwdRemoveInterfaceForward(mIfaceName, upstreamIface); in cleanupUpstreamInterface() 1236 mNetd.tetherRemoveForward(mIfaceName, upstreamIface); in cleanupUpstreamInterface()
|
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | BpfCoordinator.java | 367 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/ |
D | IpServerTest.java | 209 private void initTetheredStateMachine(int interfaceType, String upstreamIface) in initTetheredStateMachine() argument 211 initTetheredStateMachine(interfaceType, upstreamIface, false, in initTetheredStateMachine() 215 private void initTetheredStateMachine(int interfaceType, String upstreamIface, in initTetheredStateMachine() argument 219 if (upstreamIface != null) { in initTetheredStateMachine() 221 lp.setInterfaceName(upstreamIface); in initTetheredStateMachine() 222 dispatchTetherConnectionChanged(upstreamIface, lp, 0); in initTetheredStateMachine() 1018 private void dispatchTetherConnectionChanged(String upstreamIface, LinkProperties v6lp, in dispatchTetherConnectionChanged() argument 1020 dispatchTetherConnectionChanged(upstreamIface); in dispatchTetherConnectionChanged() 1025 private void dispatchTetherConnectionChanged(String upstreamIface) { in dispatchTetherConnectionChanged() argument 1026 final InterfaceSet ifs = (upstreamIface != null) ? new InterfaceSet(upstreamIface) : null; in dispatchTetherConnectionChanged()
|