| |
| ▲ | icedchai a day ago | parent | next [-] | | Is it really hard to remember? A hint is in the syntax itself. What's in between the two colons '::'? Nothing. In other words, all zeros. IPv4 also has a similar, though rarely documented or utilized, shortcut system. Try `ping 1.1` for example. It expands to 1.0.0.1. | |
| ▲ | karlshea a day ago | parent | prev [-] | | ":: is all zeros" is too hard?? | | |
| ▲ | webignition a day ago | parent | next [-] | | How many zeros? | | |
| ▲ | db48x a day ago | parent | next [-] | | 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. | | |
| ▲ | integralid a day ago | parent [-] | | Not really the same, the mechanics are different and this particular behaviour is pretty much an accident, not abbreviation. In IPv4 you also have 127.257 equal to 127.0.1.1, 123456789 equal to 7.91.205.21, and 010.010.010.010 is a well-know DNS server. This notation is also rejected by most implementations. | | |
| ▲ | icedchai a day ago | parent | next [-] | | It is? Those alternate IPv4 notations are all accepted by Linux, FreeBSD, and MacOS. I remember playing around with "alternate notations" 30+ years ago on old SunOS boxes. | |
| ▲ | karlshea a day ago | parent | prev [-] | | But IPv6 is "too hard" |
|
| |
| ▲ | karlshea a day ago | parent | prev | next [-] | | 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 | |
| ▲ | jstanley a day ago | parent | prev | next [-] | | However many are left. In what circumstances do you care? | |
| ▲ | kstrauser a day ago | parent | prev | next [-] | | However many it takes to make the whole A::B number exactly 128 bits long. | |
| ▲ | paulddraper a day ago | parent | prev [-] | | “Enough” |
| |
| ▲ | koakuma-chan a day ago | parent | prev [-] | | It's not just ":: is all zeroes" | | |
| ▲ | ninkendo a day ago | parent [-] | | … such as? | | |
| ▲ | DaSHacka a day ago | parent [-] | | https://news.ycombinator.com/item?id=46338674 | | |
| ▲ | Dylan16807 a day ago | parent | next [-] | | That's a post about invalid things that are not IPv6 addresses. In IPv6 addresses, :: is all zeroes and there's no ambiguity. | |
| ▲ | WarOnPrivacy a day ago | parent | prev [-] | | I am not clear what your point is. The parent's point stands. A double colon only represents zeros (that were compressed and are not displayed). Your link does not show different addresses from a valid compression, it shows different addresses from an invalid compression. The link examples what we don't do. Conversely, if we compress the expanded addresses in your link, we will get 2 different compressed addresses. |
|
|
|
|
|