Re: service listener for both IPv4 and IPv6



Casper H.S. *** <Casper.***@xxxxxxx> writes:
Panduranga Chary <pr.chary@xxxxxxxxx> writes:

How do we make service both listening to ipv4 and ipv6 in unix.

In Solaris, you create a single IPv6 socket and it will accept
both IPv4 and IPv6 traffice destined for that specific port.

Although this is true, I would not recommend designing an application
to work this way. Instead, opening separate sockets for v4 and v6
(using the IPV6_V6ONLY option for the latter) is the recommended way
to go.

See the notes in PSARC 2006/466; we had a lengthy discussion with Erik
Nordmark about this, and the bottom line is that the transition
mechanisms don't work particularly well for anything other than the
most trivial of applications.

--
James Carlson, Solaris Networking <james.d.carlson@xxxxxxx>
Sun Microsystems / 35 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
.