INET6(7F)INET6(7F)NAMEinet6 - version 6 of the Internet protocol family
SYNOPSIS
#include <sys/types.h>
#include <netinet/in.h>
DESCRIPTION
Version 6 of the Internet protocol family is a new version of the
Internet Protocol (IPv4). The IPv6 family provides protocol support for
the SOCK_STREAM, SOCK_DGRAM, and SOCK_RAW socket types; the SOCK_RAW
interface provides access to the IPv6 protocol.
ADDRESSING
IPv6 addresses are sixteen byte quantities, stored in network standard
format. The include file <netinet/in.h> defines this address as a
discriminated union.
Sockets bound to the IPv6 protocol family utilize the following
addressing structure:
struct sockaddr_in6 {
u_int16_t sin6_family;
u_int16_t sin6_port;
u_int32_t sin6_flowinfo;
struct in6_addr sin6_addr;
};
Sockets may be created with the local address in6addr_any to effect
"wildcard" matching on incoming messages. The address in a connect(2) or
sendto(2) call may be given as in6addr_any to mean ``this host.''
PROTOCOLS
The Internet protocol family is comprised of the IPv6 network protocol,
Internet Control Message Protocol Version 6 (ICMP6), Transmission Control
Protocol (TCP), and User Datagram Protocol (UDP). TCP is used to support
the SOCK_STREAM abstraction while UDP is used to support the SOCK_DGRAM
abstraction. A raw interface to IPv6 is available by creating an
Internet protocol version 6 socket of type SOCK_RAW. The ICMP6 message
protocol is accessible from a raw socket.
SEE ALSOioctl(2), socket(2), netintro(7), route(7F), tcp(7P), udp(7P), ip6(7P),
icmp6(7P)
IRIX Network Programming Guide.
CAVEAT
The IPv6 protocol support is subject to change as the IPv6 protocols
develop. Users should not depend on details of the current
implementation, but rather the services exported.
Page 1