Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Ensure setting / getting the traffic class on an ipv4 only system wor… #7278
…ks when using the native transport.
We tried to set IPV6 opts on an ipv4 only system and so failed to set / get the traffic opts. This resulted in a test-error when trying to compile netty on ipv4 only systems.
Use the correct opts depending on if the system is ipv4 only or not.
Be able to build and use on ipv4 only systems.
Okay, now that I understand the difference between
setOption0, this change looks good.
I am a bit concerned about the
#ifdef __linux__, because there may exist other platforms where dualstack sockets need to set both, but if that's a bug then it was already present.