Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Socket options and ancillary data to support IPv6 (IPPROTO_IPV6 level) z/OS Communications Server: IPv6 Network and Application Design Guide SC27-3663-00 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
An application can use socket options to enable or disable a function for a socket. An application can also provide a value to be used for a function with a socket option. After an option is enabled, it remains in effect for the socket until it is disabled. An application can also use ancillary data on the sendmsg() API to enable a function or provide a value for the packet being sent by way of sendmsg(). The value of the ancillary data is in effect for that packet only. Note that the value of the ancillary data can override a socket option value. For a detailed explanation of ancillary data, see Using ancillary data on sendmsg() and recvmsg(). An application can also receive ancillary data on the recvmsg() API. The returned ancillary data is enabled for any socket options that return data on recvmsg. A group of advanced socket options and ancillary data is defined
to support IPv6. They are defined with a level of IPPROTO_IPV6 or
IPPROTO_ICMPV6. The individual options begin with IPV6_ and ICMP6_.
These options are allowed on AF_INET6 sockets only. In most cases,
these options can be set on an AF_INET6 socket that is using IPv4-mapped
IPv6 addresses, but have no effect. For example, the IPV6_HOPLIMIT
ancillary data option is used to set a hop limit value in the IPv6
header. Because IPv4 packets are used with IPv4-mapped IPv6 addresses,
the hop limit value is not used. The following options are the only
advanced socket options that have an effect on an AF_INET6 socket
that is using IPv4–mapped IPv6 addresses:
1 This option is supported as ancillary data for UDP
and RAW protocols. It is not possible to use ancillary data to transmit
options for TCP because there is not a one-to-one mapping between
send operations and the TCP segments being transmitted.
|
Copyright IBM Corporation 1990, 2014
|