Revision 7c0571ce
Added by Seth Mos about 14 years ago
etc/inc/interfaces.inc | ||
---|---|---|
811 | 811 |
else |
812 | 812 |
log_error("could not bring gifif up -- variable not defined"); |
813 | 813 |
|
814 |
/* XXX: Needed?! Let them use the defined gateways instead */ |
|
815 |
//mwexec("/sbin/route add {$gif['tunnel-remote-addr']}/{$gif['tunnel-remote-net']} -iface {$gifif}"); |
|
814 |
$iflist = get_configured_interface_list(); |
|
815 |
foreach($iflist as $ifname) { |
|
816 |
if($config['interfaces'][$ifname]['if'] == $gifif) { |
|
817 |
if(get_interface_gateway_v6($ifname)) { |
|
818 |
system_routing_configure($ifname); |
|
819 |
break; |
|
820 |
} |
|
821 |
} |
|
822 |
} |
|
816 | 823 |
|
817 | 824 |
if(is_ipaddrv4($gif['tunnel-remote-addr'])) |
818 | 825 |
file_put_contents("{$g['tmp_path']}/{$gifif}_router", $gif['tunnel-remote-addr']); |
Also available in: Unified diff
When editing a gif interface with a gateway we need to call system_routing_configure() for that gif interface.