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

Overview of IPv4 and IPv6 Call Set-up
Using AF_INET6 Socket to Send IPv4 UDP Communications
Chapter 526
2. The search finds the IPv4 address 1.2.3.4 for host2 in the Name Service database.
3. Because getaddrinfo() had the AI_V4MAPPED flag set, the function returns the IPv4
–mapped address ::FFFF:1.2.3.4.
4. The application calls the socket() function to open an IPv6 AF_INET6 socket.
5. The application calls the sendto() function toward the ::FFFF:1.2.3.4 address.
6. The socket layer passes the sendto request, socket information and IPv4-mapped IPv6
address to the UDP/IP module.
7. The UDP/IP module:
a. identifies the IPv4-mapped IPv6 address.
b. puts the 1.2.3.4 address into an IPv4 packet header.
c. passes the packet to the IPv4 module for transmission.