Date: Wed, 17 Oct 2001 14:52:30 -0400 (EDT) From: Robert Watson <rwatson@FreeBSD.org> To: Jonathan Lemon <jlemon@FreeBSD.org> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/ifconfig ifconfig.c Message-ID: <Pine.NEB.3.96L.1011017145148.36202A-100000@fledge.watson.org> In-Reply-To: <200110171830.f9HIUEW68725@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 17 Oct 2001, Jonathan Lemon wrote: > jlemon 2001/10/17 11:30:14 PDT > > Modified files: > sbin/ifconfig ifconfig.c > Log: > When specifying an interface to ifconfig, first look up the interface > index, then retrieve statistics for that index, rather than retrieving > all interfaces and then looking for a matching name. This allows the > user to refer to an interface via an alias name. > > While I'm here, also perform a few assorted cleanups. > > Revision Changes Path > 1.70 +12 -26 src/sbin/ifconfig/ifconfig.c Without looking at the commit itself, that sounds like it's subject to a race condition. How about adding the ability to retrieve interface statistics by name, rather than the indirection? Robert N M Watson FreeBSD Core Team, TrustedBSD Project robert@fledge.watson.org NAI Labs, Safeport Network Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1011017145148.36202A-100000>