Subject: bin/3387: annoying ifconfig -a bug
To: None <gnats-bugs@gnats.netbsd.org>
From: None <paul@plectere.com>
List: netbsd-bugs
Date: 03/24/1997 13:50:12
>Number: 3387
>Category: bin
>Synopsis: ifconfig error msg prints wrong interface name
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Mar 24 14:20:01 1997
>Last-Modified:
>Originator: Paul Shupak
>Organization:
Technology Transfer Services
>Release: NetBSD-current 3/24/97
>Environment:
System: NetBSD cobalt 1.2D NetBSD 1.2D (COBALT) #3: Sun Mar 23 22:02:54 PST 1997 paul@cobalt:/usr/src/sys/arch/i386/compile/COBALT i386
>Description:
When an interface (e.g. eon0 ) fails to correctly respond to
the SIOCGIFMEDIA, the name printed in the error message is that
of the previous interface which had its status printed.
>How-To-Repeat:
ifconfig -a w/kernel containing "eon0"
>Fix:
*** ifconfig.c Mon Mar 24 09:26:31 1997
--- ifconfig.c-ORIG Mon Mar 24 13:34:54 1997
***************
*** 939,945 ****
}
if (ifmr.ifm_count == 0) {
! warnx("%s: no media types?", ifmr.ifm_name);
goto proto_status;
}
--- 939,945 ----
}
if (ifmr.ifm_count == 0) {
! warnx("%s: no media types?", ifr.ifr_name);
goto proto_status;
}
>Audit-Trail:
>Unformatted: