Home
last modified time | relevance | path

Searched refs:targetHwAddress (Results 1 – 2 of 2) sorted by relevance

/packages/modules/NetworkStack/src/com/android/networkstack/arp/
DArpPacket.java52 public final MacAddress targetHwAddress; field in ArpPacket
55 MacAddress targetHwAddress, Inet4Address targetIp) { in ArpPacket() argument
59 this.targetHwAddress = targetHwAddress; in ArpPacket()
68 final byte[] targetIp, final byte[] targetHwAddress, byte[] senderIp, in buildArpPacket() argument
85 buf.put(targetHwAddress); // tha in buildArpPacket()
143 byte[] targetHwAddress = new byte[ETHER_ADDR_LEN]; in parseArpPacket()
145 buffer.get(targetHwAddress); in parseArpPacket()
150 MacAddress.fromBytes(targetHwAddress), in parseArpPacket()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/arp/
DArpPacketTest.java166 assertEquals(packet.targetHwAddress, MacAddress.fromBytes(TEST_TARGET_MAC_ADDR)); in testParseArpProbePacket()
177 assertEquals(packet.targetHwAddress, MacAddress.fromBytes(TEST_TARGET_MAC_ADDR)); in testParseArpAnnouncePacket()