3 ms·
A lot of programmers are still writing v4-only code somehow. They'll write things like "socket(AF_INET, ...)" or "struct sockaddr_in address;" or "gethostbyname
by Dagger2 3y ago
A lot of programmers are still writing v4-only code somehow. They'll write things like "socket(AF_INET, ...)" or "struct sockaddr_in address;" or "gethostbyname(...)" completely seriously and not seem to realize that any one of those things is an immediate red flag that your code is wrong and broken.
OSs are fine, but the software and systems that we build on top of them are often v4-only.
- feldrim 3y agoTBH, if it is not a requirement of the software, why would devs spend time on developing and testing IPv6? YAGNI kicks in way that point. If it's FOSS, it depends on the community. But if it is commercial, it's up to the specs.
- Dagger2 3y agoI'm not even asking for that, I'm just asking for people to use the "new" APIs (they're older than some of the programmers making these mistakes), which are agnostic to address family. Use them even vaguely correctly and your code won't care about what address family the addresses are. Having bugs in untested functionality is understandable, but using long-deprecated known-broken APIs, or using the current ones in ways that are clearly and obviously wrong, isn't. (Also you should be using, and therefore testing, v6 at this point. But that's a separate discussion.)