From owner-freebsd-current@FreeBSD.ORG Wed Sep 30 13:30:03 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 6AEE21065676 for ; Wed, 30 Sep 2009 13:30:03 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-exrelay1.uni-muenster.de (ZIVM-EXRELAY1.UNI-MUENSTER.DE [128.176.192.14]) by mx1.freebsd.org (Postfix) with ESMTP id 6EDAF8FC0C for ; Wed, 30 Sep 2009 13:30:01 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.44,480,1249250400"; d="scan'208";a="284185208" Received: from zivmaildisp2.uni-muenster.de (HELO ZIVMAILUSER03.UNI-MUENSTER.DE) ([128.176.188.143]) by zivm-relay1.uni-muenster.de with ESMTP; 30 Sep 2009 15:29:42 +0200 Received: by ZIVMAILUSER03.UNI-MUENSTER.DE (Postfix, from userid 149459) id 505CD1B0750; Wed, 30 Sep 2009 15:29:42 +0200 (CEST) Date: Wed, 30 Sep 2009 15:29:42 +0200 (CEST) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Hajimu UMEMOTO Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= , 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 13:30:03 -0000 Hajimu UMEMOTO schrieb am 2009-09-30: > 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/ thx. with that patch the warnings are gone. :) alex