diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-04-26 13:47:33 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-04-26 13:47:33 +0000 |
commit | 6dc3a5c2e428a6f8c0d11d904f12ab8ab86a8718 (patch) | |
tree | f528b84d1cd3ee104d92a2320a9eabf77bc8c9eb /etc/inc/pfsense-utils.inc | |
parent | 52947718175a67512a7b79c5d401f2ba7d536489 (diff) | |
download | pfsense-6dc3a5c2e428a6f8c0d11d904f12ab8ab86a8718.zip pfsense-6dc3a5c2e428a6f8c0d11d904f12ab8ab86a8718.tar.gz |
* Move other functions around to where it makes sense.
* Reduce somewhat require_once() overhead by removing the includes from gwlb.inc they are not needed.
Some more analysis is needed on the include path
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index c814dac..e74429d 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -2776,51 +2776,6 @@ function pfsense_default_state_size() { return $max_states; } -function lookup_gateway_ip_by_name($name) { - global $config; - if(is_array($config['gateways'])) { - foreach($config['gateways']['gateway_item'] as $gateway) { - if($gateway['name'] == $name) { - $gatewayip = $gateway['gateway']; - //$interfacegw = $gateway['interface']; - return($gatewayip); - } - } - } else { - return(false); - } -} - -function lookup_gateway_monitor_ip_by_name($name) { - global $config; - $gateways_arr = return_gateways_array(); - - foreach($gateways_arr as $gateway) { - if($gateway['name'] == "$name") { - $monitorip = $gateway['monitor']; - if($monitorip == "") - $monitorip = $gateway['gateway']; - - return($monitorip); - } - } - return(false); -} - -function lookup_gateway_interface_by_name($name) { - global $config; - $gateways_arr = return_gateways_array(); - - foreach($gateways_arr as $gateway) { - if($gateway['name'] == "$name") { - $gatewayip = $gateway['gateway']; - $interfacegw = $gateway['interface']; - return($interfacegw); - } - } - return(false); -} - /****f* pfsense-utils/safe_write_file * NAME * safe_write_file - Write a file out atomically |