Home
last modified time | relevance | path

Searched refs:dstIp (Results 1 – 25 of 37) sorted by relevance

12

/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/
DIpv6Utils.java51 public static ByteBuffer buildIcmpv6Packet(final Inet6Address srcIp, final Inet6Address dstIp, in buildIcmpv6Packet() argument
63 (byte) IPPROTO_ICMPV6 /* next header */, (byte) 0xff /* hop limit */, srcIp, dstIp); in buildIcmpv6Packet()
88 final Inet6Address srcIp, final Inet6Address dstIp, short type, short code, in buildIcmpv6Packet() argument
90 final ByteBuffer payload = buildIcmpv6Packet(srcIp, dstIp, type, code, options); in buildIcmpv6Packet()
119 final Inet6Address srcIp, final Inet6Address dstIp, final byte flags, in buildRaPacket() argument
126 return buildIcmpv6Packet(srcMac, dstMac, srcIp, dstIp, in buildRaPacket()
134 final Inet6Address srcIp, final Inet6Address dstIp, final int flags, in buildNaPacket() argument
139 return buildIcmpv6Packet(srcMac, dstMac, srcIp, dstIp, in buildNaPacket()
147 final Inet6Address srcIp, final Inet6Address dstIp, in buildNsPacket() argument
152 return buildIcmpv6Packet(srcMac, dstMac, srcIp, dstIp, in buildNsPacket()
[all …]
DPacketBuilder.java125 byte protocol, @NonNull final Inet4Address srcIp, @NonNull final Inet4Address dstIp) in writeIpv4Header() argument
131 (short) 0 /* checksum, calculate in #finalizePacket */, srcIp, dstIp); in writeIpv4Header()
151 @NonNull final Inet6Address srcIp, @NonNull final Inet6Address dstIp) in writeIpv6Header() argument
156 hopLimit, srcIp, dstIp); in writeIpv6Header()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNetdEventListenerServiceTest.java90 final String dstIp = "192.168.2.23"; in testWakeupEventLogging() local
106 wakeupEvent(iface, uids[0], v4, tcp, mac, srcIp, dstIp, sport, dport, now); in testWakeupEventLogging()
109 wakeupEvent(iface, uids[3], v4, icmp6, mac, srcIp, dstIp, sport, dport, now); in testWakeupEventLogging()
111 wakeupEvent(iface, uids[5], v4, tcp, mac, srcIp, dstIp, sport, dport, now); in testWakeupEventLogging()
139 wakeupEvent(iface, uid, 0x800, 6, mac, srcIp, dstIp, 23, 24, ts); in testWakeupEventLogging()
157 wakeupEvent(iface, uid, 0x800, 6, mac, srcIp, dstIp, 23, 24, now); in testWakeupEventLogging()
170 final String dstIp = "192.168.2.23"; in testWakeupStatsLogging() local
183 wakeupEvent("wlan0", 1000, v4, tcp, mac, srcIp, dstIp, sport, dport, now); in testWakeupStatsLogging()
184 wakeupEvent("rmnet0", 10123, v4, tcp, mac, srcIp, dstIp, sport, dport, now, in testWakeupStatsLogging()
186 wakeupEvent("wlan0", 1000, v4, udp, mac, srcIp, dstIp, sport, dport, now); in testWakeupStatsLogging()
[all …]
DIpConnectivityMetricsTest.java331 final String dstIp = "192.168.2.23"; 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/staticlibs/device/com/android/net/module/util/structs/
DIpv4Header.java71 public final Inet4Address dstIp; field in Ipv4Header
75 final short checksum, final Inet4Address srcIp, final Inet4Address dstIp) { in Ipv4Header() argument
77 protocol, checksum, srcIp, dstIp); in Ipv4Header()
82 final short checksum, final Inet4Address srcIp, final Inet4Address dstIp) { in Ipv4Header() argument
92 this.dstIp = dstIp; in Ipv4Header()
DIpv6Header.java64 public Inet6Address dstIp; field in Ipv6Header
67 final short hopLimit, final Inet6Address srcIp, final Inet6Address dstIp) { in Ipv6Header() argument
73 this.dstIp = dstIp; in Ipv6Header()
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/
DTetheringTester.java688 @NonNull final InetAddress srcIp, @NonNull final InetAddress dstIp,
691 final int ipProto = getIpProto(srcIp, dstIp);
700 packetBuilder.writeL2Header(srcMac, dstMac, getEthType(srcIp, dstIp));
706 TIME_TO_LIVE, (byte) IPPROTO_UDP, (Inet4Address) srcIp, (Inet4Address) dstIp);
709 HOP_LIMIT, (Inet6Address) srcIp, (Inet6Address) dstIp);
728 @NonNull final InetAddress dstIp, short srcPort, short dstPort,
730 return buildUdpPacket(null /* srcMac */, null /* dstMac */, srcIp, dstIp, srcPort,
737 @NonNull final InetAddress srcIp, @NonNull final InetAddress dstIp,
740 final int ipProto = getIpProto(srcIp, dstIp);
748 packetBuilder.writeL2Header(srcMac, dstMac, getEthType(srcIp, dstIp));
[all …]
DEthernetTetheringTestBase.java665 @NonNull final InetAddress dstIp, @NonNull final TetheringTester tester, in sendDownloadPacketUdp() argument
668 assertFalse("CLAT download test must sends IPv6 packet", isAddressIpv4(srcIp, dstIp)); in sendDownloadPacketUdp()
674 final boolean isIpv4 = is6To4 ? true : isAddressIpv4(srcIp, dstIp); in sendDownloadPacketUdp()
676 final ByteBuffer testPacket = buildUdpPacket(srcIp, dstIp, REMOTE_PORT /* srcPort */, in sendDownloadPacketUdp()
686 @NonNull final InetAddress dstIp, @NonNull final TetheringTester tester, in sendUploadPacketUdp() argument
689 assertTrue("CLAT upload test must sends IPv4 packet", isAddressIpv4(srcIp, dstIp)); in sendUploadPacketUdp()
695 final boolean isIpv4 = is4To6 ? false : isAddressIpv4(srcIp, dstIp); in sendUploadPacketUdp()
697 final ByteBuffer testPacket = buildUdpPacket(srcMac, dstMac, srcIp, dstIp, in sendUploadPacketUdp()
706 @NonNull final InetAddress dstIp, short seq, short ack, byte tcpFlags, in sendDownloadPacketTcp() argument
710 assertFalse("CLAT download test must sends IPv6 packet", isAddressIpv4(srcIp, dstIp)); in sendDownloadPacketTcp()
[all …]
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DConntrackMessage.java104 public final Inet4Address dstIp; field in ConntrackMessage.Tuple
115 this.dstIp = ip.dst; in Tuple()
127 && Objects.equals(this.dstIp, that.dstIp) in equals()
135 return Objects.hash(srcIp, dstIp, srcPort, dstPort, protoNum); in hashCode()
141 final String dstIpStr = (dstIp == null) ? "null" : dstIp.getHostAddress(); in toString()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DIpv6UtilsTest.java67 assertEquals(ALL_ROUTERS, ipv6.dstIp); in testBuildRsPacket()
96 assertEquals(ALL_NODES, ipv6.dstIp); in testBuildRaPacket()
127 assertEquals(ALL_NODES, ipv6.dstIp); in testBuildEchoRequestPacket()
142 assertEquals(ALL_NODES, ipv6.dstIp); in testBuildEchoReplyPacket()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/
DConntrackMessageTest.java174 conntrackMessage.tupleOrig.dstIp); in testConntrackParseIPv4TcpTimeoutUpdate()
223 conntrackMessage.tupleOrig.dstIp); in testConntrackParseIPv4UdpTimeoutUpdate()
317 conntrackMessage.tupleOrig.dstIp); in testParseCtNew()
325 conntrackMessage.tupleReply.dstIp); in testParseCtNew()
/packages/modules/NetworkStack/src/com/android/networkstack/packets/
DNeighborAdvertisement.java96 @NonNull final Inet6Address dstIp, int flags, @NonNull final Inet6Address target) { in build() argument
98 return Ipv6Utils.buildNaPacket(srcMac, dstMac, srcIp, dstIp, flags, target, tlla); in build()
DNeighborSolicitation.java96 @NonNull final Inet6Address dstIp, @NonNull final Inet6Address target) { in build() argument
98 return Ipv6Utils.buildNsPacket(srcMac, dstMac, srcIp, dstIp, target, slla); in build()
/packages/modules/Connectivity/staticlibs/netd/binder/android/net/metrics/
DINetdEventListener.aidl94 String srcIp, String dstIp, int srcPort, int dstPort, long timestampNs); in onWakeupEvent() argument
/packages/modules/Connectivity/staticlibs/client-libs/netd/com/android/net/module/util/
DBaseNetdEventListener.java41 int ipNextHeader, byte[] dstHw, String srcIp, String dstIp, in onWakeupEvent() argument
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DRouterAdvertisementResponder.java173 Inet6Address dstIp, Inet6Address targetIp) { in replyToNeighborSolicitation() argument
187 final ByteBuffer naResponse = Ipv6Utils.buildNaPacket(srcMac, dstMac, targetIp, dstIp, in replyToNeighborSolicitation()
/packages/modules/Connectivity/staticlibs/netd/aidl_api/netd_event_listener_interface/1/android/net/metrics/
DINetdEventListener.aidl23 …d, int ethertype, int ipNextHeader, in byte[] dstHw, String srcIp, String dstIp, int srcPort, int … in onWakeupEvent() argument
/packages/modules/Connectivity/staticlibs/netd/aidl_api/netd_event_listener_interface/2/android/net/metrics/
DINetdEventListener.aidl40 …d, int ethertype, int ipNextHeader, in byte[] dstHw, String srcIp, String dstIp, int srcPort, int … in onWakeupEvent() argument
/packages/modules/Connectivity/staticlibs/netd/aidl_api/netd_event_listener_interface/current/android/net/metrics/
DINetdEventListener.aidl24 …d, int ethertype, int ipNextHeader, in byte[] dstHw, String srcIp, String dstIp, int srcPort, int … in onWakeupEvent() argument
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DQosPolicyRequestHandlerTest.java110 int dscp, @Nullable byte[] srcIp, @Nullable byte[] dstIp, in createQosPolicyRequest() argument
115 dstIp != null, dstIp, in createQosPolicyRequest()
/packages/modules/Connectivity/Tethering/tests/integration/src/android/net/
DEthernetTetheringTest.java672 @NonNull final Inet4Address dstIp, short srcPort, short dstPort, short dnsId, in sendDownloadPacketDnsV4() argument
678 (InetAddress) dstIp, srcPort, dstPort, dnsReplyMessage); in sendDownloadPacketDnsV4()
691 @NonNull final Inet4Address dstIp, short srcPort, short dstPort, in sendUploadPacketDnsV4() argument
693 final ByteBuffer testPacket = buildUdpPacket(srcMac, dstMac, srcIp, dstIp, in sendUploadPacketDnsV4()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DDscpPolicyTest.kt364 val dstIp = if (sendV6) Inet6Address.getByAddress(ipAddr) in <lambda>() constant
367 Log.e(TAG, "IP Src:" + srcIp + " dst: " + dstIp) in <lambda>()
369 if ((sendV6 && srcIp == srcAddressV6 && dstIp == TEST_TARGET_IPV6_ADDR) || in <lambda>()
370 (!sendV6 && srcIp == LOCAL_IPV4_ADDRESS && dstIp == TEST_TARGET_IPV4_ADDR)) { in <lambda>()
/packages/modules/NetworkStack/src/android/net/ip/
DIpClient.java2020 final Inet6Address dstIp = IPV6_ADDR_ALL_ROUTERS_MULTICAST; in sendGratuitousNA() local
2022 final MacAddress dstMac = NetworkStackUtils.ipv6MulticastToEthernetMulticast(dstIp); in sendGratuitousNA()
2024 srcIp, dstIp, flags, targetIp); in sendGratuitousNA()
2044 private void sendMulticastNs(final Inet6Address srcIp, final Inet6Address dstIp, in sendMulticastNs() argument
2046 final MacAddress dstMac = NetworkStackUtils.ipv6MulticastToEthernetMulticast(dstIp); in sendMulticastNs()
2048 srcIp, dstIp, targetIp); in sendMulticastNs()
2055 + dstIp.getHostAddress() + " , target IP: " + targetIp.getHostAddress()); in sendMulticastNs()
2130 final Inet6Address dstIp = NetworkStackUtils.ipv6AddressToSolicitedNodeMulticast(targetIp); in maybeSendMulticastNSes()
2131 if (dstIp == null) return; in maybeSendMulticastNSes()
2137 sendMulticastNs(srcIp, dstIp, targetIp); in maybeSendMulticastNSes()
/packages/modules/Connectivity/Tethering/tests/privileged/src/android/net/ip/
DRouterAdvertisementDaemonTest.java179 assertEquals(ipv6Hdr.dstIp, IPV6_ADDR_ALL_NODES_MULTICAST); in isPacketMatched()
183 assertTrue(ipv6Hdr.dstIp.isLinkLocalAddress()); in isPacketMatched()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/packets/
DNeighborSolicitationTest.java216 assertEquals(TEST_DST_ADDR, ns.ipv6Hdr.dstIp); in assertNeighborSolicitation()

12