I ported an application to support IPv6, using popular tutorials. I decided to use only one socket listener for both protocols. Now I realized I have to set IPV6_V6ONLY
properly (it's only working on my x86 linux out of the box, but not on my ARM).
Is this really the way to go? Some say IPV6_V6ONLY
shouldn't be used (apparently it's outdated, because of IPv4 mapping over the wire), some say using one socket for both protocols is fine.
So, I'm confused. What is the current state about this problem? Did I misunderstand the problem?
::ffff:
followed by the 32 bits of the IPv4 address. V6ONLY only changes this in the software. On the wire they are normal IPv4 and IPv6 packets. The::ffff:
addresses are never seen on the wire. – Sander SteffannIPV6_V6ONLY
is possible. How to handle it if it's supported or not is a different discussion :) – duedl0r