forked from pool/perl-Net-Pcap
- updated to 0.18 [Bugfixes] - CPAN RT #77807: Net::Pcap is no longer limited to one callback function, thanks to a patch by James Rouzier. - CPAN RT #55163: Typo in eg/pcapdump (Iain Arnell and Jose Pedro Oliveira). - CPAN RT #83842: Typo in Net:Pcap (Xavier Guimard). [API] - Added pcap_offline_filter() (Martijn Lievaart). [Code] - use warnings (David Farrell). [Documentation] - Moved HISTORY from README to main documentation. - Rewrote AUTHORS to acknowledge all contributors. - Updated copyright years. [Tests] - Added timeouts to prevent tests from hanging (Patrice Auffret). - t/17-lib_version.t: adjust regexp to match Apple builds (David Farrell). - t/50-poe-component-pcap.t: small improvments. - Added t/50-net-pcap-easy.t to test with Net::Pcap::Easy. - Added t/50-anyevent-pcap.t to test with AnyEvent::Pcap. - Make t/50-* pass with old versions of Test::More [Distribution] - Converted the Changes file to CPAN::Changes::Spec format. - Makefile.PL: append CCFLAGS to $Config{ccflags} instead of overriding it. - Makefile.PL: now dies when libpcap isn't found. OBS-URL: https://build.opensuse.org/request/show/647646 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Net-Pcap?expand=0&rev=11
42 lines
1.4 KiB
Diff
42 lines
1.4 KiB
Diff
--- ./Makefile.PL 2018-09-21 10:32:09.165570705 +0200
|
|
+++ ./Makefile.PL 2018-09-21 10:45:39.096591301 +0200
|
|
@@ -106,7 +106,7 @@ REASON
|
|
# We also store the list of available functions in a file for skipping the
|
|
# corresponding tests.
|
|
my @funcs = have_functions(find_functions());
|
|
-$options{DEFINE} .= cpp_defines(@funcs);
|
|
+$options{DEFINE} .= cpp_defines(@funcs). "-DHAVE_PCAP_SETSAMPLING";
|
|
open(FUNCS, '>funcs.txt') or warn "warning: can't write 'funcs.txt': $!\n";
|
|
print FUNCS join("\n", @funcs), "\n";
|
|
close(FUNCS);
|
|
--- ./stubs.inc 2018-09-21 10:30:08.653034412 +0200
|
|
+++ ./stubs.inc 2018-09-21 10:46:41.339897943 +0200
|
|
@@ -354,11 +354,6 @@ int pcap_parsesrcstr(const char *source,
|
|
#ifdef _MSC_VER
|
|
#pragma message( "Warning: the function pcap_open() is not available" )
|
|
#endif
|
|
-struct pcap_rmtauth {
|
|
- int type;
|
|
- char *username;
|
|
- char *password;
|
|
-};
|
|
|
|
pcap_t * pcap_open(const char *source, int snaplen, int flags, int read_timeout, struct pcap_rmtauth *auth, char *err);
|
|
pcap_t * pcap_open(const char *source, int snaplen, int flags, int read_timeout, struct pcap_rmtauth *auth, char *err) {
|
|
@@ -511,6 +511,7 @@ HANDLE pcap_getevent(pcap_t *p) {
|
|
#ifdef _MSC_VER
|
|
#pragma message( "Warning: the function pcap_setsampling() is not available" )
|
|
#endif
|
|
+#if 0
|
|
struct pcap_samp {
|
|
int method;
|
|
int value;
|
|
@@ -522,6 +523,7 @@ struct pcap_samp *pcap_setsampling(pcap_
|
|
return NULL;
|
|
}
|
|
#endif
|
|
+#endif
|
|
|
|
|
|
/*
|