by api · 11y ago · 0 comments
I really don't understand why this is. None of these are old systems. IPv6 existed when AWS was built. Were they really designed from the ground up without IPv6 support?
Of course I kind of know the answer. While most of hackerdom is pretty open to trying new things, most networking engineers are (in my experience) ultra ultra conservative and terrified of change. The majority of the network engineering community has dug in its heels like a stubborn mule at IPv6 and must be dragged grumbling into it.
Yup. It is simply amazing how many things I see devs push out that hard code badness (such as php ip2long, as an example). Intrusion detection that only will correctly resolve and send IPv4 to automatic firewall rules. Interfaces that truncate IPv6 addresses so information is lost. Who knows how many security problems are potentially added by this code that expects one thing and can get something else.
Huh? That's what abstractions like sockaddr_storage are for. Who cares how the address maps to the underlying CPU word size?
It's the same reason you shouldn't be storing pointers in ints. Portability requires effort. That's just life.
But I do see the advantage of big addresses. They give you room for meaningful cryptographic semantic information and stateless auto configuration, both of which are very valuable in big distributed systems and for security.
So yeah, could have been simpler but not a big deal. Things like struct sockaddr_storage make programming it pretty easy too, but most older devs aren't familiar with them.
Look, if by the 50's somebody make some calculations and said "if we don't change our ways, we'll be out of X by 2030", and X runs out in 2030, this person will be perfectly on time, not late by 80 years.