Further fine tune the gif tunnel default route commands.

This commit is contained in:
Seth Mos 2011-05-21 23:16:01 +02:00
parent 69bd3cc0f7
commit 839ee78fc2

View File

@ -102,20 +102,22 @@ file_put_contents("{$g['vardb_path']}/{$interface}_ip", $curwanip);
/* reconfigure static routes (kernel may have deleted them) */
system_routing_configure($interface);
/* reconfigure our gateway monitor */
setup_gateways_monitor();
/* Check Gif tunnels */
foreach($config['gifs'] as $gif) {
foreach($config['gifs']['gif'] as $gif) {
if($gif['if'] == $interface) {
foreach($config['interfaces'] as $ifparent => $ifname) {
foreach($config['interfaces'] as $ifname => $ifparent) {
// echo "interface $ifparent, ifname $ifname, gif {$gif['gifif']}\n";
if(($ifparent['if'] == $gif['gifif']) && (isset($ifparent['enable']))) {
// echo "Running routing configure for $ifname\n";
system_routing_configure($ifname);
}
}
}
}
/* reconfigure our gateway monitor */
setup_gateways_monitor();
/* signal filter reload */
filter_configure();