News for hackers. Stuff that matters.
Re:AWS IPv4 Estate Now Worth $4.5B by Sesse__ on Monday September 18, 2023 @05:39AM (#37554088)
> Instead had the approach been ipv6 only from the start, with no dual-stack, having the OS transparently deal with sockets to ipv4 devices by converting to the ipv6 mapped address (:ffff:xxxxxxx), and thus eliminating the need for dual stack from the start, things would have moved far far faster.

This is, indeed, how dual-stack works; you open a PF_INET6 socket and use sockaddr_in6 addresses for everything, including IPv4 (which get mapped to ::ffff:/96 addresses). Been like that essentially forever. The “dual” in dual stack refers to the OS' stacks, not userspace.

Re:AWS IPv4 Estate Now Worth $4.5B by yrro on Monday September 18, 2023 @08:02AM (#37555040)
Don't forget you may need to opt in to get mapping to work. It's not available by default on all platforms.

If you're unlucky you'll also have to sacrifice a goat to appease the JVM gods. JVM behaviours vary hugely across implementation, version and underlying platform. Not to mention the short sighted decision made by many sysadmins to disable IPv6 completely...

Re:AWS IPv4 Estate Now Worth $4.5B by Sesse__ on Monday September 18, 2023 @09:23AM (#37555753)
Sure, that's one line and then you're done. And only if you care about very old (WinXP) or deliberately obnoxious (OpenBSD) platforms.
Re:AWS IPv4 Estate Now Worth $4.5B by GoblinSlayer on Monday September 18, 2023 @12:21PM (#37558304)
WinXP implements sockaddr_storage from RFC 2553 - a sufficiently large generic socket address.
Re:AWS IPv4 Estate Now Worth $4.5B by Sesse__ on Monday September 18, 2023 @02:45PM (#37560273)
But not mapped-v4 sockets; it has independent IPv4 and IPv6 stacks. In any case, hopefully we don't need to write code for it anymore…