[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tcpdump-workers
Subject:    Re: [tcpdump-workers] help needed for sniffer in c++
From:       Guy Harris <guy () alum ! mit ! edu>
Date:       2004-10-06 4:59:21
Message-ID: 41637BA9.2060200 () alum ! mit ! edu
[Download RAW message or body]

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.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic