diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-02-21 20:08:19 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-02-21 20:08:19 +0000 |
commit | e61457d9f733228f61d84ffeef01204ac172c4bd (patch) | |
tree | 898423d37afc9f817b7ed6cec606700086bbc0dd /usr/local/www | |
parent | 7630167723fe0ff002fe5c2b0b58a56498d6c7cf (diff) | |
download | pfsense-e61457d9f733228f61d84ffeef01204ac172c4bd.zip pfsense-e61457d9f733228f61d84ffeef01204ac172c4bd.tar.gz |
Add use icmp option
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/diag_traceroute.php | 13 |
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"> </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>'); } ?> |