summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2001-12-15 03:59:47 +0000
committerume <ume@FreeBSD.org>2001-12-15 03:59:47 +0000
commitad82adf6dd23cf18586eae17240b2a0f4b5891a4 (patch)
treed2337eb0e9d8a18aea3011c53c2ff1808cc7adce /etc
parentfce71746d6ce4d2c71a9daed6cb5c360265c2a65 (diff)
downloadFreeBSD-src-ad82adf6dd23cf18586eae17240b2a0f4b5891a4.zip
FreeBSD-src-ad82adf6dd23cf18586eae17240b2a0f4b5891a4.tar.gz
automatic creation of faith0 and stf0 for backward compatibility.
MFC after: 2 days
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.d/network_ipv62
-rw-r--r--etc/rc.network62
2 files changed, 4 insertions, 0 deletions
diff --git a/etc/rc.d/network_ipv6 b/etc/rc.d/network_ipv6
index 585dd99..7d35cdc 100644
--- a/etc/rc.d/network_ipv6
+++ b/etc/rc.d/network_ipv6
@@ -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}" : ".*/\(.*\)"`
diff --git a/etc/rc.network6 b/etc/rc.network6
index 585dd99..7d35cdc 100644
--- a/etc/rc.network6
+++ b/etc/rc.network6
@@ -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}" : ".*/\(.*\)"`
OpenPOWER on IntegriCloud