diff options
author | Ermal <eri@pfsense.org> | 2010-09-17 13:38:01 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-09-17 13:38:01 +0000 |
commit | b746dc61ec4e6e6e43467189ccaf0e1a9aee9b11 (patch) | |
tree | c40484356d2b3ff43686d039bad6a860f93dda3e /etc/inc | |
parent | b829290395954c43ec242d7f45bd1dd8258bbfb6 (diff) | |
download | pfsense-b746dc61ec4e6e6e43467189ccaf0e1a9aee9b11.zip pfsense-b746dc61ec4e6e6e43467189ccaf0e1a9aee9b11.tar.gz |
on newip event reload the static routes for that interface because on dynamic gateways the ip might have changed. While here make sure the interface argument is repsected on system_routing_configure() and use send_event to reconfigure an interface to aleviate a possible race.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/system.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 964004d..292770d 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -383,6 +383,8 @@ function system_routing_configure($interface = "") { if (isset($gateways_arr[$rtent['gateway']])) { $gatewayip = $gateways_arr[$rtent['gateway']]['gateway']; $interfacegw = $gateways_arr[$rtent['gateway']]['interface']; + if ($interface == $gateways_arr[$rtent['gateway']]['friendlyiface']) + continue; } else if (is_ipaddr($rtent['gateway'])) { $gatewayip = $rtent['gateway']; } else { |