]>
Commit | Line | Data |
---|---|---|
1 | diff -up net-tools-1.60/lib/ib.c.ib-warning net-tools-1.60/lib/ib.c | |
2 | --- net-tools-1.60/lib/ib.c.ib-warning 2009-09-01 13:45:55.000000000 +0200 | |
3 | +++ net-tools-1.60/lib/ib.c 2009-09-01 13:47:43.000000000 +0200 | |
4 | @@ -48,7 +48,10 @@ static char *pr_ib(unsigned char *ptr) | |
5 | pos += sprintf(pos, "%02X:", (*ptr++ & 0377)); | |
6 | } | |
7 | buff[strlen(buff) - 1] = '\0'; | |
8 | - | |
9 | + char *ib_warning = "Ifconfig uses the ioctl access method to get the full address information, which limits hardware addresses to 8 bytes.\n" | |
10 | + "Because Infiniband address has 20 bytes, only the first 8 bytes are displayed correctly.\n" | |
11 | + "Ifconfig is obsolete! For replacement check ip.\n"; | |
12 | + fprintf(stderr, _(ib_warning)); | |
13 | /* snprintf(buff, sizeof(buff), "%02X:%02X:%02X:%02X:%02X:%02X", | |
14 | (ptr[0] & 0377), (ptr[1] & 0377), (ptr[2] & 0377), | |
15 | (ptr[3] & 0377), (ptr[4] & 0377), (ptr[5] & 0377) |