From owner-freebsd-current@FreeBSD.ORG Wed Sep 30 05:08:46 2009 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13576106566B; Wed, 30 Sep 2009 05:08:46 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from asuka.mahoroba.org (ent.mahoroba.org [IPv6:2001:2f0:104:8010::1]) by mx1.freebsd.org (Postfix) with ESMTP id 4B50A8FC0A; Wed, 30 Sep 2009 05:08:44 +0000 (UTC) Received: from ameno.mahoroba.org (IDENT:/AyGKPOqb0m//pmSUsStISsLUmQymGXhAbUTpkK9mq+LiPW9nWrh/utfGqMIqZx1@ameno.mahoroba.org [IPv6:2001:2f0:104:8010:20a:79ff:fe69:ee6b]) (user=ume mech=CRAM-MD5 bits=0) by asuka.mahoroba.org (8.14.3/8.14.3) with ESMTP/inet6 id n8U584r4016480 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 30 Sep 2009 14:08:23 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Wed, 30 Sep 2009 14:08:04 +0900 Message-ID: From: Hajimu UMEMOTO To: Alexander Best In-Reply-To: References: <86ocotelhf.fsf@ds4.des.no> User-Agent: xcite1.58> Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.1 (i386-portbld-freebsd7.2) MULE/6.0 (HANACHIRUSATO) X-Operating-System: FreeBSD 7.2-RELEASE-p2 X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.3 (asuka.mahoroba.org [IPv6:2001:2f0:104:8010::1]); Wed, 30 Sep 2009 14:08:26 +0900 (JST) X-Virus-Scanned: clamav-milter 0.95.2 at asuka.mahoroba.org X-Virus-Status: Clean X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on asuka.mahoroba.org Cc: Dag-Erling =?UTF-8?B?U23DuHJncmF2?= , freebsd-current@FreeBSD.org, Andriy Gapon , hrs@FreeBSD.org Subject: Re: ipv6 related warnings 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: Wed, 30 Sep 2009 05:08:46 -0000 Hi, >>>>> On Wed, 30 Sep 2009 01:31:17 +0200 (CEST) >>>>> Alexander Best said: alexbestms> my /etc should now be finally in sync with /usr/src/etc. however i'm still alexbestms> getting the warnings i desribed at the beginning of this thread: alexbestms> Additional TCP/IP options: alexbestms> rfc1323 extensions=NO alexbestms> no-ipv4-mapped-ipv6 alexbestms> sysctl: alexbestms> unknown oid 'net.inet6.ip6.v6only' alexbestms> . alexbestms> wlan0: Ethernet address: 00:0f:b5:82:07:c8 alexbestms> Starting Network: lo0 ath0. alexbestms> Starting devd. alexbestms> Configuring keyboard: alexbestms> keymap alexbestms> keyrate alexbestms> keybell alexbestms> \^[[=0;0B alexbestms> . alexbestms> add net default: gateway 192.168.1.1 alexbestms> route: alexbestms> bad keyword: inet6 alexbestms> usage: route [-dnqtv] command [[modifiers] args] alexbestms> route: alexbestms> bad keyword: inet6 alexbestms> usage: route [-dnqtv] command [[modifiers] args] alexbestms> route: alexbestms> bad keyword: inet6 alexbestms> usage: route [-dnqtv] command [[modifiers] args] alexbestms> route: alexbestms> bad keyword: inet6 alexbestms> usage: route [-dnqtv] command [[modifiers] args] alexbestms> Additional routing options: alexbestms> ignore ICMP redirect=YES alexbestms> log ICMP redirect=YES It seems that the recent rc scripts have a problem. They do IPv6 operation regardless of an availability of an IPv6 in the kernel, in some places. Please try the following patch and let me the result. Sorry but I don't try it by my self. Index: etc/rc.d/netoptions =================================================================== --- etc/rc.d/netoptions (revision 197634) +++ etc/rc.d/netoptions (working copy) @@ -9,6 +9,7 @@ # KEYWORD: nojail . /etc/rc.subr +. /etc/network.subr name="netoptions" start_cmd="netoptions_start" @@ -66,11 +67,13 @@ ;; esac - if checkyesno ipv6_ipv4mapping; then - ${SYSCTL_W} net.inet6.ip6.v6only=0 >/dev/null - else - echo -n " no-ipv4-mapped-ipv6" - ${SYSCTL_W} net.inet6.ip6.v6only=1 >/dev/null + if afexists inet6; then + if checkyesno ipv6_ipv4mapping; then + ${SYSCTL_W} net.inet6.ip6.v6only=0 >/dev/null + else + echo -n " no-ipv4-mapped-ipv6" + ${SYSCTL_W} net.inet6.ip6.v6only=1 >/dev/null + fi fi [ -n "${_netoptions_initdone}" ] && echo '.' Index: etc/rc.d/routing =================================================================== --- etc/rc.d/routing (revision 197634) +++ etc/rc.d/routing (working copy) @@ -51,7 +51,9 @@ ;; *) do_static inet add - do_static inet6 add + if afexists inet6; then + do_static inet6 add + fi do_static atm add ;; esac @@ -74,7 +76,9 @@ ;; *) do_static inet delete - do_static inet6 delete + if afexists inet6; then + do_static inet6 delete + fi do_static atm delete ;; esac Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/