From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 30 18:48:32 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 9DBE5106564A; Wed, 30 Nov 2011 18:48:32 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 00CDF8FC13; Wed, 30 Nov 2011 18:48:31 +0000 (UTC) Received: by eaai12 with SMTP id i12so1522009eaa.13 for ; Wed, 30 Nov 2011 10:48:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; bh=wkuWDVyd3STQTFimlQ7dFpBMKb0x1ecNwpz2kuk5wwU=; b=lxwMHLpiyxcbDlE8363EV1Yu+uLMmtjQR4/QHl3KrYjiiGW5Em5PEZ3s7KMVQ8oEcx efaFm+EKbnLRTf0zib+RMPbidvXSRXqo29ny4SE1ra7hxAEsC9XuJS69kDOCIvyOlqh3 BZc7b/aZe6s9/O5VJr8WglhnTA6yPgvcNC+WY= Received: by 10.227.205.197 with SMTP id fr5mr1451010wbb.3.1322678910977; Wed, 30 Nov 2011 10:48:30 -0800 (PST) Received: from DataIX.net (ppp-21.135.dialinfree.com. [209.172.21.135]) by mx.google.com with ESMTPS id m13sm3038234wbh.0.2011.11.30.10.48.26 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 30 Nov 2011 10:48:30 -0800 (PST) Sender: Jason Hellenthal Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.5/8.14.5) with ESMTP id pAUImKDj070451 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 30 Nov 2011 13:48:21 -0500 (EST) (envelope-from jhell@DataIX.net) Received: (from jhell@localhost) by DataIX.net (8.14.5/8.14.5/Submit) id pAUImFC5070450; Wed, 30 Nov 2011 13:48:15 -0500 (EST) (envelope-from jhell@DataIX.net) Date: Wed, 30 Nov 2011 13:48:15 -0500 From: Jason Hellenthal To: John Baldwin Message-ID: <20111130184815.GA70174@DataIX.net> References: <20111125073630.GC7915@DataIX.net> <201111301152.47002.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201111301152.47002.jhb@freebsd.org> Cc: freebsd-hackers@freebsd.org, 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 18:48:32 -0000 On Wed, Nov 30, 2011 at 11:52:46AM -0500, John Baldwin wrote: > 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. > Yeah thats what I thought about it to but the more I thought about it, if it just displayed the values changing instead of the description when =N is supplied I think that would be acceptable to. 0 -> 1 in this case. Or possibly sys.oid: 0 -> 1 # since sysctl.conf(5) also takes comments like that. Not really thats something at the top of the list for fixes though. Low fruit. Food for thought.