From: David Lamparter Date: Sat, 9 Jun 2007 13:53:58 +0000 (+0200) Subject: iproute2: Format IPv6 tunnels endpoints nicely. X-Git-Tag: v2.6.23-071016~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0280ef85aa603681ec3971b3437df317849d7e54;p=thirdparty%2Fiproute2.git iproute2: Format IPv6 tunnels endpoints nicely. Change formatting of IPv6 tunnel endpoints from hex chain to standard IPv6 representation. Signed-off-by: David Lamparter Signed-off-by: Stephen Hemminger --- diff --git a/lib/ll_addr.c b/lib/ll_addr.c index 581487dfa..f558050e3 100644 --- a/lib/ll_addr.c +++ b/lib/ll_addr.c @@ -38,6 +38,9 @@ const char *ll_addr_n2a(unsigned char *addr, int alen, int type, char *buf, int (type == ARPHRD_TUNNEL || type == ARPHRD_SIT || type == ARPHRD_IPGRE)) { return inet_ntop(AF_INET, addr, buf, blen); } + if (alen == 16 && type == ARPHRD_TUNNEL6) { + return inet_ntop(AF_INET6, addr, buf, blen); + } l = 0; for (i=0; i