14f06a4
diff -up net-tools-1.60/lib/ib.c.ib-warning net-tools-1.60/lib/ib.c
626e1f7
--- net-tools-1.60/lib/ib.c.ib-warning	2011-11-21 02:31:57.000000000 +0100
626e1f7
+++ net-tools-1.60/lib/ib.c	2011-12-06 13:40:32.463976896 +0100
626e1f7
@@ -47,7 +47,10 @@ static const char *pr_ib(const char *ptr
14f06a4
 	pos += sprintf(pos, "%02X:", (*ptr++ & 0377));
14f06a4
     }
14f06a4
     buff[strlen(buff) - 1] = '\0';
14f06a4
-
14f06a4
+    char *ib_warning = "Ifconfig uses the ioctl access method to get the full address information, which limits hardware addresses to 8 bytes.\n"
14f06a4
+                       "Because Infiniband address has 20 bytes, only the first 8 bytes are displayed correctly.\n"
14f06a4
+                       "Ifconfig is obsolete! For replacement check ip.\n";
14f06a4
+    fprintf(stderr, _(ib_warning));
14f06a4
     /* snprintf(buff, sizeof(buff), "%02X:%02X:%02X:%02X:%02X:%02X",
14f06a4
 	     (ptr[0] & 0377), (ptr[1] & 0377), (ptr[2] & 0377),
14f06a4
 	     (ptr[3] & 0377), (ptr[4] & 0377), (ptr[5] & 0377)
626e1f7
diff -up net-tools-1.60/man/en_US/ifconfig.8.ib-warning net-tools-1.60/man/en_US/ifconfig.8
626e1f7
--- net-tools-1.60/man/en_US/ifconfig.8.ib-warning	2011-12-06 13:40:31.000000000 +0100
626e1f7
+++ net-tools-1.60/man/en_US/ifconfig.8	2011-12-06 13:41:20.467376771 +0100
626e1f7
@@ -221,6 +221,12 @@ for more information.
626e1f7
 .br
626e1f7
 .I /proc/net/if_inet6
626e1f7
 .SH BUGS
626e1f7
+Ifconfig uses obsolete kernel interface.
626e1f7
+It uses the ioctl access method to get the full address information,
626e1f7
+which limits hardware addresses to 8 bytes.
626e1f7
+Since an Infiniband address is 20 bytes,
626e1f7
+only the first 8 bytes of Infiniband address are displayed.
626e1f7
+.LP
626e1f7
 While appletalk DDP and IPX addresses will be displayed they cannot be
626e1f7
 altered by this command.
626e1f7
 .SH SEE ALSO