mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 11:04:42 +00:00
util: remove unused get_ll_scope()
This commit is contained in:
parent
9b48085538
commit
f51957afbb
@ -639,16 +639,6 @@ function is_linklocal($ipaddr)
|
||||
return (strtolower(substr($ipaddr, 0, 5)) == "fe80:");
|
||||
}
|
||||
|
||||
/* returns scope of a linklocal address */
|
||||
function get_ll_scope($addr)
|
||||
{
|
||||
if (!is_linklocal($addr) || !strstr($addr, "%")) {
|
||||
return '';
|
||||
}
|
||||
list ($ll, $scope) = explode("%", $addr);
|
||||
return $scope;
|
||||
}
|
||||
|
||||
/* returns true if $ipaddr is a valid literal IPv6 address */
|
||||
function is_literalipaddrv6($ipaddr)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user