From owner-freebsd-current@FreeBSD.ORG Mon Sep 28 23:27:20 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0DE91065692 for ; Mon, 28 Sep 2009 23:27:20 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 7D8908FC14 for ; Mon, 28 Sep 2009 23:27:20 +0000 (UTC) Received: (qmail 6250 invoked by uid 399); 28 Sep 2009 23:27:17 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 28 Sep 2009 23:27:17 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4AC1464E.4010502@FreeBSD.org> Date: Mon, 28 Sep 2009 16:27:10 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.23 (X11/20090822) MIME-Version: 1.0 To: Pegasus Mc Cleaft References: <200909290006.44164.ken@mthelicon.com> In-Reply-To: <200909290006.44164.ken@mthelicon.com> X-Enigmail-Version: 0.96.0 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD current mailing list Subject: Re: Typo in rc.d/netoptions? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Sep 2009 23:27:21 -0000 I had a similar question, maybe hrs can shed some light. Doug Pegasus Mc Cleaft wrote: > Hello Current, > > I was wondering if there is a typo in rc.d/netoptions that has inverted logic > for tcp_extensions and missing the banner before changing the ipv4 to 6 > mapping? I think I have patched it, but would like a second opinion. > > Peg > > --- /usr/src/etc/rc.d/netoptions 2009-09-13 00:02:18.984185765 +0100 > +++ /etc/rc.d/netoptions 2009-09-29 00:02:46.210831591 +0100 > @@ -32,7 +32,7 @@ > ${SYSCTL_W} net.inet.udp.log_in_vain="${log_in_vain}" >> /dev/null > fi > > - if checkyesno tcp_extensions; then > + if ! checkyesno tcp_extensions; then > netoptions_init > echo -n ' rfc1323 extensions=NO' > ${SYSCTL_W} net.inet.tcp.rfc1323=0 >/dev/null > @@ -69,6 +69,7 @@ > if checkyesno ipv6_ipv4mapping; then > ${SYSCTL_W} net.inet6.ip6.v6only=0 >/dev/null > else > + netoptions_init > echo -n " no-ipv4-mapped-ipv6" > ${SYSCTL_W} net.inet6.ip6.v6only=1 >/dev/null > fi > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > -- This .signature sanitized for your protection