On Wed, Jan 17, 2001 at 03:13:55PM +0100, Denis Ducamp wrote:
>  #include <netinet/in.h>
> -#include <netinet/if_ether.h>
> +/* #include <netinet/if_ether.h> */

Sigh.  That's what I so love about the UNIX community - they've come
quickly to a consensus about the right header file to include to declare
"ether_ntohost()", and you can just include the same header file, on all
platforms, and get it declared.

NOT.

I guess we should add tests for <netinet/if_ether.h> in the configure
scripts for libpcap and tcpdump, and, if it's missing, don't include it
(various distributions of Linux are, from what I can tell, among the
platforms where including it doesn't get "ether_ntohost()" declared, and
where you might or might not actually have it in the first place).

I'll check that in.

> Other works fine, even the "-i any" option with tcpdump :-) Except that
> "tcpdump -i any" doesn't put interfaces in promiscuous mode, is it a normal
> behaviour ?

Well, the comment in "pcap-linux.c" says:

                /*
                 * Hmm, how can we set promiscuous mode on all interfaces?
                 * I am not sure if that is possible at all.
                 */

It might be interesting to see what happens if you do that on a
PF_PACKET/SOCK_DGRAM socket (or to check the kernel code to see if
that'll work); if not, then it'll be normal behavior because that's all
the kernel lets you do.
-
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

Reply via email to