From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 30 16:56:02 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9AF82106566B; Wed, 30 Nov 2011 16:56:02 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 739FE8FC08; Wed, 30 Nov 2011 16:56:02 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) by cyrus.watson.org (Postfix) with ESMTPSA id 14F6D46B0A; Wed, 30 Nov 2011 11:56:02 -0500 (EST) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 8396AB921; Wed, 30 Nov 2011 11:56:01 -0500 (EST) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Wed, 30 Nov 2011 11:52:46 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p8; KDE/4.5.5; amd64; ; ) References: <20111125073630.GC7915@DataIX.net> In-Reply-To: <20111125073630.GC7915@DataIX.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201111301152.47002.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Wed, 30 Nov 2011 11:56:01 -0500 (EST) Cc: hackers@freebsd.org Subject: Re: sysctl description spillover and also setting the sysctl ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2011 16:56:02 -0000 On Friday, November 25, 2011 2:36:30 am Jason Hellenthal wrote: > > Found a troubling result of the following and figured someone might want to take a look. > > Pay close attention to the output and behavior. > > sysctl net.inet.udp.blackhole=0 > sysctl net.inet.udp.blackhole > sysctl -d net.inet.udp.blackhole=1 > sysctl net.inet.udp.blackhole > > > Is this expected ? should it not just display the description instead of adjusting ? as well not display the description like it is adjusting the description too ? Hah, cute. It should probably fail with an error if you do something like that, yes. -- John Baldwin