Hi!
Here is a patch that implements ring buffer memory option, this is, one can specify max ammount of RAM that can be used for capturing (-B command line option, like in tcpdump or tshark). As I am capturing sometimes 1500 - 2000 SIP+RTP sessions, I needed to increase this limit to 1 - 2 GiB to avoid packets dropped by the kernel. Normally, for libpcap 1.0 this limit is only 10 MiB.
Please find the patch attached (patch created using pcapsipdump SVN Rev. 41 trunk, should apply cleanly over this version). Also, I have modified the RedHat init script so it avoids the creation of 2 pcapsipdump instances.
Changes inspired by VoIP monitor (voipmonitor.org) open source package.
Nice software, keep going!
P.S. Dear admin, please delete the identical post in "Features requests", as I posted it there by mistake
Patch that implements ringbuffer commandline option
Added in SVN 42 & 43:
http://pcapsipdump.svn.sourceforge.net/viewvc/pcapsipdump/trunk/pcapsipdump.cpp?r1=43&r2=42&pathrev=43
Thank you for reporting!