HPlogo

HP-UX IPv6 Porting Guide: HP-UX 11i v2 September 2004

» 

Technical documentation

Complete book in PDF

 » Table of Contents

HP Part Number: 5990-8371

Edition: 

Published: August 2004


Table of Contents

About This Document
Intended Audience
What Is in This Docuent
HP-UX Release Names and Release Identifiers
Related Documents
HP Documentation
Other Documentation
HP Welcomes Your Comments
1 Introduction
Why IPv6 Now?
Who Should Read This Guide
Do Existing IPv4 Applications Require Changes?
Does implementing IPv6 require a complete transition from IPv4?
Terminology
General IP Terminology
IPv6 Terminology
2 IPv6 Addressing
Types of IPv6 addresses
IPv4 to IPv6 Transition Addresses
IPv6 Address scope
IPv4-Compatible IPv6 Address
IPv4-Mapped Address
Comparing IPv4 and IPv6 Addresses
Leading Zeros Suppressed
Comparing IPv4 and IPv6 Addresses
IPv6 Address Types
Unicast Address
IPv6 Loopback Address
Link-local Unicast Address
Site-local Addresses
IPv6 Multicast Addresses
Some Well-know Multicast Addresses
IPv6 Wildcard Addresses
IPv6 Loopback Addresses
3  Data Structure Changes
IP Address Structure
Header file
IPv6 Structure
IPv4 Structure
Socket Address structure for 4.3BSD-based HP-UX
Header file
IPv4 Structure
IPv6 Structure
Generic Socket Address Structure
Header file
4 Migrating Applications from IPv4 to IPv6
IPv4/IPv6 Dual Stack
5 Overview of IPv4 and IPv6 Call Set-up
Using AF_INET Socket for IPv4 UDP Communications
Using AF_INET6 Socket to Send IPv4 UDP Communications
Using AF_INET6 Socket to Receive IPv4 Communications
Using AF_INET6 Socket for IPv6 Communications
6 Function Calls Converting Names to Addresses
getaddrinfo(3N)
Syntax
Parameters
addrinfo Data Structure pointed-to by hints
getipnodebyname(3N)
Syntax
Parameters
7  Function Calls Converting IP addresses to Names
getnameinfo(3N)
Header Files
Syntax
Parameters
getipnodebyaddr(3N)
Header Files
Syntax
Parameters
Data Structures
How getipnodebyaddr() processes IPv4-compatible IPv6 addresses
8 Reading Error Messages
Header Files
Syntax
Parameters
9  Freeing Memory
Freeing Memory from getaddrinfo() and getnameinfo() Function Calls
Header Files
Syntax
Parameters
Freeing Memory from getipnodebyaddr() and getipnodebyname() Function Calls
Syntax
Parameters
10  Converting Binary and Text Addresses
Converting a Text Address to Binary
Syntax
Converting a Binary Address to Text
Syntax
11 Testing for Scope and Type of IPv6 addresses using Macros
12  Identifying Local Interface Names and Indexes
Name-to-Index
Header Files
Syntax
Index-to-Name
Header Files
Syntax
Returning All Interface Names and Indexes
Freeing Memory
Header Files
Syntax
13 Configuring or Querying an Interface using IPv6 ioctl() Function Calls
14 Verifying IPv6 Installation
15 Sample Client/Server Programs
IPv4 TCP Client Code Fragment
IPv6 TCP Client using getipnodebyname()
IPv6 TCP Client Using getaddrinfo() for Name/Service Lookup
IPv4 TCP Server Code Fragment
IPv6 TCP Server using getaddrinfo() for Service Address Lookup
A IPv4 to IPv6 Quick Reference Guide
Do Existing IPv4-to-IPv4 Applications Require Changes?
Summary: Source Code Symbols and Function Changes
Changes to Symbols, Data Structures, and Function Calls
Watch for hard-coded data structure sizes
Multicast and IPv4 Options
Loopback Address
Wildcard Address
Multicast Defaults
IPv6 Multicast Options
IP Packet Options
Types of Service Options
Multicast Group, IP Address, and IPv6 Interface Index
© 2004 Hewlett-Packard Development Company, L.P.