Re: [LIP] ethernet card to promiscuous mode

Binand Sethumadhavan <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <[email protected]>
On Fri, Nov 07, 2003 at 04:46:41PM +0000, Avinash Dinesh wrote:
> can anyone tell me in detail,how to set my lan card to
> promiscuous mode[to sniff all packets on the wire].

The ioctl is SIOCSIFFLAGS. You set the IFF_PROMISC flag (I think -
read the source).

Binand

-- 
Russian Roulette with Unix:
while :; do kill $RANDOM &> /dev/null && break || sleep 1; done


-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.