the-tcpdump-group / libpcap

the LIBpcap interface to various kernel packet capture mechanism
https://www.tcpdump.org/
Other
2.71k stars 854 forks source link

bpf_* functions multiply defined (pcap.h vs. net/bpf.h) #1

Closed guyharris closed 11 years ago

guyharris commented 11 years ago

Converted from SourceForge issue 570998, submitted by nobody

Hello, I'm using version 0.7.1 of libpcap under linux. If I try to include pcap.h in a c++-File I get errors because the bpf- functions are defined in pcap.h and net/bpf.h and net/bpf.h is included in pcap.h. Please remove the bpf_* functions from pcap.h. You have a comment XXX this guy lives .... before the functions.

Best regards Bernd Tinkl

infrastation commented 11 years ago

Several comments were lost during import, the final resolution was "should be fixed in the next relase". Closing.