Make tablename independently

Signed-off-by: Robert Langhammer <rlanghammer@web.de>
This commit is contained in:
Robert Langhammer 2018-03-10 00:37:08 +01:00
parent a01433eb31
commit 22ab5c003a
1 changed files with 4 additions and 4 deletions

View File

@ -178,9 +178,9 @@
if($_REQUEST['v4table'] == '1') {
echo "<H2>routes</H2>";
echo "<H2>ipv4 routing table</H2>";
echo '<table>';
$v4routen = shell_exec('ip r s t fff');
$v4routen = shell_exec('ip r s t $(grep import-table /etc/babeld.conf | cut -f2 -d" ")');
$v4route = explode(PHP_EOL, $v4routen);
for($i = 0; $i < count($v4route); ++$i) {
echo "<tr>";
@ -196,9 +196,9 @@
if($_REQUEST['v6table'] == '1') {
echo "<H2>ipv6 routes table fff</H2>";
echo "<H2>ipv6 routing table</H2>";
echo '<table>';
$v6routen = shell_exec('ip -6 r s t fff');
$v6routen = shell_exec('ip -6 r s t $(grep import-table /etc/babeld.conf | cut -f2 -d" ")');
$v6route = explode(PHP_EOL, $v6routen);
for($i = 0; $i < count($v6route); ++$i) {
echo "<tr>";