News for hackers. Stuff that matters.
Re:The lack of a good command line way to sort IPv6 addresses by Ekaros on Wednesday May 21, 2025 @09:40AM (#44051338)
Also IPv4 does have some allowed weird notations. Like 127.1 is equal to 127.0.0.1 or can represent it as decimal number. Or hex notation. Or some tools support octal...

Which some also do not sort nicely. Specially when combined.

Re:The lack of a good command line way to sort IPv6 addresses by andix on Wednesday May 21, 2025 @11:19AM (#44052446)
Those representations for 127.0.0.1 work too, just try to ping them:

  0177.1 (octal, 2 stripped 0s, decimal one)
  017700000001 (octal)
  2130706433 (decimal)
  127.0.0x1
  0x7f.0x0.0x0.0x1
  127.000.000.001
Re:The lack of a good command line way to sort IPv6 addresses by monster_truck on Wednesday May 21, 2025 @09:48AM (#44051430)
If you think these are weird I have bad news about ipv6
Re:The lack of a good command line way to sort IPv6 addresses by mystified5016 on Wednesday May 21, 2025 @11:13AM (#44052366)
Anecdata but I have never seen shortened IPv4 notation. I've only ever seen the full decimal notation.