Sean Boudreau(deleted)
|
Re: RE: Setting promiscuous mode on i82544 driver
|
Sean Boudreau(deleted)
10/20/2008 12:36 PM
post15251
|
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
|
|
|