logoalt Hacker News

webignitionlast Saturday at 8:15 PM5 repliesview on HN

How many zeros?


Replies

db48xlast Saturday at 8:33 PM

Exactly enough to fill out the address, which is always the same length. BTW, IPv4 does basically the same thing. The address 127.1 is equivalent to 127.0.0.1.

show 1 reply
karlsheayesterday at 12:23 AM

There are a total of 8 groups of 4 hex digits, so 8 minus however many groups you already have.

google.com: 2607:f8b0:4009:819::200e (5 groups) -> 2607:f8b0:4009:0819:0000:0000:0000:200e (3 groups of added zeros)

a ULA address: fd2a:1::2 (3 groups) -> fd2a:0001:0000:0000:0000:0000:0000:0002 (5 added)

localhost: ::1 -> 0000:0000:0000:0000:0000:0000:0000:0001

jstanleylast Saturday at 8:33 PM

However many are left. In what circumstances do you care?

kstrauserlast Saturday at 8:35 PM

However many it takes to make the whole A::B number exactly 128 bits long.

paulddraperlast Saturday at 8:41 PM

“Enough”