Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Sep 2009 15:29:42 +0200 (CEST)
From:      Alexander Best <alexbestms@math.uni-muenster.de>
To:        Hajimu UMEMOTO <ume@FreeBSD.org>
Cc:        Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= <des@des.no>, freebsd-current@FreeBSD.org, Andriy Gapon <avg@icyb.net.ua>, hrs@FreeBSD.org
Subject:   Re: ipv6 related warnings
Message-ID:  <permail-200909301329421e86ffa8000020dc-a_best01@message-id.uni-muenster.de>
In-Reply-To: <ygevdj1nhor.wl%ume@mahoroba.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hajimu UMEMOTO schrieb am 2009-09-30:
> Hi,

> >>>>> On Wed, 30 Sep 2009 01:31:17 +0200 (CEST)
> >>>>> Alexander Best <alexbestms@math.uni-muenster.de> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?permail-200909301329421e86ffa8000020dc-a_best01>