diff options
Diffstat (limited to 'usr/local')
-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>'); } ?> |