Hi David, On 5/22/07, David Miller <[EMAIL PROTECTED]> wrote:
> 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, this is fully understood.
Since you can't sanely "set" it, we don't provide it either.
I think it's cleaner how is done now, but the needed information is hidden, not having a proper way of querying the counter or the real (binary) promiscuous state is a problem for userspace. Do you think the patch I suggested is not a good idea? Do you think there is a acceptable way of exporting that info to userspace? (as I just said to Ben, the /sys/.../flags file doesn't seem a very clean way of checking it). -- Martín Ferrari - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html