0) {
$netstat .= " | /usr/bin/head -n {$_REQUEST['limit']}";
}
echo htmlspecialchars_decode(shell_exec($netstat));
exit;
}
$pgtitle = array(gettext("Diagnostics"), gettext("Routing tables"));
$shortcut_section = "routing";
include('head.inc');
require_once('classes/Form.class.php');
$form = new Form('Update');
$form->addGlobal(new Form_Input(
'isAjax',
null,
'hidden',
1
));
$section = new Form_Section('Traceroute');
$section->addInput(new Form_Checkbox(
'resolve',
'Resolve names',
'Enable',
$resolve
))->setHelp('Enabling name resolution may cause the query to take longer.'.
' You can stop it at any time by clicking the Stop button in your browser.');
$validLimits = array('10', '50', '100', '200', '500', '1000', 'all');
$section->addInput(new Form_Select(
'limit',
'Rows to display',
$limit,
array_combine($validLimits, $validLimits)
));
$section->addInput(new Form_Input(
'filter',
'Filter',
'text',
$host
))->setHelp('Use a regular expression to filter IP address or hostnames');
$form->add($section);
print $form;
?>
IPv4 Routes
=gettext("Gathering data, please wait...")?> |
IPv6 Routes
=gettext("Gathering data, please wait...")?> |