News for hackers. Stuff that matters.
Re:The Absolute Minimum Every Software Developer Must Know A... by jrockway on Monday October 02, 2023 @05:03PM (#37744358)
IPv4.1 should have just had 39 bits, to be written like 999.999.999.999. (I know this wouldn't have actually had much effect, nobody is going to add new routes in the middle of "class A" spaces that already existed, so it would just give those that already had IP addresses more IP addresses. Additionally, people really abuse decimal addresses in horrifying ways; for example, Fios steals 192.168.1.100-192.168.1.150 for its TV service, and that range doesn't really correspond to anything that you can mask off in binary. It only makes sense in decimal, which is not what any underlying machinery uses. They should have given themselves a /26 or something. You get 3 for yourself (modulo the broadcast and gateway address), and they get 1 for TV.)
Re:The Absolute Minimum Every Software Developer Must Know A... by hot_gril on Monday October 02, 2023 @05:35PM (#37744747)
I'm not sure if 39 bits is enough, but even going 128 bits would've been fine. You'd 0-pad the shorter addresses and not write out the trailing (or leading?) 0s, so "342.245.71.144" would look the same while someone else might get a newer address like "342.245.71.144.300.2".
Re:The Absolute Minimum Every Software Developer Must Know A... by hot_gril on Monday October 02, 2023 @05:54PM (#37744974)
Having it actually be decimal might've been nice, but at this point people are used to the 1-254 range, and I think the least jarring addition of extra bits would be to simply extend it for the addresses that need them (and not for the ones that don't). So you could have 123.444.3.254 or longer like 123.444.3.254.12.43.