Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check for support for RFC 3493 IPV6_V6ONLY #20

Closed

Conversation

gstrauss
Copy link
Member

Reference:
network.c does not compile on Solaris
https://redmine.lighttpd.net/issues/2277

@stbuehler
Copy link
Member

IPV6_V6ONLY has been defined in 2003; supporting IPv6 without IPV6_V6ONLY seems not necessary to me.

If due to some missing header or bug the macro is not defined but actually should have been, this fix suddenly becomes a security bug, listening to an address it wasn't supposed to.

@gstrauss
Copy link
Member Author

Would you prefer something along the lines of:
#ifdef HAVE_IPV6
#ifndef IPV6_V6ONLY
#error missing IPV6_V6ONLY definition
#endif
#endif

@gstrauss
Copy link
Member Author

eh. just let the compile fail if IPV6_V6ONLY definition is missing. Modern OS supporting IPv6 should define IPV6_V6ONLY

@gstrauss gstrauss closed this Feb 13, 2016
@gstrauss gstrauss deleted the bug-2277-IPV6_V6ONLY-support branch February 13, 2016 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants