From owner-freebsd-net Tue Mar 28 13:38:44 2000 Delivered-To: freebsd-net@freebsd.org Received: from scotch.merit.edu (scotch.merit.edu [198.108.60.195]) by hub.freebsd.org (Postfix) with ESMTP id 3E3C537B83E for ; Tue, 28 Mar 2000 13:38:42 -0800 (PST) (envelope-from chopps@scotch.merit.edu) Received: (from chopps@localhost) by scotch.merit.edu (8.8.8/8.8.8) id QAA21843; Tue, 28 Mar 2000 16:38:39 -0500 (EST) Date: Tue, 28 Mar 2000 16:38:38 -0500 From: "Christian E. Hopps" To: Garrett Wollman Cc: freebsd-net@FreeBSD.ORG Subject: Re: namespace pollution (if_list) Message-ID: <20000328163838.C20019@merit.edu> References: <20000328151907.K8280@merit.edu> <200003282031.PAA83082@khavrinen.lcs.mit.edu> <20000328155244.A20019@merit.edu> <200003282102.QAA83159@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1us In-Reply-To: <200003282102.QAA83159@khavrinen.lcs.mit.edu>; from wollman@khavrinen.lcs.mit.edu on Tue, Mar 28, 2000 at 04:02:09PM -0500 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, Mar 28, 2000 at 04:02:09PM -0500, Garrett Wollman wrote: > < said: > > > Is this the position of FreeBSD? > > No, this is my personal opinion. I didn't say anything about whether > or not it will be changed in FreeBSD -- I'll leave that up to whomever > made the original change. I'm simply pointing out that many headers > internal to the operating system have their own peculiar namespaces > and users should not expect to be able to use those namespaces with > impunity. Yes but thats what #ifdef _KERNEL is for. > To expound a bit further, and in a different direction: to the extent > any user program includes at all, either the program is > broken, or the system is. There should not be any information in > that user-mode programs have need to access. It will > make it more likely that your problem can be fixed if you tell us just > what data structures, precisely, your program is using from that > header. The point is well taken, nothing in if_var looks like a normal user program needs it. It would appear to be required by the IGMP SNMP MIB code which does some amount of poking around in kvm. To the system vs. program broken end I'm not sure which it is in this case becuase I'm not familiar with the SNMP code in question. It could be that technically the system is broken because its not exporting through a sane interface information which user programs may need. Chris. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message