From owner-freebsd-questions Tue Mar 27 14:45:20 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.gmx.net (pop.gmx.net [194.221.183.20]) by hub.freebsd.org (Postfix) with SMTP id 082CA37B71B for ; Tue, 27 Mar 2001 14:45:14 -0800 (PST) (envelope-from tmoestl@gmx.net) Received: (qmail 22108 invoked by uid 0); 27 Mar 2001 22:45:14 -0000 Received: from p3e9bc33b.dip.t-dialin.net (HELO forge.local) (62.155.195.59) by mail.gmx.net (mail01) with SMTP; 27 Mar 2001 22:45:14 -0000 Received: from tmm by forge.local with local (Exim 3.20 #1) id 14i2D4-0002Dj-00; Wed, 28 Mar 2001 00:45:06 +0200 Date: Wed, 28 Mar 2001 00:45:04 +0200 From: Thomas Moestl To: Daniel Wong Cc: FreeBSD , freebsd-net@freeBSD.ORG Subject: Re: how to Getting Sysctl to work .... Message-ID: <20010328004503.A8419@crow.dom2ip.de> Mail-Followup-To: Thomas Moestl , Daniel Wong , FreeBSD , freebsd-net@freeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from s2209866@cse.unsw.edu.au on Wed, Mar 28, 2001 at 08:31:01AM +1000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Mar 28, 2001 at 08:31:01AM +1000, Daniel Wong wrote: > I can't get my sysctl to come up in my sysctl -A > > I have in my kernel code defined SYSCTL_STRUCT(_net_inet_ip, ... ...) and > under in.h (I'm working under Ip) added my sysctl definition, i presume it's > just adding the extra enum definition for my sysctl right ? > > I did a clean compile of the kernel (kernel only not world) and it doesn't > want to show up in my sysctl -A call... why ?? sysctl -A will only show sysctls which it knows how to interpret the values of. This is probably not the case with yours (it depends on the fmt argument). If you want to know whether your sysctl exists in the kernel, do "sysctl name" and see whether it complains (it won't print the value in that case, though). - thomas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message