Searched refs:senderIp (Results 1 – 5 of 5) sorted by relevance
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/arp/ |
D | ArpPacket.java | 51 public final Inet4Address senderIp; field in ArpPacket 57 Inet4Address senderIp, MacAddress targetHwAddress, Inet4Address targetIp) { in ArpPacket() argument 62 this.senderIp = senderIp; in ArpPacket() 72 final byte[] targetIp, final byte[] targetHwAddress, byte[] senderIp, in buildArpPacket() argument 88 buf.put(senderIp); // spa in buildArpPacket() 143 byte[] senderIp = new byte[IPV4_ADDR_LEN]; in parseArpPacket() 145 buffer.get(senderIp); in parseArpPacket() 155 (Inet4Address) InetAddress.getByAddress(senderIp), in parseArpPacket()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | ArpPacketTest.java | 173 assertEquals(packet.senderIp, INADDR_ANY); in testParseArpProbePacket() 186 assertEquals(packet.senderIp, TEST_IPV4_ADDR); in testParseArpAnnouncePacket()
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpClient.java | 1581 @NonNull Inet4Address senderIp, final byte[] hwAddr, in transmitPacket() argument 1585 targetIp.getAddress(), new byte[ETHER_ADDR_LEN], senderIp.getAddress(), in transmitPacket() 1599 return (packet.opCode == ARP_REQUEST && packet.senderIp.equals(INADDR_ANY) in isArpProbe() 1613 return (((!packet.senderIp.equals(INADDR_ANY) && packet.senderIp.equals(targetIp)) in packetHasIpAddressConflict() 1622 final String senderIpString = packet.senderIp.getHostAddress(); in hasIpAddressConflict()
|
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/ |
D | IpClientIntegrationTestCommon.java | 1186 final Inet4Address senderIp) throws IOException { 1188 dstMac /* target HW address */, senderIp.getAddress(), (short) ARP_REPLY); 1585 assertEquals(packet.senderIp, INADDR_ANY); 1590 assertEquals(packet.senderIp, CLIENT_ADDR); 1595 assertEquals(packet.senderIp, CLIENT_ADDR); 1604 assertEquals(packet.senderIp, CLIENT_ADDR); 1911 request.senderIp /* target IP */, SERVER_ADDR /* sender IP */); 4222 request.senderIp /* target IP */, SERVER_ADDR /* sender IP */); 4230 request.senderIp /* target IP */, SERVER_ADDR /* sender IP */); 5890 request.senderIp /* target IP */, SERVER_ADDR /* sender IP */);
|
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/ |
D | TetheringTester.java | 286 arpPacket.senderIp.getAddress() /* target IP */, in maybeReplyArp()
|