Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Enabling promiscous mode: (7 Items)
   
Enabling promiscous mode  
Hi,

I have installed 6.4.1 vesrsion on x86 PC.

our requirement is to enable promiscuous mode on en0 interface.

nicinfo command  displaying promiscuous mode is OFF.

is there any utility available to enable promiscuous mode ?

if not possible via utility, please guide me how to achieve this.

Regards,
Ramakrishna
Re: Enabling promiscous mode  
afaik that is a driver option.

For example check:
http://www.qnx.com/developers/docs/6.4.1/neutrino/utilities/d/devnp-speedo.so.html

-Jeevan
Re: Enabling promiscous mode  
Hi Jeevan,

Thanks for your reply.

Can I configure this using a configuration file (or start-up script) ?
if possible, Could you please let me know which configuration file (or start-up script) needs to be modified.

Can this be done via ioctl ?
if yes, what are arguments for ioctl command ?

please guide me.

Regards,
Ramakrsihna
RE: Enabling promiscous mode  
This is a bit confusing.  I will try to
clear this up.

With 6.3 (io-net) the devn-*.so drivers indeed
had a "promiscuous" command line option, to rx
all packets.

However, with 6.4 (io-pkt) the devnp-*.so drivers
do NOT pay any attention to the "promiscuous" 
command line option.  Instead, how devnp drivers
turn on promiscuous mode is that during their _init
call they look at the ifp->if_flags for IFF_PROMISC
which the stack sets.

So, for devn drivers, use the cmd line option.  For
devnp driver, you need to tell the stack to turn it
on.

--
aboyd
Re: RE: Enabling promiscous mode  
Thanks for making things clear, Andrew.
PR# 71463 has been created to get the docs right.

Jeevan
RE: Enabling promiscous mode  
RE: Enabling promiscous mode  
I talked to Seanb yesterday and confirmed that
there is currently _not_ a command line method of
turning on promiscuous mode of an interface (eg
ifconfig).

Any (eg sniffer) application - such as tcpdump - 
can programatically turn on promiscuous mode 
using an ioctl to the stack.

--
aboyd