From owner-freebsd-net Mon Sep 16 10:12:35 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA17D37B401 for ; Mon, 16 Sep 2002 10:12:34 -0700 (PDT) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0176943E42 for ; Mon, 16 Sep 2002 10:12:34 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: from khavrinen.lcs.mit.edu (localhost [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.3/8.12.5) with ESMTP id g8GHCWVo023805 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Mon, 16 Sep 2002 13:12:33 -0400 (EDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.3/8.12.5/Submit) id g8GHCWak023802; Mon, 16 Sep 2002 13:12:32 -0400 (EDT) (envelope-from wollman) Date: Mon, 16 Sep 2002 13:12:32 -0400 (EDT) From: Garrett Wollman Message-Id: <200209161712.g8GHCWak023802@khavrinen.lcs.mit.edu> To: Bruce M Simpson Cc: freebsd-net@FreeBSD.ORG Subject: Proposal: adopt SIOCGLIFNUM interface for enumerating iflist. In-Reply-To: <20020916164206.GN28076@spc.org> References: <20020916164206.GN28076@spc.org> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org < said: > At this time these applications have to play 'elastic buffer' games with the > SIOCGIFCONF ioctl in order to get all of the relevant information. By allowing > userland applications to determine the size of this buffer at runtime, we > eliminate the need for repeated calls to ifioctl(). We have already done so: sysctl net.route.iflist. It might be worth our while to also support the Solaris method, but IMHO there is far too much confusion over this function to be adding another way to do it. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message