Hi Folks, As most of you already know, if_nameindex(3SOCKET) and if_indextoname(3SOCKET) will only return physical device names. It also appears that some applications expect that the interface names obtained using the API will be usable for issuing lifreq ioctls. However, if you are using the API in a non-global zone that only has logical interfaces, things break down as the zone cannot issue ioctls on interfaces that are not in the zone (so if_nametoindex(if_indextoname(1)) == 0 :-).
What do you guys think about the idea of changing if_nameindex() and if_indextoname() such that they return logical names when the physical ones are not accessible? Anders _______________________________________________ networking-discuss mailing list [email protected]
