Project

General

Profile

« Previous | Next » 

Revision 3be49c5f

Added by Seth Mos over 14 years ago

Run system_routing_configure() for all the gif interfaces when the parent interfaces renews.

View differences:

etc/rc.newwanip
102 102
/* reconfigure static routes (kernel may have deleted them) */
103 103
system_routing_configure($interface);
104 104

  
105
/* Check Gif tunnels */
106
foreach($config['gifs'] as $gif) {
107
	if($gif['if'] == $interface) {
108
		foreach($config['interfaces'] as $ifparent => $ifname) {
109
			if(($ifparent['if'] == $gif['gifif']) && (isset($ifparent['enable']))) {
110
				system_routing_configure($ifname);
111
			}
112
		}
113
	}
114
}
115

  
105 116
/* reconfigure our gateway monitor */
106 117
setup_gateways_monitor();
107 118

  

Also available in: Unified diff