summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <luiz@netgate.com>2015-11-10 08:57:27 -0600
committerLuiz Otavio O Souza <luiz@netgate.com>2015-11-10 09:00:01 -0600
commita2e6d7f82f4811c743542837bf56c4336a6711eb (patch)
treeca5eccd279c5eba1afb13216b24f29afc8532790 /src
parent10fe1eb50b7af073098bd72681ec49c1ccb11103 (diff)
downloadpfsense-a2e6d7f82f4811c743542837bf56c4336a6711eb.zip
pfsense-a2e6d7f82f4811c743542837bf56c4336a6711eb.tar.gz
Make the display of hardware crypto information more reliable at least for AESNI.
Issue: #4911
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/index.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php
index f26e7f3..cb08c80 100644
--- a/src/usr/local/www/index.php
+++ b/src/usr/local/www/index.php
@@ -213,13 +213,14 @@ if ($fd) {
or preg_match("/^safe.: (\w.*)/", $dmesgl, $matches)
or preg_match("/^ubsec.: (.*?),/", $dmesgl, $matches)
or preg_match("/^padlock.: <(.*?)>,/", $dmesgl, $matches)
- or preg_match("/^glxsb.: (.*?),/", $dmesgl, $matches)
- or preg_match("/^aesni.: (.*?),/", $dmesgl, $matches)) {
+ or preg_match("/^glxsb.: (.*?),/", $dmesgl, $matches)) {
$hwcrypto = $matches[1];
break;
}
}
fclose($fd);
+ if (!isset($hwcrypto) && get_single_sysctl("dev.aesni.0.%desc"))
+ $hwcrypto = get_single_sysctl("dev.aesni.0.%desc");
}
##build widget saved list information
OpenPOWER on IntegriCloud