1

On my Mac, inet_ntop produces this IPv6 address for a certain 128-bit value:

2001::53aa:64c:422:2ece:a29c:9cf6.51391

On my FC15 Linux system, I get this IPv6 address presentation:

2001:0:53aa:64c:422:2ece:a29c:9cf6.51391

My understanding is that zeros between :: can be ignored, so I think that these are the same address. Are they the same address? If so, why do the different operating systems display it differently?

Thanks.

vy32
  • 28,461
  • 37
  • 122
  • 246

1 Answers1

1

Yes, they are the same address. The :: means 'all zeroes', the other notation shows the zero.

Sander Steffann
  • 9,509
  • 35
  • 40
  • Thanks. So why do Linux and MacOS produce different values? – vy32 Sep 26 '11 at 01:54
  • Both are the same value, just written differently. Both are valid, though the Linux notation is te recommended one (http://tools.ietf.org/html/rfc5952#section-4.2.2) – Sander Steffann Sep 26 '11 at 04:16