z/OS Communications Server: IPv6 Network and Application Design Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Options for setting the source address

z/OS Communications Server: IPv6 Network and Application Design Guide
SC27-3663-00

A UDP or RAW application can influence the setting of the source address with the bind() IPv6 address or with the IPV6_PKTINFO option.

The following precedence order is used to determine the source IP address for a packet:
  1. If IPV6_PKTINFO ancillary data is specified on sendmsg() with a nonzero source IP address, use its value. If the IPV6_PKTINFO ancillary data is specified with a length of 0 or with a zero source IP address, go to step 3.
  2. If the IPV6_PKTINFO socket option is set and contains a nonzero source IP address, use its value.
  3. If the application bound the socket to a specific address, use the Bind address.
  4. The TCP/IP protocol stack selects a source address.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014