/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | NetdEventListenerServiceTest.java | 94 final int dport = 13489; in testWakeupEventLogging() local 106 wakeupEvent(iface, uids[0], v4, tcp, mac, srcIp, dstIp, sport, dport, now); in testWakeupEventLogging() 107 wakeupEvent(iface, uids[1], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging() 108 wakeupEvent(iface, uids[2], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging() 109 wakeupEvent(iface, uids[3], v4, icmp6, mac, srcIp, dstIp, sport, dport, now); in testWakeupEventLogging() 110 wakeupEvent(iface, uids[4], v6, tcp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging() 111 wakeupEvent(iface, uids[5], v4, tcp, mac, srcIp, dstIp, sport, dport, now); in testWakeupEventLogging() 112 wakeupEvent(iface, uids[6], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging() 113 wakeupEvent(iface, uids[7], v6, tcp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging() 114 wakeupEvent("rmnet0", uids[8], v6, udp, EmptyArray.BYTE, srcIp6, dstIp6, sport, dport, now, in testWakeupEventLogging() [all …]
|
D | IpConnectivityMetricsTest.java | 333 final int dport = 13489; in testEndToEndLogging() local 338 wakeupEvent("wlan0", 1000, v4, tcp, mac, srcIp, dstIp, sport, dport, 1001L); in testEndToEndLogging() 339 wakeupEvent("wlan0", 10123, v4, tcp, mac, srcIp, dstIp, sport, dport, 1001L); in testEndToEndLogging() 340 wakeupEvent("wlan0", 1000, v4, udp, mac, srcIp, dstIp, sport, dport, 1001L); in testEndToEndLogging() 341 wakeupEvent("wlan0", 10008, v4, udp, mac, srcIp, dstIp, sport, dport, 1001L); in testEndToEndLogging() 342 wakeupEvent("wlan0", -1, v4, udp, mac, srcIp, dstIp, sport, dport, 1001L); in testEndToEndLogging() 343 wakeupEvent("wlan0", 10008, v4, tcp, mac, srcIp, dstIp, sport, dport, 1001L); in testEndToEndLogging() 606 String dstIp, int sport, int dport, long now) throws Exception { in wakeupEvent() argument 608 mNetdListener.onWakeupEvent(prefix, uid, ether, ip, mac, srcIp, dstIp, sport, dport, now); in wakeupEvent()
|
/packages/modules/Connectivity/bpf_progs/ |
D | dscpPolicy.c | 61 uint16_t dport = 0; in DEFINE_BPF_MAP_GRW() local 109 dport = ntohs(udp->dest); in DEFINE_BPF_MAP_GRW() 116 dport = ntohs(tcp->dest); in DEFINE_BPF_MAP_GRW() 129 dport == existing_rule->dst_port && in DEFINE_BPF_MAP_GRW() 186 if (dport < policy->dst_port_start) continue; in DEFINE_BPF_MAP_GRW() 187 if (dport > policy->dst_port_end) continue; in DEFINE_BPF_MAP_GRW() 201 .dst_port = dport, in DEFINE_BPF_MAP_GRW()
|
D | netd.c | 292 __be16 sport = 0, dport = 0; in do_packet_tracing() local 304 (void)bpf_skb_load_bytes_net(skb, L4_off + 2, &dport, sizeof(dport), kver); in do_packet_tracing() 311 (void)bpf_skb_load_bytes_net(skb, L4_off + 1, (char *)&dport + 1, 1, kver); //code in do_packet_tracing() 323 pkt->dport = dport; in do_packet_tracing()
|
D | netd.h | 83 __be16 dport; member
|
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/ |
D | NetworkTraceHandlerTest.cpp | 139 .dport = htons(443), in TEST_F() 146 .dport = htons(8080), in TEST_F() 171 .dport = htons(22), // code in TEST_F() 178 .dport = htons(44), // code in TEST_F() 281 PacketTrace{.timestampNs = 2, .length = 4, .dport = a, .egress = false}, in TEST_F() 283 PacketTrace{.timestampNs = 4, .length = 8, .dport = b, .egress = false}, in TEST_F() 320 PacketTrace{.timestampNs = 1, .length = 2, .dport = a, .egress = true}, in TEST_F() 322 PacketTrace{.timestampNs = 3, .length = 6, .dport = b, .egress = true}, in TEST_F()
|
D | NetworkTracePollerTest.cpp | 79 os << ", dport=" << info.dport; in operator <<() 142 if ((pkt.sport == server_port || pkt.dport == server_port) && in TEST_F() 214 EXPECT_EQ(packets[0].dport, server_port) << PacketPrinter{packets}; in TEST_F() 221 EXPECT_EQ(packets[1].dport, server_port) << PacketPrinter{packets}; in TEST_F()
|
D | NetworkTraceHandler.cpp | 94 localPort = ntohs(pkt.egress ? pkt.sport : pkt.dport); in BundleKey() 95 remotePort = ntohs(pkt.egress ? pkt.dport : pkt.sport); in BundleKey() 100 icmpCode = ntohs(pkt.dport); in BundleKey()
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/ |
D | ConntrackMessage.java | 188 int proto, Inet4Address src, int sport, Inet4Address dst, int dport, int timeoutSec) { in newIPv4TimeoutUpdateRequest() argument 200 new StructNlAttr(CTA_PROTO_DST_PORT, (short) dport, BIG_ENDIAN))); in newIPv4TimeoutUpdateRequest()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/ |
D | LegacyApfTest.java | 1101 int dport, int seq, int ack, int dataLength) { in ipv4TcpPacket() argument 1113 packet.putShort(IPV4_TCP_DEST_PORT_OFFSET, (short) dport); in ipv4TcpPacket() 1125 int dport, int seq, int ack) { in ipv6TcpPacket() argument 1132 packet.putShort(IPV6_TCP_DEST_PORT_OFFSET, (short) dport); in ipv6TcpPacket() 1194 int dport, int dataLength) { in ipv4UdpPacket() argument 1206 packet.putShort(IPV4_UDP_DEST_PORT_OFFSET, (short) dport); in ipv4UdpPacket()
|
D | ApfTest.java | 2171 int dport, int seq, int ack, int dataLength) { in ipv4TcpPacket() argument 2183 packet.putShort(IPV4_TCP_DEST_PORT_OFFSET, (short) dport); in ipv4TcpPacket() 2195 int dport, int seq, int ack) { in ipv6TcpPacket() argument 2202 packet.putShort(IPV6_TCP_DEST_PORT_OFFSET, (short) dport); in ipv6TcpPacket() 2264 int dport, int dataLength) { in ipv4UdpPacket() argument 2276 packet.putShort(IPV4_UDP_DEST_PORT_OFFSET, (short) dport); in ipv4UdpPacket()
|