Home
last modified time | relevance | path

Searched refs:ifindex (Results 1 – 14 of 14) sorted by relevance

/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTetherStatsKey.java26 public final long ifindex; // upstream interface index field in TetherStatsKey
28 public TetherStatsKey(final long ifindex) { in TetherStatsKey() argument
29 this.ifindex = ifindex; in TetherStatsKey()
41 return ifindex == that.ifindex; in equals()
46 return Long.hashCode(ifindex); in hashCode()
51 return String.format("ifindex: %d", ifindex); in toString()
DTetherLimitKey.java26 public final long ifindex; // upstream interface index field in TetherLimitKey
28 public TetherLimitKey(final long ifindex) { in TetherLimitKey() argument
29 this.ifindex = ifindex; in TetherLimitKey()
41 return ifindex == that.ifindex; in equals()
46 return Long.hashCode(ifindex); in hashCode()
51 return String.format("ifindex: %d", ifindex); in toString()
DBpfCoordinator.java915 private String getIfName(long ifindex) { in getIfName() argument
916 return mInterfaceNames.get((int) ifindex, Long.toString(ifindex)); in getIfName()
/packages/modules/NetworkStack/common/moduleutils/src/android/net/ip/
DIpNeighborMonitor.java81 final int ifindex; field in IpNeighborMonitor.NeighborEvent
86 public NeighborEvent(long elapsedMs, short msgType, int ifindex, InetAddress ip, in NeighborEvent() argument
90 this.ifindex = ifindex; in NeighborEvent()
109 .add("if=" + ifindex) in toString()
145 final int ifindex = ndMsg.ndm_ifindex; in processNetlinkMessage() local
153 whenMs, msgType, ifindex, destination, nudState, in processNetlinkMessage()
/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/
DNduseroptMessage.java46 public final int ifindex; field in NduseroptMessage
74 ifindex = buf.getInt(); in NduseroptMessage()
105 srcaddr = Inet6Address.getByAddress(null /* hostname */, nla.nla_value, ifindex); in NduseroptMessage()
138 family, opts_len, ifindex, Byte.toUnsignedInt(icmp_type), in toString()
/packages/modules/adb/client/openscreen/platform/
Dudp_socket.cpp265 void SetMulticastOutboundInterface(NetworkInterfaceIndex ifindex) override { in SetMulticastOutboundInterface() argument
272 *mdns_ifindex_ = ifindex; in SetMulticastOutboundInterface()
274 LOG(INFO) << "SetMulticastOutboundInterface for index=" << ifindex; in SetMulticastOutboundInterface()
312 const auto index = static_cast<IPv6NetworkInterfaceIndex>(ifindex); in SetMulticastOutboundInterface()
324 MdnsBind(ifindex); in SetMulticastOutboundInterface()
329 void JoinMulticastGroup(const IPAddress& address, NetworkInterfaceIndex ifindex) override { in JoinMulticastGroup() argument
374 .ipv6mr_interface = static_cast<IPv6NetworkInterfaceIndex>(ifindex), in JoinMulticastGroup()
486 void MdnsBind(NetworkInterfaceIndex ifindex) { in JoinMulticastGroup() argument
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
DNduseroptMessageTest.java229 private void assertMatches(int family, int optsLen, int ifindex, byte icmpType, in assertMatches() argument
233 assertEquals(ifindex, msg.ifindex); in assertMatches()
/packages/modules/Connectivity/Tethering/bpf_progs/
Doffload.c172 .iif = skb->ifindex,
177 .iif = skb->ifindex,
187 uint32_t stat_and_limit_k = downstream ? skb->ifindex : v->oif;
485 .iif = skb->ifindex, in do_forward4()
500 uint32_t stat_and_limit_k = downstream ? skb->ifindex : v->oif; in do_forward4()
Dbpf_net_helpers.h48 static int (*bpf_redirect)(__u32 ifindex, __u64 flags) = (void*)BPF_FUNC_redirect;
/packages/modules/NetworkStack/src/android/net/ip/
DIpClientLinkObserver.java326 void setIfindex(int ifindex) { in setIfindex() argument
327 mIfindex = ifindex; in setIfindex()
412 if (msg.family != AF_INET6 || msg.option == null || msg.ifindex != mIfindex) return; in processNduseroptMessage()
DIpReachabilityMonitor.java236 if (mInterfaceParams.index != event.ifindex) return;
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java770 private void recvNewNeigh(int ifindex, InetAddress addr, short nudState, MacAddress mac) { in recvNewNeigh() argument
771 mNeighborEventConsumer.accept(new NeighborEvent(0, RTM_NEWNEIGH, ifindex, addr, in recvNewNeigh()
776 private void recvDelNeigh(int ifindex, InetAddress addr, short nudState, MacAddress mac) { in recvDelNeigh() argument
777 mNeighborEventConsumer.accept(new NeighborEvent(0, RTM_DELNEIGH, ifindex, addr, in recvDelNeigh()
/packages/modules/Connectivity/Tethering/apishim/31/com/android/networkstack/tethering/apishim/api31/
DBpfCoordinatorShimImpl.java241 mBpfStatsMap.forEach((key, value) -> tetherStatsList.put((int) key.ifindex, value)); in tetherOffloadGetStats()
/packages/modules/Connectivity/Tethering/src/android/net/ip/
DIpServer.java971 && mInterfaceParams.index == e.ifindex in handleNeighborEvent()