vsprintf: Update %pI6c to not compress a single 0
authorJoe Perches <joe@perches.com>
Thu, 9 Jun 2011 18:23:37 +0000 (11:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 9 Jun 2011 19:51:15 +0000 (12:51 -0700)
commit29cf519ee086686e5f0fc91cbb2d601dd1190f9c
tree25087a60cf10c246548c5b1c6e915e49b2dddc43
parentdac853ae89043f1b7752875300faf614de43c74b
vsprintf: Update %pI6c to not compress a single 0

RFC 5952 (http://tools.ietf.org/html/rfc5952) mandates that 2 or more
consecutive 0's are required before using :: compression.

Update ip6_compressed_string to match the RFC and update the http
reference as well.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/vsprintf.c