Commit 0280ef85 authored by David Lamparter's avatar David Lamparter Committed by Stephen Hemminger

iproute2: Format IPv6 tunnels endpoints nicely.

Change formatting of IPv6 tunnel endpoints from hex chain to standard IPv6
representation.
Signed-off-by: default avatarDavid Lamparter <equinox@diac24.net>
Signed-off-by: default avatarStephen Hemminger <shemminger@linux-foundation.org>
parent bdf9e86d
......@@ -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<alen; i++) {
if (i==0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment