ifconfig: make it work with ifaces with ifnames > 255
This commit is contained in:
parent
49a128a156
commit
2851082d5d
@ -1012,7 +1012,7 @@ static void ife_print(struct interface *ptr)
|
||||
f = fopen(_PATH_PROCNET_IFINET6, "r");
|
||||
if (f != NULL) {
|
||||
while (fscanf
|
||||
(f, "%4s%4s%4s%4s%4s%4s%4s%4s %02x %02x %02x %02x %20s\n",
|
||||
(f, "%4s%4s%4s%4s%4s%4s%4s%4s %08x %02x %02x %02x %20s\n",
|
||||
addr6p[0], addr6p[1], addr6p[2], addr6p[3], addr6p[4],
|
||||
addr6p[5], addr6p[6], addr6p[7], &if_idx, &plen, &scope,
|
||||
&dad_status, devname) != EOF
|
||||
|
Loading…
Reference in New Issue
Block a user