Home
last modified time | relevance | path

Searched refs:ifIndex (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/java/android/net/util/
DSocketUtils.java75 public static SocketAddress makePacketSocketAddress(int protocol, int ifIndex) { in makePacketSocketAddress() argument
78 ifIndex /* sll_ifindex */, in makePacketSocketAddress()
91 public static SocketAddress makePacketSocketAddress(int ifIndex, @NonNull byte[] hwAddr) { in makePacketSocketAddress() argument
94 ifIndex /* sll_ifindex */, in makePacketSocketAddress()
107 public static SocketAddress makePacketSocketAddress(int protocol, int ifIndex, in makePacketSocketAddress() argument
111 ifIndex /* sll_ifindex */, in makePacketSocketAddress()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DBpfCoordinator.java610 private boolean sendDataLimitToNetd(int ifIndex, long quotaBytes) { in sendDataLimitToNetd() argument
611 if (ifIndex == 0) { in sendDataLimitToNetd()
617 mNetd.tetherOffloadSetInterfaceQuota(ifIndex, quotaBytes); in sendDataLimitToNetd()
632 final int ifIndex = getInterfaceIndexFromRules(iface); in maybeUpdateDataLimit() local
633 if (ifIndex == 0) return; in maybeUpdateDataLimit()
636 sendDataLimitToNetd(ifIndex, quotaBytes); in maybeUpdateDataLimit()
640 private boolean updateDataLimit(int ifIndex) { in updateDataLimit() argument
641 final String iface = mInterfaceNames.get(ifIndex); in updateDataLimit()
643 mLog.e("Fail to get the interface name for index " + ifIndex); in updateDataLimit()
647 return sendDataLimitToNetd(ifIndex, quotaBytes); in updateDataLimit()
[all …]
/frameworks/base/packages/Tethering/jni/
Dandroid_net_util_TetheringUtils.cpp33 jint ifIndex) in android_net_util_setupRaSocket() argument
82 len = sizeof(ifIndex); in android_net_util_setupRaSocket()
83 if (setsockopt(fd, IPPROTO_IPV6, IPV6_MULTICAST_IF, &ifIndex, len) != 0) { in android_net_util_setupRaSocket()
113 .ipv6mr_interface = ifIndex, in android_net_util_setupRaSocket()
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java169 private static TetherStatsParcel buildTestTetherStatsParcel(@NonNull Integer ifIndex, in buildTestTetherStatsParcel() argument
172 parcel.ifIndex = ifIndex; in buildTestTetherStatsParcel()
517 final Integer ifIndex = 100; in testTetheringConfigDisable() local
518 coordinator.addUpstreamNameToLookupTable(ifIndex, iface); in testTetheringConfigDisable()
524 final Ipv6ForwardingRule rule = buildTestForwardingRule(ifIndex, neigh, mac); in testTetheringConfigDisable()
/frameworks/base/packages/Tethering/src/android/net/util/
DTetheringUtils.java110 public static native void setupRaSocket(FileDescriptor fd, int ifIndex) in setupRaSocket() argument
/frameworks/base/packages/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java723 private static TetherStatsParcel buildEmptyTetherStatsParcel(int ifIndex) { in buildEmptyTetherStatsParcel() argument
725 parcel.ifIndex = ifIndex; in buildEmptyTetherStatsParcel()