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@xxxxxxxxxxxxxxx> <Ben_Greear AT excite.com>
President of Candela Technologies Inc http://www.candelatech.com
ScryMUD: http://scry.wanfear.com http://scry.wanfear.com/~greear
|