"David S. Miller" wrote:
> From: Jeff Garzik <jgarzik@xxxxxxxxxxxxxxxx>
> Date: Wed, 13 Feb 2002 01:30:47 -0500
> Please help me understand the compatibility issues that prevent this,
> given what I've just described...
> What if you have a "promisc" count of 4, and SIOCSIFFLAGS asks to turn
> IFF_PROMISC off? There is no logical way to perform such an
Agreed. Why must that affect SIOCGIFFLAGS reporting?
This is standard interface stuff, operation 'get' returns present state,
operation 'set' updates present state, if possible and allowed.
Whether ifconfig should be updated is a tangent issue (though a good
suggestion IMHO, David). [further tangent, 'ifconfig eth0 promisc' may
follow a buggy code path?]
I still want to support IFF_PROMISC in SIOCGIFFLAGS because it is
clearly possible given the net driver API if nothing else, because it
broke a security program that called that ioctl to check for unwanted
promisc users, and because it might break other security-related
programs and scripts. Sound OK?
 i.e. the bug report that led me to this subject
Jeff Garzik | "I went through my candy like hot oatmeal
Building 1024 | through an internally-buttered weasel."
MandrakeSoft | - goats.com