Hi list folks: I am searching out how to set the sin6_scope_id member field
of the sockaddr_in6 structure when it contains a link-local address.
I know that if_nametoindex() is supposed to return the scope of the
interface, given a name, e.g.
struct sockaddr_in6 sa;
sa.sin6_scope_id = if_nametoindex("eth0");
My main question is: how do I deteminre the name to pass to
if_nametoindex()? I am supporting Solaris, AIX, HP, Tru64, Linux kernels,
and Win2K and WIN IA.
Linux: I know what to do here -- read /proc/net/if_inet6,
and grab the index direcly from it. don't need to call if_nametoindex().
Solaris any ideas how to get either the name to pass to
if_nametoindex() of the index directly?
AIX any ideas?
HP any ideas?
Tru64 any ideas?
Win any ideas?
Thanks for any suggestions.
Dave McLellan --Consulting Software Engineer - SPEA Engineering
EMC Corporation
228 South St. Mail Stop: 228 LL/AA-24
Hopkinton, MA 01748 USA
+1-508-249-1257 F: +1-508-497-8030 [EMAIL PROTECTED]
---------------------------------------------------------------------
The IPv6 Users Mailing List
Unsubscribe by sending "unsubscribe users" to [EMAIL PROTECTED]