From owner-freebsd-hackers Fri Jun 2 17:33:31 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id RAA05829 for hackers-outgoing; Fri, 2 Jun 1995 17:33:31 -0700 Received: from haywire.DIALix.COM (peter@haywire.DIALix.COM [192.203.228.65]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id RAA05820 for ; Fri, 2 Jun 1995 17:33:27 -0700 Received: (from peter@localhost) by haywire.DIALix.COM (8.6.12/8.6.12/DIALix) id IAA22954; Sat, 3 Jun 1995 08:33:15 +0800 Date: Sat, 3 Jun 1995 08:33:15 +0800 (WST) From: Peter Wemm To: Terry Lambert cc: hackers@FreeBSD.ORG Subject: Re: Size of SIOCGIFCONF ioctl data structure In-Reply-To: <9506021825.AA29035@cs.weber.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: hackers-owner@FreeBSD.ORG Precedence: bulk On Fri, 2 Jun 1995, Terry Lambert wrote: > [ ... how to count interfaces ... ] > > > Opinions? > > In preference order: > > 1) Do it via sysctl anyway. Just as a BTW: Is this method fairly consistant across the 4.4BSD type machines? Or are there variations on the way it has been implemented? > 2) Do it the Sun way. Yep. IMHO, third-party code is far more likely going to get "#ifdef SIOCGIFNUM" than a sysctl() rewrite, especially since Sun, HP, AIX, etc dont have sysctl(). I think named would be a good candidate to be in group 1), because Paul Vixie uses BSD/OS, so he'd be able to test it. -Peter