aboutsummaryrefslogtreecommitdiffstats
path: root/ppp
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-03-21 03:17:09 +0000
committerBill Nottingham <notting@redhat.com>2002-03-21 03:17:09 +0000
commit64fe18391b02a6aa723025712fce4c396d15642a (patch)
tree955122f4d6c6377605b590861e92252962432d2c /ppp
parent5bb168c9f533fd5a12134aafd20018eecf3c17ae (diff)
downloadinitscripts-64fe18391b02a6aa723025712fce4c396d15642a.tar
initscripts-64fe18391b02a6aa723025712fce4c396d15642a.tar.gz
initscripts-64fe18391b02a6aa723025712fce4c396d15642a.tar.bz2
initscripts-64fe18391b02a6aa723025712fce4c396d15642a.tar.xz
initscripts-64fe18391b02a6aa723025712fce4c396d15642a.zip
IPv6 updates. <pekkas@netcore.fi>
Diffstat (limited to 'ppp')
-rw-r--r--ppp/ip-down.ipv6to411
1 files changed, 7 insertions, 4 deletions
diff --git a/ppp/ip-down.ipv6to4 b/ppp/ip-down.ipv6to4
index de2c6085..268ff5d0 100644
--- a/ppp/ip-down.ipv6to4
+++ b/ppp/ip-down.ipv6to4
@@ -87,10 +87,13 @@ fi
# Get local IPv4 address of dedicated tunnel
ipv4addr6to4local="`ipv6_get_ipv4addr_of_tunnel tun6to4 local`"
-# Check against configured 6to4 tunnel to see if this interface was used before
-if [ "$ipv4addr" != "$ipv4addr6to4local" ]; then
- # IPv4 address of interface does't match local tunnel address, interface was not used for current 6to4 setup
- valid6to4config="no"
+# IPv6to4 not enabled on this interface?
+if [ $IPV6TO4INIT != "yes" ]; then
+ # Check against configured 6to4 tunnel to see if this interface was regardless used before
+ if [ "$ipv4addr" != "$ipv4addr6to4local" ]; then
+ # IPv4 address of interface does't match local tunnel address, interface was not used for current 6to4 setup
+ valid6to4config="no"
+ fi
fi
if [ "$valid6to4config" = "yes" ]; then