News for hackers. Stuff that matters.
Re:Tell HN: Hacker News now supports IPv6 by lmm on Tuesday January 23, 2024 @12:11AM (#39099869)
CIDR and the resulting address space fragmentation was the problem that IPv6 was originally meant to solve; allowing splitting into random-sized subnets makes routing more complex and worse. And if you made the routable part of an IPv6 address longer than 64 bits then that makes the routing much more compute-intensive. 64 bits in the local part of the address is sort of overkill, but a 128 bit address isn't really any harder to use than a 96 bit address, and it means things like, well, being able to automatically assign the local part based on the MAC address, which only works if the local part of the address is more than 48 bits.
Re:Tell HN: Hacker News now supports IPv6 by londons_explore on Tuesday January 23, 2024 @12:27AM (#39099944)
You can still use a shorter hash of the Mac address.

Collisions are very unlikely, and a quick ARP packet should detect them if they do happen.

Re:Tell HN: Hacker News now supports IPv6 by ta1243 on Tuesday January 23, 2024 @04:03AM (#39101102)
Collisions are just as likely with the 48 bits as they are with the last 24 bits, as some OUI vendors reuse mac addresses.

Using a mac address in the IP is terrible anyway from a privacy point of view, use a random IP in the subnet, send out a check to see if it's already used, if it is choose a new one. That check is already a feature of ipv6.

Re:Tell HN: Hacker News now supports IPv6 by ale42 on Tuesday January 23, 2024 @03:54AM (#39101036)
It would rather be an ICMPv6 neighbor discovery packet or something like that, IPv6 doesn't use ARP.
Re:Tell HN: Hacker News now supports IPv6 by lmm on Tuesday January 23, 2024 @01:22AM (#39100196)
> Collisions are very unlikely, and a quick ARP packet should detect them if they do happen.

You can do that, sure. But it's more complex and slower.