Home
last modified time | relevance | path

Searched refs:targetIp (Results 1 – 7 of 7) 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/NetworkStack/src/com/android/networkstack/arp/
DArpPacket.java50 public final Inet4Address targetIp; field in ArpPacket
55 MacAddress targetHwAddress, Inet4Address targetIp) { in ArpPacket() argument
60 this.targetIp = targetIp; in ArpPacket()
68 final byte[] targetIp, final byte[] targetHwAddress, byte[] senderIp, in buildArpPacket() argument
86 buf.put(targetIp); // tpa in buildArpPacket()
144 byte[] targetIp = new byte[IPV4_ADDR_LEN]; in parseArpPacket()
146 buffer.get(targetIp); in parseArpPacket()
151 (Inet4Address) InetAddress.getByAddress(targetIp)); in parseArpPacket()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java1542 public boolean transmitPacket(@NonNull Inet4Address targetIp, in transmitPacket() argument
1547 targetIp.getAddress(), new byte[ETHER_ADDR_LEN], senderIp.getAddress(), in transmitPacket()
1562 && !packet.targetIp.equals(INADDR_ANY)); in isArpProbe()
1574 @NonNull Inet4Address targetIp) { in packetHasIpAddressConflict() argument
1575 return (((!packet.senderIp.equals(INADDR_ANY) && packet.senderIp.equals(targetIp)) in packetHasIpAddressConflict()
1576 || (isArpProbe(packet) && packet.targetIp.equals(targetIp))) in packetHasIpAddressConflict()
1581 @NonNull Inet4Address targetIp) { in hasIpAddressConflict() argument
1582 if (!packetHasIpAddressConflict(packet, targetIp)) return false; in hasIpAddressConflict()
1585 final String targetIpString = packet.targetIp.getHostAddress(); in hasIpAddressConflict()
1594 + " host target IP: " + targetIp.getHostAddress()); in hasIpAddressConflict()
/packages/modules/NetworkStack/src/android/net/ip/
DIpClient.java709 final Inet6Address targetIp = (Inet6Address) address.getAddress(); in IpClient()
710 if (mGratuitousNaTargetAddresses.contains(targetIp)) { in IpClient()
711 mGratuitousNaTargetAddresses.remove(targetIp); in IpClient()
713 final String msg = "Global IPv6 address: " + targetIp in IpClient()
1518 private void sendGratuitousNA(final Inet6Address srcIp, final Inet6Address targetIp) { in sendGratuitousNA() argument
1524 srcIp, dstIp, flags, targetIp); in sendGratuitousNA()
1563 final Inet6Address targetIp = (Inet6Address) la.getAddress(); in maybeSendGratuitousNAs() local
1567 if (!afterRoaming && mGratuitousNaTargetAddresses.contains(targetIp)) continue; in maybeSendGratuitousNAs()
1570 + targetIp.getHostAddress() + (afterRoaming ? " after roaming" : "")); in maybeSendGratuitousNAs()
1572 sendGratuitousNA(srcIp, targetIp); in maybeSendGratuitousNAs()
[all …]
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/arp/
DArpPacketTest.java168 assertEquals(packet.targetIp, TEST_IPV4_ADDR); in testParseArpProbePacket()
179 assertEquals(packet.targetIp, TEST_IPV4_ADDR); in testParseArpAnnouncePacket()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTestCommon.java1135 assertEquals(packet.targetIp, CLIENT_ADDR);
1152 assertEquals(packet.targetIp, CLIENT_ADDR);