Ethereal-dev: Re: [Ethereal-dev] promiscuous socket.

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Fri, 13 May 2005 11:18:25 +0200
Andrea G Forte wrote:

> Hi all,
>
> I am trying to write a very small sniffer in C to get familiar with
> this kind of apps.
> One  problem that I am facing is that even though I have set the
> interface in promiscuous mode, I can only see my own traffic and
> nothing else.
> I am using the IFF_PROMISC flag.
> Anyone has any idea why I cannot sniff anything else?
>
You might try Ethereal with the promiscuous mode to see if you can see
anything else at all, see also:
http://wiki.ethereal.com/CaptureSetup_2fEthernet

I don't know using a socket for capturing, we use the libpcap/Winpcap
library for it, which is far more protable ...

Regards, ULFL