Re: IFF_PROMISC bug?

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

 



Hello!

> For SIOCGIFFLAGS, my preference would be to manage the IFF_PROMISC bit

Before all SIOCGIFFLAGS must be managed consistently with SIOCSIFFLAGS.
All the rest of requirements are details comparing to this.

SIOCSIFFLAGS is not deprecated as api element. It is deprecated
for uses sort of made by libpcap, for uses to enable bridging etc.
I.e. any which are supposed to be interleaved.

Its global function remains for those who want this.

> actually enabled or disabled.  Thus IFF_PROMISC will reflect the true
> state of the hardware,

Are you about IFF_PROMISC or about ifconfig yet? It is not one thing. :-)

Anyway, ifconfig should show that state which it changes.
If you want to look at "true" state you may use "ip link".
What is the difference? The difference is that "ip link" _does_ _not_
_allow_ to change this flag. It is just an external state from
its viewpoint.

No problems with "improving" ifconfig to show true state too,
provided untrue one remains on its place too.

Alexey
-
: 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