Commit b3bad8d2 authored by Franco Fichtner's avatar Franco Fichtner

interfaces: stray tab in previous

parent 07d2354a
...@@ -246,7 +246,7 @@ function legacy_interfaces_details($intf = null) ...@@ -246,7 +246,7 @@ function legacy_interfaces_details($intf = null)
$result[$current_interface]["macaddr"] = $line_parts[1]; $result[$current_interface]["macaddr"] = $line_parts[1];
} elseif (strpos($line, "\tinet ") !== false) { } elseif (strpos($line, "\tinet ") !== false) {
// IPv4 information // IPv4 information
unset($mask); unset($mask);
for ($i = 0; $i < count($line_parts) - 1; ++$i) { for ($i = 0; $i < count($line_parts) - 1; ++$i) {
if ($line_parts[$i] == 'netmask') { if ($line_parts[$i] == 'netmask') {
$mask = substr_count(base_convert(hexdec($line_parts[($i + 1)]), 10, 2), '1'); $mask = substr_count(base_convert(hexdec($line_parts[($i + 1)]), 10, 2), '1');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment