> > (1) pcap_freecode() takes different parameters in the header and in
> > the manpage.
Umm, the pcap.h header file that comes with libpcap 0.6.1 says
void pcap_freecode(struct bpf_program *);
and the pcap.3 man page that comes with libpcap 0.6.1 says
void pcap_freecode(struct bpf_program *);
which sure look like the same parameters.
Perhaps libpcap isn't correctly installed, so that you have an old
header file (prior to 0.6.1, there wasn't a "pcap_freecode()" routine in
the library, but there was a declaration for "pcap_freecode()"
nonetheless; it took an additional "pcap_t *" argument, and returned an
"int", but neither of those were necessary when we actually got around
to implementing "pcap_freecode()").
> > (2) there is no way to tell whether a bpf_program structure has been
> > initialized or not (i.e. did we compile something into it or not; did
> > we free it or not...).
The program can keep track of that itself, by keeping its own state
variable.
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe