New information returned by the getnameinfo() function
As of z/OS® V1R9 XL C/C++ compiler, invocations of the getnameinfo() function might need to be modified to handle interface information appended to the host name. Prior to z/OS V1R9, the getnameinfo() function ignored the zone index value in the input sockaddr_in6 structure.
- The sa argument represents an IPv6 link-local address.
- The sin6_scope_id member of sa is non-zero.
The scope information is returned in the format hostname%interface. The host name is the node name associated with the IP address in the buffer pointed to by the host argument. By default, the scope information is the interface name associated with the zone index value.
For information about options for addressing this change, see Communications Server migration actions in z/OS Migration.
For information about the getnameinfo() function, see z/OS XL C/C++ Runtime Library Reference.