Reputation: 2002
I am running my program on Solaris. Do I need to configure my machine to run a socket program using IPV6 APIs. Are the IPV6 APIs backward compatible? for eg can I use AF_INET6 for both the protocols IPV4 n 6 ?
Upvotes: 1
Views: 217
Reputation: 595402
No, you cannot set an OS option to control that behavior. The application code has to be specifially written to use the IPv6 APIs and differentiate between IPV4 and IPv6 connections.
No, the IPv6 APIs are not backwards-compatible. AF_INET is specific to IPv4, and AF_INET6 is specific to IPv6. However, many of the IPv4 API functions and structures were updated to support IPv6, and some new API functions and structures have been introduced that support both protocols in a more agnostic manner.
Upvotes: 2