From 69b54cbe6ea9d96a89732b325abf57a5721e165b Mon Sep 17 00:00:00 2001 From: smos Date: Sun, 1 Apr 2012 09:50:14 +0200 Subject: Add logic that (re)configures the dependent interface that has interface tracking setup for a tunneled IPv6 protocol. --- etc/rc.newwanip | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'etc') diff --git a/etc/rc.newwanip b/etc/rc.newwanip index c50b5d3..12a6732 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -136,6 +136,19 @@ if(is_array($config['gifs']['gif'])){ } } +/* check tunneled IPv6 interface tracking */ +switch($config['interfaces'][$interface]['type6']) { + case "6to4": + case "6rd": + foreach($config['interfaces'] as $iftrackname => $iftrack) { + if($iftrack['track6-interface'] == $interface) { + log_error("interface {%iftrackname} depends on {$interface}, configuring"); + interface_track6_configure($iftrackname); + } + } + break; +} + /* reconfigure our gateway monitor */ setup_gateways_monitor(); -- cgit v1.1