HP-UX IPv6 Porting Guide (September 2004)
Table Of Contents
- About This Document
- 1 Introduction
- 2 IPv6 Addressing
- 3 Data Structure Changes
- 4 Migrating Applications from IPv4 to IPv6
- 5 Overview of IPv4 and IPv6 Call Set-up
- 6 Function Calls Converting Names to Addresses
- 7 Function Calls Converting IP addresses to Names
- 8 Reading Error Messages
- 9 Freeing Memory
- 10 Converting Binary and Text Addresses
- 11 Testing for Scope and Type of IPv6 addresses using Macros
- 12 Identifying Local Interface Names and Indexes
- 13 Configuring or Querying an Interface using IPv6 ioctl() Function Calls
- 14 Verifying IPv6 Installation
- 15 Sample Client/Server Programs
- A IPv4 to IPv6 Quick Reference Guide

IPv4 to IPv6 Quick Reference Guide
Summary: Source Code Symbols and Function Changes
Appendix A72
Watch for hard-coded data structure sizes
Watch for sizeof(struct sockaddr_in) = sizeof(struct sockaddr) = 16 in pre-ported
applications. The IPv6 address data structure sockaddr_in6 is larger than the traditional
sockaddr_in data structure.
Multicast and IPv4 Options
Loopback Address
Wildcard Address
Multicast Defaults
Table A-2 Multicast and IPv4 Options
IPv4 IPv6 Comments
IN_CLASSA
IN_CLASSB
IN_CLASSC
IN_CLASSD
None. IPv6 addressing is
classless.
Table A-3 Loopback Address
IPv4 IPv6 Comments
INADDR_LOOPBACK in6addr_loopback in6adr_loopback is an
in6_addr structure
Table A-4 Wildcard Address
IPv4 IPv6 Comments
INADDR_ANY in6addr_any in6addr_any is an
in6_addr structure
Table A-5 Multicast Defaults
IPv4 IPv6 Comments
IP_DEFAULT_MULTICAST_LOOP
IP_DEFAULT_MULTICAST_TTL
IPV6_DEFAULT_MULTICAST_LOOP
IPV6_DEFAULT_MULTICAST_HOPS