Coworker: ...and the IP address are compared with a string match.
Me: grinning manically
Coworker: Why are you looking at me like that?
Me: Open up a terminal and type ping 4.2.514 and hit enter.
Coworker: ...what's the fourth number?
Me: grin widens Just hit enter.
Coworker: WTF!?
@ryanc @0xabad1dea :-) For those in the thread looking for even more shenanigans with inet_aton(3): https://www.netmeister.org/blog/inet_aton.html
IPv4 addresses are silly, inet_aton(3) doubly so.

For historical reasons, inet_aton(3) accepts IPv4 addresses in several silly formats. Let's see what we can do with those...

@jschauma @ryanc @0xabad1dea Back in 2018 Dave Taht and a few other people tried to reclaim the "class E experimental" address range and most of multicast, which together are about 1/8 of the IPv4 address space.

https://landley.net/notes-2018.html#25-10-2018

The ipv6 stans FREAKED OUT because the only argument their terrible tech ever had was ipv4 exhaustion, largely due to poor initial allocation back in the 1980s (giving korea 64k total addresses, for example).

Rob Landley's Blog Thing for 2018

@landley @jschauma @ryanc @0xabad1dea I think #IPv6 would've gotten more acceptance if it was merely a 4x long #IPv4 annotation instead of doing hexadecimals.

@kkarhan @jschauma @ryanc @0xabad1dea Nope, ipv6 is fundamentally flawed because you can't persistently identify an internet access point in a useful way. That's why wikipedia blocked the entire IPv6 address range for anonymous edits. (May still do, haven't checked.)

You could instead have subdivided the port space without ANY protocol change, and done 1.2.3.4.[0-16] to give each NAT user their own 4096 public ports. 1.3.2.4.2 port 80 is a web server on host port 8192+80...

@kkarhan @jschauma @ryanc @0xabad1dea Ahem, [0-15].

As the saying goes: the two fundamental problems in computer science are cache invalidation, naming things, and off by one errors.

@kkarhan @jschauma @ryanc @0xabad1dea There's only about twice as many people on the planet as there are IPv4 addresses NOW. Increasing the address space by 16x would mean each person (including infants and the illiterate) could have 8 public devices online fulltime without sharing or dynamic provisioning.

Giving each grain of sand in the solar system its own subnet was unmanageable futurism BS to extend the address range to a star trek future with zillions of planets talking via instant FTL.

@landley @jschauma @ryanc @0xabad1dea yeah, the exhaustion problem would've been shoved back with a #64bit or sufficiently delayed by a 40bit number.

Unless we also hate #NAT and expect every device to have a unique static #IP (which is a #privacy nightmare at best that "#PrivacyExtensions" barely fixed.)

  • I mean they could've also gone the #DECnet approach and use the #EUI48 / #MAC-Address (or #EUI64) as static addressing system, but that would've made #vendors and not #ISPs the powerful forces of allocation. (Similar to how technically the #ICCID dictates #GSM / #4G / #5G access and not the #IMEI unless places like Australia ban imported devices.

I guess using a #128bit address space was inspired by #ZFS doing the same before, as the folks who designed both wanted to design a solution that clearly will outlive them (way harder than COBOL has outlived Grace Hopper)...

If I was @BNetzA I would've mandated #DualStack and banned #CGNAT (or at least the use of CGNAT in #RFC1918 address spaces) as well as #DualStackLite!

@kkarhan @jschauma @ryanc @0xabad1dea @BNetzA The trick I mentioned could have been done entirely in userspace. (Still can, really.) It's a libc wrapper. They did a more intrusive solution because they wanted to (projecting exponential growth forward forever instead of the inevitable s-curve), and the IPv6 supporters fought against any attempt to fix up IPv4, as recently as 2018's attempt to reclaim 500 million unused addresses.
@landley @jschauma @ryanc @0xabad1dea I think redistributing the /8 subnets that #DoD holds hostage would've been a strategy, alas I do expect the Orange Tyrant to fuck up the #Internet by messing up #IANA & #ICANN, breaking it with #cyberfacism

@kkarhan @[email protected] @jschauma @ryanc @0xabad1dea Before he recently died Dave Taht was pushing for the re-allocation of almost all of the IPv4 class D (multicast) space as well as for much of the 127./8 loopback space. (I thought that Dave's ideas were good ones.)

My experience with the IP address RIRs is that they are reasonable and reasonably well run. On the other hand, the domain name space under ICANN is well captured by the domain name selling and trademark protection industries, and, to a rather lesser degree, by people who claim to represent (without solid credentials to prove it) governments and governmental bodies.