Home
last modified time | relevance | path

Searched refs:senderIp (Results 1 – 4 of 4) sorted by relevance

/packages/modules/NetworkStack/src/com/android/networkstack/arp/
DArpPacket.java49 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/
DArpPacketTest.java167 assertEquals(packet.senderIp, INADDR_ANY); in testParseArpProbePacket()
178 assertEquals(packet.senderIp, TEST_IPV4_ADDR); in testParseArpAnnouncePacket()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java1543 @NonNull Inet4Address senderIp, final byte[] hwAddr, in transmitPacket() argument
1547 targetIp.getAddress(), new byte[ETHER_ADDR_LEN], senderIp.getAddress(), in transmitPacket()
1561 return (packet.opCode == ARP_REQUEST && packet.senderIp.equals(INADDR_ANY) in isArpProbe()
1575 return (((!packet.senderIp.equals(INADDR_ANY) && packet.senderIp.equals(targetIp)) in packetHasIpAddressConflict()
1584 final String senderIpString = packet.senderIp.getHostAddress(); in hasIpAddressConflict()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTestCommon.java1141 assertEquals(packet.senderIp, INADDR_ANY);
1146 assertEquals(packet.senderIp, CLIENT_ADDR);
1151 assertEquals(packet.senderIp, CLIENT_ADDR);