summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-02-21 20:08:19 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-02-21 20:08:19 +0000
commite61457d9f733228f61d84ffeef01204ac172c4bd (patch)
tree898423d37afc9f817b7ed6cec606700086bbc0dd
parent7630167723fe0ff002fe5c2b0b58a56498d6c7cf (diff)
downloadpfsense-e61457d9f733228f61d84ffeef01204ac172c4bd.zip
pfsense-e61457d9f733228f61d84ffeef01204ac172c4bd.tar.gz
Add use icmp option
-rwxr-xr-xusr/local/www/diag_traceroute.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/usr/local/www/diag_traceroute.php b/usr/local/www/diag_traceroute.php
index 432c115..0b18d59 100755
--- a/usr/local/www/diag_traceroute.php
+++ b/usr/local/www/diag_traceroute.php
@@ -84,6 +84,13 @@ if (!isset($do_traceroute)) {
<?php endfor; ?>
</select></td>
</tr>
+
+ <tr>
+ <td width="22%" valign="top" class="vncellreq">Use ICMP</td>
+ <td width="78%" class="vtable">
+ <input name="useicmp" type="checkbox">
+ </td>
+ </tr>
<tr>
<td width="22%" valign="top">&nbsp;</td>
<td width="78%">
@@ -98,7 +105,11 @@ if (!isset($do_traceroute)) {
echo("<br><strong>Traceroute output:</strong><br>");
echo('<pre>');
ob_end_flush();
- system("/usr/sbin/traceroute -w 2 -m " . escapeshellarg($ttl) . " " . escapeshellarg($host));
+ if($_POST['useicmp'])
+ $useicmp = "-I";
+ else
+ $useicmp = "";
+ system("/usr/sbin/traceroute $useicmp -w 2 -m " . escapeshellarg($ttl) . " " . escapeshellarg($host));
echo('</pre>');
}
?>
OpenPOWER on IntegriCloud