replaced PcapDevice.getPacket() by getPackets()