To probe network adapter properties in IPv4, we can use SIOCGIFONF, SIOCGIFNETMASK etc. On HP-UX and Solaris, the IPv6 equivalents are SIOCGLIFONF, SIOCGLIFNETMASK.
Does AIX support these ioctls (perhaps with an APAR) or are they called somethin开发者_如何学Pythong different?
A pointer to a standards document would be helpful - I googled but didn't find anything.
IBM's website implies the standard SIOCGIFCONF
on AIX like Linux is IP family independent as it uses struct sockaddr
.
http://www.ibm.com/developerworks/aix/library/au-ioctl-socket.html
Looks like there is a separate SIOCGIFCONF6 that was added to support IPv6. Not sure how to tell what version of AIX may have it.
精彩评论