aregm / nff-go

NFF-Go -Network Function Framework for GO (former YANFF)
BSD 3-Clause "New" or "Revised" License
1.38k stars 156 forks source link

fix read pcap indefinitely #700

Closed mercimat closed 4 years ago

mercimat commented 4 years ago

The description of the SetReceiverFile function indicates that to read a pcap indefinitely, set repcount=-1. See here But the read function stops when comparing the current count to repcount. This PR handles the case where repcount = -1.