Hi!

The included patch to pcap-linux.c of the libpcap library fixes this
issue. It's a patch for the pf_ring supplied version of libpcap/pcap-
linux.c of course.
If it doesn't work for you, make sure you rebuild tcpdump if 
the libs are statically linked. 

Cheers,

-Michael

--- pcap-linux.c.ring   2007-01-30 11:53:58.000000000 +0100
+++ pcap-linux.c        2007-01-30 12:01:39.000000000 +0100
@@ -483,6 +483,15 @@
 #ifdef HAVE_PF_RING
        if(handle->ring) {
  retry:
+         if (handle->break_loop) {
+                        /*
+                         * Yes - clear the flag that indicates that it
+                         * has, and return -2 as an indication that we
+                         * were told to break out of the loop.
+                         */
+                        handle->break_loop = 0;
+                        return -2;
+          }
          packet_len = pfring_recv(handle->ring, (char*)handle->buffer,
                                    handle->bufsize,
                                    (struct pfring_pkthdr*)&pcap_header,



_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc

Reply via email to