1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-01 08:27:59 +00:00

Don't install route for fec0::/10. It was wrongly replaced from

ff02::/16 by me.

PR:		22715
This commit is contained in:
Hajimu UMEMOTO 2000-11-14 15:49:31 +00:00
parent 70b25a7daf
commit 9c2fe1b866
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68721
2 changed files with 4 additions and 6 deletions

View File

@ -453,11 +453,11 @@ network6_default_interface_setup() {
route add -inet6 fe80:: -prefixlen 10 ::1 -reject route add -inet6 fe80:: -prefixlen 10 ::1 -reject
case ${ipv6_default_interface} in case ${ipv6_default_interface} in
[Nn][Oo] | '') [Nn][Oo] | '')
route add -inet6 fec0:: -prefixlen 10 ::1 -reject route add -inet6 ff02:: -prefixlen 16 ::1 -reject
;; ;;
*) *)
laddr=`network6_getladdr ${ipv6_default_interface}` laddr=`network6_getladdr ${ipv6_default_interface}`
route add -inet6 fec0:: ${laddr} -prefixlen 10 -interface \ route add -inet6 ff02:: ${laddr} -prefixlen 16 -interface \
-cloning -cloning
# Disable installing the default interface with the # Disable installing the default interface with the
@ -467,7 +467,6 @@ network6_default_interface_setup() {
# configured default route. # configured default route.
case ${ipv6_gateway_enable} in case ${ipv6_gateway_enable} in
[Yy][Ee][Ss]) [Yy][Ee][Ss])
ndp -I ${ipv6_default_interface}
;; ;;
*) *)
if [ `sysctl -n net.inet6.ip6.accept_rtadv` -eq 1 ] if [ `sysctl -n net.inet6.ip6.accept_rtadv` -eq 1 ]

View File

@ -453,11 +453,11 @@ network6_default_interface_setup() {
route add -inet6 fe80:: -prefixlen 10 ::1 -reject route add -inet6 fe80:: -prefixlen 10 ::1 -reject
case ${ipv6_default_interface} in case ${ipv6_default_interface} in
[Nn][Oo] | '') [Nn][Oo] | '')
route add -inet6 fec0:: -prefixlen 10 ::1 -reject route add -inet6 ff02:: -prefixlen 16 ::1 -reject
;; ;;
*) *)
laddr=`network6_getladdr ${ipv6_default_interface}` laddr=`network6_getladdr ${ipv6_default_interface}`
route add -inet6 fec0:: ${laddr} -prefixlen 10 -interface \ route add -inet6 ff02:: ${laddr} -prefixlen 16 -interface \
-cloning -cloning
# Disable installing the default interface with the # Disable installing the default interface with the
@ -467,7 +467,6 @@ network6_default_interface_setup() {
# configured default route. # configured default route.
case ${ipv6_gateway_enable} in case ${ipv6_gateway_enable} in
[Yy][Ee][Ss]) [Yy][Ee][Ss])
ndp -I ${ipv6_default_interface}
;; ;;
*) *)
if [ `sysctl -n net.inet6.ip6.accept_rtadv` -eq 1 ] if [ `sysctl -n net.inet6.ip6.accept_rtadv` -eq 1 ]