Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 Mac 上,inet_ntop 为某个 128 位值生成此 IPv6 地址:
2001::53aa:64c:422:2ece:a29c:9cf6.51391
在我的 FC15 Linux 系统上,我得到了这个 IPv6 地址表示:
2001:0:53aa:64c:422:2ece:a29c:9cf6.51391
我的理解是 :: 之间的零可以忽略,所以我认为这些是相同的地址。他们是同一个地址吗?如果是这样,为什么不同的操作系统显示不同?
谢谢。
是的,它们是同一个地址。:: 表示“全零”,其他符号表示零。