Home
last modified time | relevance | path

Searched refs:targetIp (Results 1 – 10 of 10) sorted by relevance

/packages/apps/TV/tuner/src/com/android/tv/tuner/hdhomerun/
DHdHomeRunDiscover.java69 int targetIp, int deviceType, int deviceId, int maxCount) { in findDevices() argument
75 int localIpSent = send(targetIp, deviceType, deviceId); in findDevices()
78 Log.d(TAG, "Cannot send to target ip: " + HdHomeRunUtils.getIpString(targetIp)); in findDevices()
196 private int send(int targetIp, int deviceType, int deviceId) { in send() argument
197 return targetIp == 0 in send()
199 : sendTargetIp(targetIp, deviceType, deviceId); in send()
209 int targetIp = discoverSocket.mLocalIp | ~discoverSocket.mSubnetMask; in sendWildcardIp() local
210 if (DEBUG) Log.d(TAG, "Send: " + HdHomeRunUtils.getIpString(targetIp)); in sendWildcardIp()
211 localIpSent += discoverSocket.send(targetIp, deviceType, deviceId) ? 1 : 0; in sendWildcardIp()
222 private int sendTargetIp(int targetIp, int deviceType, int deviceId) { in sendTargetIp() argument
[all …]
DHdHomeRunUtils.java74 int targetIp, int deviceType, int deviceId, int maxCount) { in findHdHomeRunDevices() argument
75 if (isIpMulticast(targetIp)) { in findHdHomeRunDevices()
86 ds.findDevices(targetIp, deviceType, deviceId, maxCount); in findHdHomeRunDevices()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/arp/
DArpPacket.java52 public final Inet4Address targetIp; field in ArpPacket
57 Inet4Address senderIp, MacAddress targetHwAddress, Inet4Address targetIp) { in ArpPacket() argument
64 this.targetIp = targetIp; in ArpPacket()
72 final byte[] targetIp, final byte[] targetHwAddress, byte[] senderIp, in buildArpPacket() argument
90 buf.put(targetIp); // tpa in buildArpPacket()
148 byte[] targetIp = new byte[IPV4_ADDR_LEN]; in parseArpPacket()
150 buffer.get(targetIp); in parseArpPacket()
157 (Inet4Address) InetAddress.getByAddress(targetIp)); in parseArpPacket()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DArpResponder.kt44 val targetIp = InetAddress.getByAddress( in replyToPacket() constant
48 val macAddr = table[targetIp]?.toByteArray() ?: return in replyToPacket()
56 targetIp.address /* sender IP addr */ + in replyToPacket()
58 targetIp.address /* target IP addr */ in replyToPacket()
DRouterAdvertisementResponder.java173 Inet6Address dstIp, Inet6Address targetIp) { in replyToNeighborSolicitation() argument
174 final Pair<MacAddress, Boolean> neighbor = mNeighborMap.get(targetIp); in replyToNeighborSolicitation()
187 final ByteBuffer naResponse = Ipv6Utils.buildNaPacket(srcMac, dstMac, targetIp, dstIp, in replyToNeighborSolicitation()
188 flags, targetIp, tlla); in replyToNeighborSolicitation()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DArpPacketTest.java174 assertEquals(packet.targetIp, TEST_IPV4_ADDR); in testParseArpProbePacket()
187 assertEquals(packet.targetIp, TEST_IPV4_ADDR); in testParseArpAnnouncePacket()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java1580 public boolean transmitPacket(@NonNull Inet4Address targetIp, in transmitPacket() argument
1585 targetIp.getAddress(), new byte[ETHER_ADDR_LEN], senderIp.getAddress(), in transmitPacket()
1600 && !packet.targetIp.equals(INADDR_ANY)); in isArpProbe()
1612 @NonNull Inet4Address targetIp) { in packetHasIpAddressConflict() argument
1613 return (((!packet.senderIp.equals(INADDR_ANY) && packet.senderIp.equals(targetIp)) in packetHasIpAddressConflict()
1614 || (isArpProbe(packet) && packet.targetIp.equals(targetIp))) in packetHasIpAddressConflict()
1619 @NonNull Inet4Address targetIp) { in hasIpAddressConflict() argument
1620 if (!packetHasIpAddressConflict(packet, targetIp)) return false; in hasIpAddressConflict()
1623 final String targetIpString = packet.targetIp.getHostAddress(); in hasIpAddressConflict()
1632 + " host target IP: " + targetIp.getHostAddress()); in hasIpAddressConflict()
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/
DIpClientIntegrationTestCommon.java1185 private void sendArpReply(final byte[] dstMac, final byte[] srcMac, final Inet4Address targetIp,
1187 final ByteBuffer packet = ArpPacket.buildArpPacket(dstMac, srcMac, targetIp.getAddress(),
1579 assertEquals(packet.targetIp, CLIENT_ADDR);
1593 private void assertArpRequest(final ArpPacket packet, final Inet4Address targetIp) {
1596 assertEquals(packet.targetIp, targetIp);
1605 assertEquals(packet.targetIp, CLIENT_ADDR);
3964 final Inet6Address dstIp, final Inet6Address targetIp) throws Exception {
3975 assertUnicastNeighborSolicitation(ns, dstMac, dstIp, targetIp);
4017 private void assertNotifyNeighborLost(Inet6Address targetIp, NudEventType eventType)
4024 assertNeighborReachabilityLoss(targetIp, eventType,
[all …]
/packages/modules/NetworkStack/src/android/net/ip/
DIpClient.java2018 private void sendGratuitousNA(final Inet6Address srcIp, final Inet6Address targetIp) { in sendGratuitousNA() argument
2024 srcIp, dstIp, flags, targetIp); in sendGratuitousNA()
2045 final Inet6Address targetIp) { in sendMulticastNs() argument
2048 srcIp, dstIp, targetIp); in sendMulticastNs()
2055 + dstIp.getHostAddress() + " , target IP: " + targetIp.getHostAddress()); in sendMulticastNs()
2080 final Inet6Address targetIp = (Inet6Address) la.getAddress(); in maybeSendGratuitousNAs() local
2084 if (!afterRoaming && mGratuitousNaTargetAddresses.contains(targetIp)) continue; in maybeSendGratuitousNAs()
2087 + targetIp.getHostAddress() + (afterRoaming ? " after roaming" : "")); in maybeSendGratuitousNAs()
2089 sendGratuitousNA(srcIp, targetIp); in maybeSendGratuitousNAs()
2091 mGratuitousNaTargetAddresses.add(targetIp); in maybeSendGratuitousNAs()
[all …]
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/
DTetheringTester.java281 if (!arpPacket.targetIp.equals(tethered.ipv4Addr)) continue; in maybeReplyArp()
310 return arpPacket.targetIp.equals(tetherIp); in getRouterMacAddressFromArp()