Home
last modified time | relevance | path

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

12

/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DNduseroptMessage.java48 public final int ifindex; field in NduseroptMessage
69 int ifindex, byte icmptype, byte icmpcode, @NonNull final NdOption option, in NduseroptMessage() argument
74 this.ifindex = ifindex; in NduseroptMessage()
91 ifindex = buf.getInt(); in NduseroptMessage()
126 srcaddr = Inet6Address.getByAddress(null /* hostname */, nla.nla_value, ifindex); in NduseroptMessage()
161 family, opts_len, ifindex, Byte.toUnsignedInt(icmp_type), in toString()
DStructPrefixMsg.java62 public StructPrefixMsg(short family, int ifindex, short type, short len, short flags) { in StructPrefixMsg() argument
64 this.prefix_ifindex = ifindex; in StructPrefixMsg()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTetherLimitKey.java26 public final int ifindex; // upstream interface index field in TetherLimitKey
28 public TetherLimitKey(final int ifindex) { in TetherLimitKey() argument
29 this.ifindex = ifindex; in TetherLimitKey()
/packages/modules/Connectivity/common/src/com/android/net/module/util/bpf/
DTetherStatsKey.java26 public final int ifindex; // upstream interface index field in TetherStatsKey
28 public TetherStatsKey(final int ifindex) { in TetherStatsKey() argument
29 this.ifindex = ifindex; in TetherStatsKey()
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/
DNetworkTracePoller.cpp130 uniqueIfindex.insert(pkt.ifindex); in TraceIfaces()
133 for (uint32_t ifindex : uniqueIfindex) { in TraceIfaces() local
135 if (if_indextoname(ifindex, ifname) != ifname) continue; in TraceIfaces()
138 if (bpfGetIfIndexStats(ifindex, &stats) != 0) continue; in TraceIfaces()
140 std::string rxTrack = StringPrintf("%s [%d] Rx Bytes", ifname, ifindex); in TraceIfaces()
141 std::string txTrack = StringPrintf("%s [%d] Tx Bytes", ifname, ifindex); in TraceIfaces()
DBpfNetworkStats.cpp53 Result<IfaceValue> ifindex2name(const uint32_t ifindex) { in ifindex2name() argument
54 Result<IfaceValue> v = getIfaceIndexNameMap().readValue(ifindex); in ifindex2name()
57 if (!if_indextoname(ifindex, iv.name)) return v; in ifindex2name()
58 getIfaceIndexNameMap().writeValue(ifindex, iv, BPF_ANY); in ifindex2name()
65 uint32_t ifindex = if_nametoindex(iface); in bpfRegisterIface() local
66 if (!ifindex) return; in bpfRegisterIface()
69 getIfaceIndexNameMap().writeValue(ifindex, ifname, BPF_ANY); in bpfRegisterIface()
119 int bpfGetIfIndexStatsInternal(uint32_t ifindex, StatsValue* stats, in bpfGetIfIndexStatsInternal() argument
121 auto statsEntry = ifaceStatsMap.readValue(ifindex); in bpfGetIfIndexStatsInternal()
130 int bpfGetIfIndexStats(int ifindex, StatsValue* stats) { in bpfGetIfIndexStats() argument
[all …]
DNetworkTraceHandler.cpp80 : ifindex(pkt.ifindex), in BundleKey()
106 (x).ifindex, (x).uid, (x).tag, (x).egress, (x).ipProto, (x).ipVersion, \
290 if (if_indextoname(src.ifindex, ifname) == ifname) { in Fill()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/ip/
DIpNeighborMonitor.java86 public final int ifindex; field in IpNeighborMonitor.NeighborEvent
93 public NeighborEvent(long elapsedMs, short msgType, int ifindex, @NonNull InetAddress ip, in NeighborEvent() argument
97 this.ifindex = ifindex; in NeighborEvent()
116 .add("if=" + ifindex) in toString()
160 final int ifindex = ndMsg.ndm_ifindex; in processNetlinkMessage() local
168 whenMs, msgType, ifindex, destination, nudState, in processNetlinkMessage()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/structs/
DIpv6PktInfo.java36 public final int ifindex; // interface index field in Ipv6PktInfo
38 public Ipv6PktInfo(final Inet6Address addr, final int ifindex) { in Ipv6PktInfo() argument
40 this.ifindex = ifindex; in Ipv6PktInfo()
/packages/modules/Connectivity/bpf_progs/
DdscpPolicy.c127 skb->ifindex == existing_rule->ifindex && in DEFINE_BPF_MAP_GRW()
166 if (policy->ifindex != skb->ifindex) continue; in DEFINE_BPF_MAP_GRW()
199 .ifindex = skb->ifindex, in DEFINE_BPF_MAP_GRW()
Dnetd.c317 pkt->ifindex = skb->ifindex; in do_packet_tracing()
404 if (skb->ifindex == v->iif[0]) return false; // allowed interface in ingress_should_discard()
405 if (skb->ifindex == v->iif[1]) return false; // allowed interface in ingress_should_discard()
419 if (skb->ifindex == 1) enabledRules &= ~BACKGROUND_MATCH; in bpf_owner_match()
427 if (!egress.egress && skb->ifindex != 1) { in bpf_owner_match()
430 if (allowed_iif && skb->ifindex != allowed_iif) { in bpf_owner_match()
504 StatsKey key = {.uid = uid, .tag = tag, .counterSet = 0, .ifaceIndex = skb->ifindex}; in bpf_traffic_account()
605 uint32_t key = skb->ifindex;
618 uint32_t key = skb->ifindex;
628 uint32_t key = skb->ifindex;
DdscpPolicy.h54 uint32_t ifindex; member
68 uint32_t ifindex; member
Doffload.c195 .iif = skb->ifindex,
200 .iif = skb->ifindex,
212 uint32_t stat_and_limit_k = stream.down ? skb->ifindex : v->oif;
416 .iif = skb->ifindex, in do_forward4_bottom()
431 uint32_t stat_and_limit_k = stream.down ? skb->ifindex : v->oif; in do_forward4_bottom()
Doffload@mainline.c195 .iif = skb->ifindex,
200 .iif = skb->ifindex,
212 uint32_t stat_and_limit_k = stream.down ? skb->ifindex : v->oif;
416 .iif = skb->ifindex, in do_forward4_bottom()
431 uint32_t stat_and_limit_k = stream.down ? skb->ifindex : v->oif; in do_forward4_bottom()
Dclatd.c99 .iif = skb->ifindex, in nat64()
361 .iif = skb->ifindex,
/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/Connectivity/tests/unit/java/com/android/server/connectivity/
DClatCoordinatorTest.java272 public void addAnycastSetsockopt(@NonNull FileDescriptor sock, String v6, int ifindex) in addAnycastSetsockopt() argument
276 && BASE_IFINDEX == ifindex) return; in addAnycastSetsockopt()
277 fail("unsupported args: " + sock + ", " + v6 + ", " + ifindex); in addAnycastSetsockopt()
284 public void configurePacketSocket(@NonNull FileDescriptor sock, String v6, int ifindex) in configurePacketSocket() argument
288 && BASE_IFINDEX == ifindex) return; in configurePacketSocket()
289 fail("unsupported args: " + sock + ", " + v6 + ", " + ifindex); in configurePacketSocket()
690 int ifindex) throws IOException { in testNotStartClatWithNativeFailureAddAnycastSetsockopt() argument
703 int ifindex) throws IOException { in testNotStartClatWithNativeFailureConfigurePacketSocket() argument
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/include/netdbpf/
DBpfNetworkStats.h71 int bpfGetIfIndexStatsInternal(uint32_t ifindex, StatsValue* stats,
111 int bpfGetIfIndexStats(int ifindex, StatsValue* stats);
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DClatCoordinator.java220 public void addAnycastSetsockopt(@NonNull FileDescriptor sock, String v6, int ifindex) in addAnycastSetsockopt() argument
222 native_addAnycastSetsockopt(sock, v6, ifindex); in addAnycastSetsockopt()
228 public void configurePacketSocket(@NonNull FileDescriptor sock, String v6, int ifindex) in configurePacketSocket() argument
230 native_configurePacketSocket(sock, v6, ifindex); in configurePacketSocket()
874 int ifindex) throws IOException; in native_addAnycastSetsockopt() argument
876 int ifindex) throws IOException; in native_configurePacketSocket() argument
/packages/modules/Connectivity/service/jni/
Dcom_android_server_connectivity_ClatCoordinator.cpp311 JNIEnv* env, jclass clazz, jobject javaFd, jstring addr6, jint ifindex) { in com_android_server_connectivity_ClatCoordinator_addAnycastSetsockopt() argument
327 struct ipv6_mreq mreq = {addr, ifindex}; in com_android_server_connectivity_ClatCoordinator_addAnycastSetsockopt()
337 JNIEnv* env, jclass clazz, jobject javaFd, jstring addr6, jint ifindex) { in com_android_server_connectivity_ClatCoordinator_configurePacketSocket() argument
353 int ret = net::clat::configure_packet_socket(sock, &addr, ifindex); in com_android_server_connectivity_ClatCoordinator_configurePacketSocket()
/packages/modules/NetworkStack/src/android/net/ip/
DIpClientLinkObserver.java225 private void maybeLog(String operation, int ifindex, LinkAddress address) { in maybeLog() argument
226 maybeLog(operation, "ifindex " + ifindex, address); in maybeLog()
350 private void setIfindex(int ifindex) { in setIfindex() argument
354 mIfindex = ifindex; in setIfindex()
496 if (msg.family != AF_INET6 || msg.option == null || msg.ifindex != mIfindex) return; in processNduseroptMessage()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/
DNduseroptMessageTest.java270 private void assertMatches(int family, int optsLen, int ifindex, byte icmpType, in assertMatches() argument
274 assertEquals(ifindex, msg.ifindex); in assertMatches()
/packages/modules/Connectivity/service/native/libs/libclat/
Dclatutils_test.cpp176 EXPECT_EQ(0, configure_packet_socket(s, &addr6, v6Iface.ifindex())); in TEST_F()
184 EXPECT_EQ(sll.sll_ifindex, v6Iface.ifindex()); in TEST_F()
Dclatutils.cpp220 int configure_packet_socket(const int sock, const in6_addr* const addr, const int ifindex) { in configure_packet_socket() argument
245 .sll_ifindex = ifindex, in configure_packet_socket()
/packages/modules/Connectivity/service/native/libs/libclat/include/libclat/
Dclatutils.h30 int configure_packet_socket(const int sock, const in6_addr* const addr, const int ifindex);

12