News for hackers. Stuff that matters.
Re:The lack of a good command line way to sort IPv6 addresses by ggm on Monday May 19, 2025 @02:10AM (#44026897)
for all addresses, v4 and v6 this is what I used to do

  1) convert to a non-space-zeros-compressing hex string
  2) sort on the hex string
  3) convert back through inet_ntop()
Only a minor variant needed to deal with prefix/len sort order.

There are no comments on this comment yet.