On Wed, May 06, 2009 at 03:54:46PM -0700, Erik Nordmark wrote: > 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?
This change only addresses the issue with if_nameindex(). The behavior of if_nametoindex() remains the same. I'm planning to file a separate CR to deal with if_nametoindex(). Thanks, Anders _______________________________________________ networking-discuss mailing list [email protected]
