ipv6 related warnings
Hajimu UMEMOTO
ume at FreeBSD.org
Wed Sep 30 05:08:46 UTC 2009
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)
@@ -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 at mahoroba.org ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/
More information about the freebsd-current
mailing list