tcpdump mailing list archives
Re: help needed for sniffer in c++
From: Guy Harris <guy () alum mit edu>
Date: Tue, 05 Oct 2004 21:59:21 -0700
akshar SNIFFER wrote:
I am writing a sniffer in C++ ,
Then this is a question that belongs in the tcpdump-workers list, not the ethereal-dev list, so I'm redirecting it there.
I have included the pcap.h header file .While compiling i get the following error/******************************************************************** In file included from test.cpp:2: /usr/include/net/bpf.h:408: error: previous declaration of `u_int bpf_filter(bpf_insn*, u_char*, unsigned int, unsigned int)' with C++ linkage /usr/include/pcap.h:201: error: conflicts with new declaration with C linkage
What OS are you building this on, and what version of libpcap does it have installed?
- This is the tcpdump-workers list. Visit https://lists.sandelman.ca/ to unsubscribe.
Current thread:
- Re: help needed for sniffer in c++ Guy Harris (Oct 05)