Home
last modified time | relevance | path

Searched refs:UPSTREAM_IFINDEX (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java150 private static final int UPSTREAM_IFINDEX = 101; field in IpServerTest
161 UPSTREAM_IFACE, UPSTREAM_IFINDEX, MacAddress.ALL_ZEROS_ADDRESS, 1500 /* defaultMtu */);
490 inOrder.verify(mBpfCoordinator).addUpstreamNameToLookupTable(UPSTREAM_IFINDEX, in handlesFirstUpstreamChange()
973 when(mNetd.tetherOffloadGetAndClearStats(UPSTREAM_IFINDEX)) in resetNetdBpfMapAndCoordinator()
974 .thenReturn(buildEmptyTetherStatsParcel(UPSTREAM_IFINDEX)); in resetNetdBpfMapAndCoordinator()
980 when(mBpfStatsMap.getValue(new TetherStatsKey(UPSTREAM_IFINDEX))).thenReturn(allZeros); in resetNetdBpfMapAndCoordinator()
1013 mIpServer, makeForwardingRule(UPSTREAM_IFINDEX, neighA, macA)); in addRemoveipv6ForwardingRules()
1015 UPSTREAM_IFINDEX, UPSTREAM_IFACE_PARAMS.macAddr, neighA, macA); in addRemoveipv6ForwardingRules()
1016 verifyStartUpstreamIpv6Forwarding(null, UPSTREAM_IFINDEX); in addRemoveipv6ForwardingRules()
1021 mIpServer, makeForwardingRule(UPSTREAM_IFINDEX, neighB, macB)); in addRemoveipv6ForwardingRules()
[all …]
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java140 private static final int UPSTREAM_IFINDEX = 1001; field in BpfCoordinatorTest
153 UPSTREAM_IFACE, UPSTREAM_IFINDEX, null /* macAddr, rawip */,
1345 return new Tether4Key(UPSTREAM_IFINDEX, in makeDownstream4Key()
1352 return new Tether4Value(UPSTREAM_IFINDEX, in makeUpstream4Value()
1425 coordinator.addUpstreamNameToLookupTable(UPSTREAM_IFINDEX, UPSTREAM_IFACE); in initBpfCoordinatorForRule4()
1463 verifyTetherOffloadSetInterfaceQuota(inOrder, UPSTREAM_IFINDEX, limit, true /* isInit */); in testSetDataLimitOnRule4Change()
1488 buildTestTetherStatsParcel(UPSTREAM_IFINDEX, 0, 0, 0, 0)); in testSetDataLimitOnRule4Change()
1492 verifyTetherOffloadGetAndClearStats(inOrder, UPSTREAM_IFINDEX); in testSetDataLimitOnRule4Change()
1501 coordinator.addUpstreamNameToLookupTable(UPSTREAM_IFINDEX, UPSTREAM_IFACE); in testAddDevMapRule6()
1502 final Ipv6ForwardingRule ruleA = buildTestForwardingRule(UPSTREAM_IFINDEX, NEIGH_A, MAC_A); in testAddDevMapRule6()
[all …]