rev |
line source |
al@21068
|
1 diff -up ./Makefile.PL.tv ./Makefile.PL
|
al@21068
|
2 --- ./Makefile.PL.tv 2018-09-21 10:32:09.165570705 +0200
|
al@21068
|
3 +++ ./Makefile.PL 2018-09-21 10:45:39.096591301 +0200
|
al@21068
|
4 @@ -106,7 +106,7 @@ REASON
|
al@21068
|
5 # We also store the list of available functions in a file for skipping the
|
al@21068
|
6 # corresponding tests.
|
al@21068
|
7 my @funcs = have_functions(find_functions());
|
al@21068
|
8 -$options{DEFINE} .= cpp_defines(@funcs);
|
al@21068
|
9 +$options{DEFINE} .= cpp_defines(@funcs). "-DHAVE_PCAP_SETSAMPLING";
|
al@21068
|
10 open(FUNCS, '>funcs.txt') or warn "warning: can't write 'funcs.txt': $!\n";
|
al@21068
|
11 print FUNCS join("\n", @funcs), "\n";
|
al@21068
|
12 close(FUNCS);
|
al@21068
|
13 diff -up ./Pcap.xs.tv ./Pcap.xs
|
al@21068
|
14 diff -up ./stubs.inc.tv ./stubs.inc
|
al@21068
|
15 --- ./stubs.inc.tv 2018-09-21 10:30:08.653034412 +0200
|
al@21068
|
16 +++ ./stubs.inc 2018-09-21 10:46:41.339897943 +0200
|
al@21068
|
17 @@ -354,11 +354,6 @@ int pcap_parsesrcstr(const char *source,
|
al@21068
|
18 #ifdef _MSC_VER
|
al@21068
|
19 #pragma message( "Warning: the function pcap_open() is not available" )
|
al@21068
|
20 #endif
|
al@21068
|
21 -struct pcap_rmtauth {
|
al@21068
|
22 - int type;
|
al@21068
|
23 - char *username;
|
al@21068
|
24 - char *password;
|
al@21068
|
25 -};
|
al@21068
|
26
|
al@21068
|
27 pcap_t * pcap_open(const char *source, int snaplen, int flags, int read_timeout, struct pcap_rmtauth *auth, char *err);
|
al@21068
|
28 pcap_t * pcap_open(const char *source, int snaplen, int flags, int read_timeout, struct pcap_rmtauth *auth, char *err) {
|
al@21068
|
29 @@ -511,6 +511,7 @@ HANDLE pcap_getevent(pcap_t *p) {
|
al@21068
|
30 #ifdef _MSC_VER
|
al@21068
|
31 #pragma message( "Warning: the function pcap_setsampling() is not available" )
|
al@21068
|
32 #endif
|
al@21068
|
33 +#if 0
|
al@21068
|
34 struct pcap_samp {
|
al@21068
|
35 int method;
|
al@21068
|
36 int value;
|
al@21068
|
37 @@ -522,6 +523,7 @@ struct pcap_samp *pcap_setsampling(pcap_
|
al@21068
|
38 return NULL;
|
al@21068
|
39 }
|
al@21068
|
40 #endif
|
al@21068
|
41 +#endif
|
al@21068
|
42
|
al@21068
|
43
|
al@21068
|
44 /*
|