[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4653895E.9000801@candelatech.com>
Date: Tue, 22 May 2007 17:22:54 -0700
From: Ben Greear <greearb@...delatech.com>
To: David Miller <davem@...emloft.net>
CC: martin.ferrari@...il.com, netdev@...r.kernel.org
Subject: Re: IFF_PROMISC again
David Miller wrote:
> From: Ben Greear <greearb@...delatech.com>
> Date: Tue, 22 May 2007 17:08:18 -0700
>
>> Anyone know the reasoning for masking out the PROMISC flag
>> in dev_get_flags() ?
>
> Because promiscuous status is a counter, not a binary
> on-off state.
>
> You can't expect to just clear it and expect all the
> other promiscuous users to just "go away" and be ok
> with the device leaving promiscuous mode.
Yes, I understand why you wouldn't let a user set promisc in this
manner.
> Since you can't sanely "set" it, we don't provide it
> either.
What harm is there letting the user know if their hardware is PROMISC
or not, regardless of how it got that way?
Also, it seems you *can* at least turn it on with ifconfig, and
you can decrement at least once with ifconfig as well. If nothing
else has promiscuity set, then this will indeed toggle the state, right?
Thanks,
Ben
--
Ben Greear <greearb@...delatech.com>
Candela Technologies Inc http://www.candelatech.com
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists