[DRE-maint] Bug#548019: Making this RC + patch
Romain Francoise
rfrancoise at debian.org
Sun Oct 4 17:17:18 UTC 2009
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 <rfrancoise at debian.org>
http://people.debian.org/~rfrancoise/
More information about the Pkg-ruby-extras-maintainers
mailing list