packetcap / go-pcap

Packet capture library and tools in native go
Apache License 2.0
14 stars 4 forks source link

add loop to check for packet even after loop returns without error #21

Closed deitch closed 4 years ago

deitch commented 4 years ago

Previously, if the mmap flag did not indicate it was ready for the user, we would poll. As soon as poll returned, we would start reading it. We think that leads to a conflict on the buffer. This goes into a loop on it.