severity 548019 serious
tags 548019 patch
quit

This is caused by recent changes to libpcap, it doesn't export its
private symbols anymore.  pcap_read() is one of those, libpcap-ruby
should use pcap_dispatch() instead:

--- libpcap-ruby-0.6.orig/Pcap.c
+++ libpcap-ruby-0.6/Pcap.c
@@ -271,8 +271,6 @@
     return INT2FIX(ret);
 }
 
-int pcap_read(pcap_t *, int cnt, pcap_handler, u_char *); /* pcap-int.h */
-
 static VALUE
 capture_loop(argc, argv, self)
      int argc;
@@ -319,7 +317,7 @@
                    rb_thread_wait_fd(fd);
                }
                TRAP_BEG;
-               ret = pcap_read(cap->pcap, 1, handler, (u_char *)cap);
+               ret = pcap_dispatch(cap->pcap, 1, handler, (u_char *)cap);
                TRAP_END;
            } while (ret == 0);
            if (ret <= 0)

-- 
Romain Francoise <[email protected]>
http://people.debian.org/~rfrancoise/



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to