From 64fe18391b02a6aa723025712fce4c396d15642a Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 21 Mar 2002 03:17:09 +0000 Subject: IPv6 updates. --- ppp/ip-down.ipv6to4 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'ppp/ip-down.ipv6to4') 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 -- cgit v1.2.1