If the backing reader of a PcapReaderIterator doesn't contain enough data to complete an incomplete pcap frame, PcapReader::refill returns Ok(()) and PcapReader::next() returns Incomplete. The example setup from the docs gets stuck in this situation.
If the backing reader of a
PcapReaderIterator
doesn't contain enough data to complete an incomplete pcap frame,PcapReader::refill
returnsOk(())
andPcapReader::next()
returnsIncomplete
. The example setup from the docs gets stuck in this situation.