diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2008-07-08 08:10:51 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2008-07-08 08:10:51 +0000 |
commit | 2e76e612e0b41081749ad1f1ca68bec041918c1b (patch) | |
tree | ea36bd9eab6aef11446356df166693cb65e511de /usr/local | |
parent | 1c3acb7687b624f6e2a8ffd8b4fc585edbe070e7 (diff) | |
download | pfsense-2e76e612e0b41081749ad1f1ca68bec041918c1b.zip pfsense-2e76e612e0b41081749ad1f1ca68bec041918c1b.tar.gz |
Switch over to interface_has_gateway() for gateway detection
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/status_rrd_graph.php | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/usr/local/www/status_rrd_graph.php b/usr/local/www/status_rrd_graph.php index 45068fe..af6cc42 100755 --- a/usr/local/www/status_rrd_graph.php +++ b/usr/local/www/status_rrd_graph.php @@ -194,10 +194,7 @@ include("head.inc"); case "outbound": /* only show interfaces with a gateway */ $optionc = "$optionc[0]"; - $friendly = convert_friendly_interface_to_friendly_descr(strtolower($optionc)); - $realif = convert_friendly_interface_to_real_interface_name(strtolower($optionc)); - $monitorip = get_interface_gateway(strtolower($optionc)); - if($monitorip == "") { + if(!interface_has_gateway($optionc)) { continue 2; } if(! preg_match("/($optionc)[-.]/i", $curdatabase)) { @@ -249,12 +246,7 @@ include("head.inc"); $replace = array(" :: ", "", $friendly); switch($curoption) { case "outbound": - /* only show interfaces with a gateway */ - $optionc = "$optionc[0]"; - $friendly = convert_friendly_interface_to_friendly_descr(strtolower($optionc)); - $realif = convert_friendly_interface_to_real_interface_name(strtolower($optionc)); - $monitorip = get_interface_gateway(strtolower($optionc)); - if($monitorip == "") { + if(!interface_has_gateway($optionc)) { continue 2; } if(! stristr($curdatabase, $optionc)) { |