[Top] [All Lists]

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

To: rask@xxxxxxxxxx
Subject: Re: Is a driver allowed to modify dev->flags?
From: Ben Greear <greearb@xxxxxxxxxxxxxxx>
Date: Tue, 01 Apr 2003 08:58:06 -0800
Cc: linux-net@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <3e89c32348ce76.94538914@not right>
Organization: Candela Technologies
References: <3e89c32348ce76.94538914@not right>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030210
Rask Ingemann Lambertsen wrote:

Is a network device driver allowed to modify dev->flags? For example:

if (dev->flags & IFF_ALLMULTI)
        dev->flags |= IFF_PROMISC;

I've found it to cause the IFF_PROMISC flag to stick when using "tcpdump -p", 
which to my surprice sets the IFF_ALLMULTI flag.

Rask Ingemann Lambertsen

You are supposed to increment the promisc requestors.  I think something like 

dev_set_promiscuity(dev, 1);

Ben Greear <greearb@xxxxxxxxxxxxxxx>       <Ben_Greear AT>
President of Candela Technologies Inc

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