netdev
[Top] [All Lists]

Is a driver allowed to modify dev->flags?

To: linux-net@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
Subject: Is a driver allowed to modify dev->flags?
From: rask@xxxxxxxxxx (Rask Ingemann Lambertsen)
Date: Tue, 1 Apr 2003 18:49:39 +0200
Reply-to: rask@xxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
Hi.

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.

Regards,
Rask Ingemann Lambertsen



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