[Oisf-devel] Packet Array in 1.0.x

Joel Ebrahimi jebrahimi at bivio.net
Thu Aug 19 22:19:45 UTC 2010

I'm seeing multiple problems with the array that was added to

I either exhaust memory completely or segfault. I think they both stem
from the same issue with is that the array seems to keep filling and
eventually there is an access outside of PCAP_FILE_MAX_PKTS (256) which
causes the segfaults.

Is the array supposed to hold a finite number of past packets ie. 256 or
whatever PCAP_FILE_MAX_PKTS is set to? If so then I suppose a modulus
operator or some kind of reset is needed.

// Joel 

Joel Ebrahimi
Solutions Architect
Bivio Networks
jebrahimi at bivio.net

More information about the Oisf-devel mailing list