public byte[] listReader(ArrayList<Packet> buffer, byte[] target) {
	
		 	byte[] targetMac = new byte[6];
			//Object[] packets = buffer.toArray();

			//for(int i = 0; i < packets.length; i++) {
				
			//}
		
		Iterator<Packet> it = buffer.iterator();
		ARPPacket p = (ARPPacket) it.next();
		while(it.hasNext()) {
			p = (ARPPacket) it.next();
			if(hasIPAddress(p, target)) {
				targetMac =  p.sender_hardaddr;
				System.out.println("Target Found!");
			}
			//else{
				//System.out.println("Target not found");
				//targetMac = null;
			//}
		}
	/*	if (packets.length == 0)
			return null;
		ARPPacket p = (ARPPacket) packets[0];
		System.out.println("Sender IP address: " + p.getSenderProtocolAddress());
		System.out.println("Target IP Address: " + p.getTargetProtocolAddress());
		System.out.println("Packet Operation: " + p.operation); //0 = request, 1 = reply
		return ((ARPPacket)packets[0]).sender_hardaddr; */
		return targetMac;
	}