Blame SOURCES/iproute2-3.10.0-ipadress-fix-display-of-IPv6-peer-address.patch

5ebd6f
diff --git a/ip/ipaddress.c b/ip/ipaddress.c
5ebd6f
index 5b9a438..2b3707a 100644
5ebd6f
--- a/ip/ipaddress.c
5ebd6f
+++ b/ip/ipaddress.c
5ebd6f
@@ -613,7 +613,8 @@ int print_addrinfo(const struct sockaddr_nl *who, struct nlmsghdr *n,
5ebd6f
 					      abuf, sizeof(abuf)));
5ebd6f
 
5ebd6f
 		if (rta_tb[IFA_ADDRESS] == NULL ||
5ebd6f
-		    memcmp(RTA_DATA(rta_tb[IFA_ADDRESS]), RTA_DATA(rta_tb[IFA_LOCAL]), 4) == 0) {
5ebd6f
+		    memcmp(RTA_DATA(rta_tb[IFA_ADDRESS]), RTA_DATA(rta_tb[IFA_LOCAL]),
5ebd6f
+			   ifa->ifa_family == AF_INET ? 4 : 16) == 0) {
5ebd6f
 			fprintf(fp, "/%d ", ifa->ifa_prefixlen);
5ebd6f
 		} else {
5ebd6f
 			fprintf(fp, " peer %s/%d ",