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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rask Ingemann Lambertsen wrote:
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



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


dev_set_promiscuity(dev, 1);



--
Ben Greear <greearb@candelatech.com>       <Ben_Greear AT excite.com>
President of Candela Technologies Inc      http://www.candelatech.com
ScryMUD:  http://scry.wanfear.com     http://scry.wanfear.com/~greear


- : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux