Searched refs:senderIp (Results 1 – 4 of 4) sorted by relevance
/packages/modules/NetworkStack/src/com/android/networkstack/arp/ |
D | ArpPacket.java | 49 public final Inet4Address senderIp; field in ArpPacket 54 ArpPacket(short opCode, MacAddress senderHwAddress, Inet4Address senderIp, in ArpPacket() argument 58 this.senderIp = senderIp; in ArpPacket() 68 final byte[] targetIp, final byte[] targetHwAddress, byte[] senderIp, in buildArpPacket() argument 84 buf.put(senderIp); // spa in buildArpPacket() 139 byte[] senderIp = new byte[IPV4_ADDR_LEN]; in parseArpPacket() 141 buffer.get(senderIp); in parseArpPacket() 149 (Inet4Address) InetAddress.getByAddress(senderIp), in parseArpPacket()
|
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/arp/ |
D | ArpPacketTest.java | 167 assertEquals(packet.senderIp, INADDR_ANY); in testParseArpProbePacket() 178 assertEquals(packet.senderIp, TEST_IPV4_ADDR); in testParseArpAnnouncePacket()
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpClient.java | 1483 @NonNull Inet4Address senderIp, final byte[] hwAddr, in transmitPacket() argument 1487 targetIp.getAddress(), new byte[ETHER_ADDR_LEN], senderIp.getAddress(), in transmitPacket() 1501 return (packet.opCode == ARP_REQUEST && packet.senderIp.equals(INADDR_ANY) in isArpProbe() 1515 return (((!packet.senderIp.equals(INADDR_ANY) && packet.senderIp.equals(targetIp)) in packetHasIpAddressConflict() 1524 final String senderIpString = packet.senderIp.getHostAddress(); in hasIpAddressConflict()
|
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/ |
D | IpClientIntegrationTest.java | 953 assertEquals(packet.senderIp, INADDR_ANY); 958 assertEquals(packet.senderIp, CLIENT_ADDR);
|