HP-UX IPv6 Porting Guide (February 2007)
IPv6 Addressing
IPv6 Address Types
Chapter 2 11
Figure 2-5 Multicast Address Format
Some Well-know Multicast Addresses
FF02::1 All nodes (link-local)
FF02::2 All routers (link-local)
FF02::9 All Routing Information Protocol next generation (RIPng) routers (link-local)
IPv6 Wildcard Addresses
In IPv4, an application can let the system choose which source IP address to bind to a socket
by specifying a wildcard address: the symbolic constant INADDR_ANY in the bind() function
call. In IPv6, because the IPv6 address type is a structure (struct in6_addr), a symbolic
constant can initialize an IPv6 address structure variable, but cannot assign an IPv6
structure variable. Therefore, an IPv6 wildcard address requires two forms:
• For initialization, use the symbolic constant IN6ADDR_ANY_INIT of the type struct
in6_addr. For example,
struct in6_addr anyaddr = IN6ADDR_ANY_INIT;