Project

General

Profile

« Previous | Next » 

Revision e61457d9

Added by Scott Ullrich over 19 years ago

Add use icmp option

View differences:

usr/local/www/diag_traceroute.php
84 84
					<?php endfor; ?>
85 85
					</select></td>
86 86
				</tr>
87

  
88
				<tr>
89
				  <td width="22%" valign="top" class="vncellreq">Use ICMP</td>
90
				  <td width="78%" class="vtable">
91
					<input name="useicmp" type="checkbox">
92
					</td>
93
				</tr>
87 94
				<tr>
88 95
				  <td width="22%" valign="top">&nbsp;</td>
89 96
				  <td width="78%"> 
......
98 105
					echo("<br><strong>Traceroute output:</strong><br>");
99 106
					echo('<pre>');
100 107
					ob_end_flush();
101
					system("/usr/sbin/traceroute -w 2 -m " . escapeshellarg($ttl) . " " . escapeshellarg($host));
108
					if($_POST['useicmp'])
109
						$useicmp = "-I";
110
					else
111
						$useicmp = "";
112
					system("/usr/sbin/traceroute $useicmp -w 2 -m " . escapeshellarg($ttl) . " " . escapeshellarg($host));
102 113
					echo('</pre>');
103 114
				}
104 115
				?>

Also available in: Unified diff