netdev
[Top] [All Lists]

Re: Is a driver allowed to modify dev->flags?

To: linux-net@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
Subject: Re: Is a driver allowed to modify dev->flags?
From: rask@xxxxxxxxxx (Rask Ingemann Lambertsen)
Date: Wed, 2 Apr 2003 15:01:49 +0200
References: <3e89c32348ce76.94538914@not right>
Reply-to: rask@xxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
I wrote: 

> Is a network device driver allowed to modify dev->flags? For example:
> 
> if (dev->flags & IFF_ALLMULTI)
>         dev->flags |= IFF_PROMISC;

Maybe the right question is: Is it necessary for the driver to set the 
IFF_PROMISC flag if the device enters promiscuous mode because it doesn't 
support all-multicast mode?

Regards,
Rask Ingemann Lambertsen



<Prev in Thread] Current Thread [Next in Thread>