Re: ipv6 related warnings

From: Alexander Best <alexbestms_at_math.uni-muenster.de>
Date: Wed, 30 Sep 2009 15:29:42 +0200 (CEST)
Hajimu UMEMOTO schrieb am 2009-09-30:
> Hi,

> >>>>> On Wed, 30 Sep 2009 01:31:17 +0200 (CEST)
> >>>>> Alexander Best <alexbestms_at_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)
> _at__at_ -9,6 +9,7 _at__at_
>  # KEYWORD: nojail

>  . /etc/rc.subr
> +. /etc/network.subr

>  name="netoptions"
>  start_cmd="netoptions_start"
> _at__at_ -66,11 +67,13 _at__at_
>                 ;;
>         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)
> _at__at_ -51,7 +51,9 _at__at_
>                 ;;
>         *)
>                 do_static inet add
> -               do_static inet6 add
> +               if afexists inet6; then
> +                       do_static inet6 add
> +               fi
>                 do_static atm add
>                 ;;
>         esac
> _at__at_ -74,7 +76,9 _at__at_
>                 ;;
>         *)
>                 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 _at_ Internet Mutual Aid Society Yokohama, Japan
> ume_at_mahoroba.org  ume_at_{,jp.}FreeBSD.org
> http://www.imasy.org/~ume/

thx. with that patch the warnings are gone. :)

alex
Received on Wed Sep 30 2009 - 11:30:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:56 UTC