On Tue, Jan 16, 2001 at 04:28:57PM +0100, Denis Ducamp wrote:
> ~/libpcap-0.6.1$ make
> gcc -O2 -I. -DHAVE_CONFIG_H -c ./pcap-linux.c
> ./pcap-linux.c:75: netinet/if_ether.h: No such file or directory
What happens if you put
#if 0
...
#endif
around the "#include <netinet/if_ether.h>" line?
If it compiles, then what we need to do is to have the configure script
check for <netinet/if_ether.h> and define or undefine
HAVE_NETINET_IF_ETHER_H, and have "pcap-linux.c" surround the include of
<netinet/if_ether.h> with
#ifdef HAVE_NETINET_IF_ETHER_H
...
#endif
and do the same in "nametoaddr.c, and tcpdump should do the same with
"addrtoname.c".
> Please repair and put back the linux-include directory
That's entirely the *wrong* solution to this problem; most of those
include files are only used to get packet layout definitions and the
like, and tcpdump/libpcap should be supplying *all* of those by itself,
and if the OS isn't supplying "if_ether.h" and that's used to declare a
function, libpcap and tcpdump should simply avoid including the header,
and declare the function elsewhere, e.g. in the "lbl/os-XXX.h" files,
where other missing declarations are supplied.
-
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