HP-UX Reference (11i v2 03/08) - 5 Miscellaneous Topics, 7 Device (Special) Files, 9 General Information, Index (vol 9)

i
IPv6(7P) IPv6(7P)
in6_pktinfo structure and it is defined in <
netinet/in6.h>as:
struct in6_pktinfo {
struct in6_addr ipi6_addr;
uint32_t ipi6_ifindex;
};
By default this option is disabled.
IPV6_RECVHOPLIMIT
(boolean) When this option is enabled, inbound packet’s hoplimit is
returned as ancillary data by
recvmsg(). For example,
int on = 1;
setsockopt(s, IPPROTO_IPV6, IPV6_RECVHOPLIMIT,
&on, sizeof(on));
By default this option is disabled.
IPV6_RECVDSTOPTS
(boolean) When this option is enabled, the inbound packet’s destina-
tion options (when present) is returned as ancillary data by
recvmsg(). By default this option is disabled.
IPV6_RECVHOPOPTS
(boolean) When this option is enabled, the inbound packet’s hop-by-
hop options (when present) is returned as ancillary data by
recvmsg().
By default this option is disabled.
IPV6_RECVRTHDR (integer; boolean
) When this option is enabled, the inbound
packet’s routing options (when present) is returned as ancillary data by
recvmsg(). By default this option is disabled.
IPV6_RECVRTHDRDSTOPTS
(integer; boolean) When this option is enabled, the inbound
packet’s destination options appearing before a routing header (when
present) is returned as ancillary data by recvmsg(). By default this
option is disabled.
The next seven socket options can be used with both
setsockopt() and as option name in ancillary
data to sendmsg(). (See sendmsg(2))
IPV6_PKTINFO (struct in6_pktinfo) Used to set the source address and interface
index for outgoing packets.
IPV6_HOPLIMIT (integer) Used to set the hop limit for outbound packets. This hop
limit is valid for only a single output operation. To set hop limit for all
unicast or multicast IPv6 packets use IPV6_UNICAST_HOPS
or
IPV6_MULTICAST_HOPS
options respectively.
IPV6_NEXTHOP (struct sockaddr_in6) Used to set the next hop address. The node
identified by this address must be a neighbor of the sending host. When
this address is the same as the destination IPv6 address then this is
equivalent to SO_DONTROUTE socket option.
IPV6_RTHDR (variable length) Used to specify the routing header for outgoing
packets. Only Type 0 routing header is currently supported.
IPV6_DSTOPTS (variable length) Used to specify one or more destination options to
be sent in subsequent IPv6 packets.
IPV6_HOPOPTS (variable length) Used to specify one or more hop-by-hop options to
be sent in subsequent IPv6 packets.
IPV6_RTHDRDSTOPTS (variable length) Used to specify one or more destination options
preceding a routing header. This option will be silently ignored when
sending packets unless a routing header is also specified.
IPv6 uses the enhanced version of ICMP called ICMPv6 to report errors encountered in processing pack-
ets and for diagnostic purposes (like ping). ICMPv6 is an integral part of IPv6 and has a next header
value of 58.
All the options and the associated structures are defined in
<netinet/in6.h>, applications are not
required to include this header file explicitly, it is automatically included by <netinet/in.h>.
Section 7−−54 Hewlett-Packard Company − 3 − HP-UX 11i Version 2: August 2003