mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-18 15:30:21 +00:00
Fix an issue when ipv6_enable=YES && ipv6_gateway_enable=YES which could
prevent rtadvd(8) from working as intended. Spotted by: brian Discussed with: brian
This commit is contained in:
parent
86b32c0887
commit
274b8658fc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=242181
@ -504,7 +504,11 @@ ipv6_autoconfif()
|
||||
# backward compatibility: $ipv6_enable
|
||||
case $ipv6_enable in
|
||||
[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
|
||||
return 0
|
||||
if checkyesno ipv6_gateway_enable; then
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
|
@ -51,10 +51,6 @@ rtadvd_precmd()
|
||||
;;
|
||||
esac
|
||||
|
||||
for iface in ${command_args}; do
|
||||
ifconfig ${iface} inet6 -accept_rtadv
|
||||
done
|
||||
|
||||
# Enable Router Renumbering, unicast case
|
||||
# (use correct src/dst addr)
|
||||
# rtadvd -R "in ipsec ah/transport/fec0:0:0:1::1-fec0:0:0:10::1/require" ${ipv6_network_interfaces}
|
||||
|
Loading…
Reference in New Issue
Block a user