Revision f402d99e
Added by Ermal Luçi over 16 years ago
etc/inc/pfsense-utils.inc | ||
---|---|---|
1466 | 1466 |
if (!isset($interface_sn_arr_cache[$interface]) or $flush) { |
1467 | 1467 |
$interface_sn_arr_cache[$interface] = exec_command("/sbin/ifconfig {$interface} | /usr/bin/grep -w \"inet\" | /usr/bin/cut -d\" \" -f 4 | /usr/bin/head -1"); |
1468 | 1468 |
$interface_sn_arr_cache[$interface] = strlen(str_replace("0", "", base_convert(str_replace("\n", "", $interface_sn_arr_cache[$interface]),16, 2))); |
1469 |
log_error("int:{$interface} - generated subnet mask {$interface_sn_arr_cache[$interface]}"); |
|
1470 | 1469 |
} |
1471 | 1470 |
|
1472 | 1471 |
return $interface_sn_arr_cache[$interface]; |
Also available in: Unified diff
Remove debug message.