From f0d1fe9b841bb0641f32ebb0c2254b0b0adc2a6c Mon Sep 17 00:00:00 2001 From: billz Date: Thu, 21 Apr 2022 09:52:09 +0100 Subject: [PATCH] Implement routing table raw output --- includes/internetRoute.php | 11 +++++++++++ includes/networking.php | 2 ++ locale/en_US/LC_MESSAGES/messages.mo | Bin 30851 -> 31005 bytes locale/en_US/LC_MESSAGES/messages.po | 6 ++++++ templates/networking.php | 23 +++++++++++++++++++++++ 5 files changed, 42 insertions(+) diff --git a/includes/internetRoute.php b/includes/internetRoute.php index e83dca22..f172b847 100755 --- a/includes/internetRoute.php +++ b/includes/internetRoute.php @@ -55,3 +55,14 @@ function getRouteInfo($checkAccess) return $rInfo; } +/* + * Fetches raw output of ip route + * + * @return string + */ +function getRouteInfoRaw() +{ + exec('ip route list', $routes); + return $routes; +} + diff --git a/includes/networking.php b/includes/networking.php index ac5d39bc..345ca14e 100755 --- a/includes/networking.php +++ b/includes/networking.php @@ -14,6 +14,7 @@ function DisplayNetworkingConfig() exec("ls /sys/class/net | grep -v lo", $interfaces); $routeInfo = getRouteInfo(true); + $routeInfoRaw = getRouteInfoRaw(); $arrHostapdConf = parse_ini_file(RASPI_CONFIG.'/hostapd.ini'); $bridgedEnabled = $arrHostapdConf['BridgedEnable']; @@ -21,6 +22,7 @@ function DisplayNetworkingConfig() "status", "interfaces", "routeInfo", + "routeInfoRaw", "bridgedEnabled") ); } diff --git a/locale/en_US/LC_MESSAGES/messages.mo b/locale/en_US/LC_MESSAGES/messages.mo index 84b77220b4b858a61a67557f3c256c36e87886af..3433cbf6ee28d819ec2cb9cac01e5a2ec37f3f59 100644 GIT binary patch delta 8622 zcmZYE30xOt9>?(qMdU^SIaCll5IhnA&pc33Qan;b1#dwS6%>&OuQ4+3N;B88(u&P1 zE7Q_4x800PYr8aEE3+~y%d*_;P)qmo{m(kVfW}b6qkli~kc|G!PFXv3C z_XfkU%FCFhI4jVYm^#KBj8d&J$??V{Vn-~&JPgL87>B2jTg(-VM4#ry_+l)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