mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
More updates to bgp polling/disco and webui
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user