diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-09-03 22:30:14 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-09-03 22:30:14 +0000 |
commit | f559eaf6ff242795c9b6bafffcd8f933f0b2ae3c (patch) | |
tree | 498ed20fc6fad607905bc6ca2d1511e5e6b93192 /usr/local/www/status_interfaces.php | |
parent | 7ce318d673b1b66b6609157925eeeb372a7a96dc (diff) | |
download | pfsense-f559eaf6ff242795c9b6bafffcd8f933f0b2ae3c.zip pfsense-f559eaf6ff242795c9b6bafffcd8f933f0b2ae3c.tar.gz |
Report gateway for an interface for optional interfaces if needed
Diffstat (limited to 'usr/local/www/status_interfaces.php')
-rwxr-xr-x | usr/local/www/status_interfaces.php | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/usr/local/www/status_interfaces.php b/usr/local/www/status_interfaces.php index 25d3fae..7eac262 100755 --- a/usr/local/www/status_interfaces.php +++ b/usr/local/www/status_interfaces.php @@ -220,6 +220,12 @@ function get_interface_info($ifdescr) { $ifinfo['gateway'] = $matches[1]; } } + } else { + /* deterimine interface gateway */ + $int = convert_friendly_interface_to_real_interface_name($ifdescr); + $gw = get_interface_gateway($int); + if($gw) + $ifinfo['gateway'] = $gw; } } } @@ -253,8 +259,8 @@ include("head.inc"); <tr> <td colspan="2" class="listtopic"> <?=htmlspecialchars($ifname);?> - interface - (<?=convert_friendly_interface_to_real_interface_name($ifname);?>) + interface + (<?=convert_friendly_interface_to_real_interface_name($ifname);?>) </td> </tr> <tr> @@ -330,7 +336,7 @@ include("head.inc"); $dns_servers = get_dns_servers(); foreach($dns_servers as $dns) { echo "{$dns}<br>"; - } + } ?> </td> <?php endif; endif; if ($ifinfo['media']): ?> @@ -378,7 +384,7 @@ include("head.inc"); </strong>Using dial-on-demand will bring the connection up again if any packet triggers it. To substantiate this point: disconnecting manually will <strong>not</strong> prevent dial-on-demand from making connections -to the outside! Don't use dial-on-demand if you want to make sure that the line +to the outside! Don't use dial-on-demand if you want to make sure that the line is kept disconnected. <p> <span class="red"><strong>Note:</strong></span> In/out counters will wrap at 32bit (4 Gigabyte) ! <br/> |