Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Setting promiscuous mode on i82544 driver: (4 Items)
   
Setting promiscuous mode on i82544 driver  
Hi,

looking at ifconfig and the i82544 mount options or in the forums I couldn't find how to enable promiscuous mode on the 
i82544 driver. How is it supposed to be done with io-pkt?  With io-net there was a mount option called promiscuous to do
 it.

Regards,
Peter Engstrom
RE: Setting promiscuous mode on i82544 driver  
Looking at the source, the stack makes an ioctl
into the driver which results in i82544_filter() 
being called, which puts the hardware in promiscuous 
mode if the stack has set the IFF_PROMISC bit in 
ifp->if_flags

--
aboyd

-----Original Message-----
From: Peter Engstrom [mailto:community-noreply@qnx.com] 
Sent: Monday, October 20, 2008 3:25 AM
To: ionetmig-networking
Subject: Setting promiscuous mode on i82544 driver

Hi,

looking at ifconfig and the i82544 mount options or in the forums I
couldn't find how to enable promiscuous mode on the i82544 driver. How
is it supposed to be done with io-pkt?  With io-net there was a mount
option called promiscuous to do it.

Regards,
Peter Engstrom

_______________________________________________
io-net migration
http://community.qnx.com/sf/go/post15217
Re: RE: Setting promiscuous mode on i82544 driver  
Hi,

> 
> Looking at the source, the stack makes an ioctl
> into the driver which results in i82544_filter() 
> being called, which puts the hardware in promiscuous 
> mode if the stack has set the IFF_PROMISC bit in 
> ifp->if_flags
> 

yes I have seen that code as well but how do you set the IFF_PROMISC bit? Using ifconfig?

Peter Engstrom
 



Re: RE: Setting promiscuous mode on i82544 driver  
On Mon, Oct 20, 2008 at 12:30:48PM -0400, Peter Engstrom wrote:
> Hi,
> 
> > 
> > Looking at the source, the stack makes an ioctl
> > into the driver which results in i82544_filter() 
> > being called, which puts the hardware in promiscuous 
> > mode if the stack has set the IFF_PROMISC bit in 
> > ifp->if_flags
> > 
> 
> yes I have seen that code as well but how do you set the IFF_PROMISC bit? Using ifconfig?

You can't.  IFF_PROMISC is part of IFF_CANTCHANGE.  There's
certain userland actions that poke the stack into
ifpromisc(): using the bpf BIOCPROMISC ioctl, creating a
bridge...

IIRC you've created your own lsm.  You'll probably have to
poke your lsm into calling ifpromisc().

Regards,

-seanb