From: Denis Vlasenko Date: Tue, 17 Jul 2007 22:53:05 +0000 (-0000) Subject: ifconfig: make it work with ifaces with ifnames > 255 X-Git-Tag: 1_7_0~131 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2851082d5d0e8552014ddd47af433c1c606c963b;p=oweals%2Fbusybox.git ifconfig: make it work with ifaces with ifnames > 255 --- diff --git a/networking/interface.c b/networking/interface.c index ea02f4cc9..79f79c987 100644 --- a/networking/interface.c +++ b/networking/interface.c @@ -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