/** * Make an exact copy of the ARP packet. * * @return copy of the packet */ public ARP duplicate() { try { byte[] data = serialize(); return deserializer().deserialize(data, 0, data.length); } catch (DeserializationException dex) { // If we can't make an object out of the serialized data, its a defect throw new IllegalStateException(dex); } }