sb.append(IPv4.fromIPv4Address(p.getDestinationAddress())); sb.append("\nnw_tos: "); sb.append(p.getDiffServ()); sb.append("\nnw_proto: "); sb.append(p.getProtocol());
ipReply.setSourceAddress(destAddress); ipReply.setTtl((byte) 64); ipReply.setDiffServ(ipRequest.getDiffServ()); ipReply.setChecksum((short) 0); ipReply.setProtocol(IPv4.PROTOCOL_ICMP);