automatic creation of faith0 and stf0 for backward compatibility.

MFC after:	2 days
This commit is contained in:
Hajimu UMEMOTO 2001-12-15 03:59:47 +00:00
parent 80c706c80e
commit 91b70c33dd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87974
2 changed files with 4 additions and 0 deletions

View file

@ -394,6 +394,7 @@ network6_stf_setup() {
esac
;;
esac
ifconfig stf0 create >/dev/null 2>&1
ifconfig stf0 inet6 2002:${ipv4_in_hexformat}:${stf_interface_ipv6_slaid:-0}:${stf_interface_ipv6_ifid} \
prefixlen ${stf_prefixlen}
# disallow packets to malicious 6to4 prefix
@ -433,6 +434,7 @@ network6_faith_setup() {
;;
*)
sysctl net.inet6.ip6.keepfaith=1
ifconfig faith0 create >/dev/null 2>&1
ifconfig faith0 up
for prefix in ${ipv6_faith_prefix}; do
prefixlen=`expr "${prefix}" : ".*/\(.*\)"`

View file

@ -394,6 +394,7 @@ network6_stf_setup() {
esac
;;
esac
ifconfig stf0 create >/dev/null 2>&1
ifconfig stf0 inet6 2002:${ipv4_in_hexformat}:${stf_interface_ipv6_slaid:-0}:${stf_interface_ipv6_ifid} \
prefixlen ${stf_prefixlen}
# disallow packets to malicious 6to4 prefix
@ -433,6 +434,7 @@ network6_faith_setup() {
;;
*)
sysctl net.inet6.ip6.keepfaith=1
ifconfig faith0 create >/dev/null 2>&1
ifconfig faith0 up
for prefix in ${ipv6_faith_prefix}; do
prefixlen=`expr "${prefix}" : ".*/\(.*\)"`