HP-UX IPv6 Porting Guide (September 2004)

Table Of Contents
IPv4 to IPv6 Quick Reference Guide
Summary: Source Code Symbols and Function Changes
Appendix A 71
Summary: Source Code Symbols and Function Changes
The following tables cover changes in the source code symbols and functions that Socket
Application programmers need to be aware of when porting code to support IPv6.
Changes to Symbols, Data Structures, and Function Calls
Table A-1 Changes to Symbols, Data Structures, and Function Calls
Search source code for: Replace with:
Symbols
AF_INET
PF_INET
AF_INET6
PF_INET6
Data Structures
sockaddr_in
u_short sin_family
in_port_t sin_port
sin_addr struct in_addr
sockaddr_in6
shortsin6_family;
u_shortsin6_port;
uint32_tsin6_flowinfo;
struct in6_addrsin6_addr;
uint32_tsin6_scope_id
ifreq
ifconf
struct if_laddrreq
struct if_laddrconf
Function Calls
gethostbyname() getaddrinfo() or getipnodebyname(),
freeaddrinfo()
gethostbyaddr() getipnodebyaddr(),getnameinfo(),
freeaddrinfo()
inet_ntoa()
inet_addr() or inet_aton()
inet_ntop()
inet_pton()