More updates to bgp polling/disco and webui

This commit is contained in:
laf
2015-06-09 09:54:49 +01:00
parent 702b75c0b7
commit 77b9adabc2
4 changed files with 19 additions and 18 deletions
-14
View File
@@ -1202,20 +1202,6 @@ function first_oid_match($device, $list) {
}
}
function ip_to_dec($ip) {
$return = '';
if (strstr($ip, ":")) {
$ipv6 = explode(':', $ip);
foreach ($ipv6 as $item) {
$return .= hexdec($item).'.';
}
$return = substr($return, 0, -1);
} else {
$return = $ip;
}
return $return;
}
function hex_to_ip($hex) {
$return = "";
if (filter_var($hex, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4) === FALSE && filter_var($hex, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6) === FALSE) {