Anders Persson wrote:
Hi Folks,
Would someone be able to do code review for:
6640675 if_nameindex() broken when used in non-global zone
Currently if_nameindex() will return an interface index value of zero
for all interfaces. The problem is that if_nameindex() truncates the
interface name before issuing the SIOCGIFINDEX ioctl.
Note that this fix does not change the semantics at all; only physical
interface names will still be returned.
The webrev is available at:
http://cr.opensolaris.org/~anders/if_nameindex/
Looks good.
Does this make all the operations work in a shared-IP zone, or only some
of them?
For instance, can an application take if_nametoindex(bge0) and/or
if_nametoindex(bge0:2) if it is in a zone that has bge0:2?
Erik
_______________________________________________
networking-discuss mailing list
[email protected]