Project

General

Profile

Actions

Bug #7147

closed

pfsense-utils.inc - is_ipaddr_configured() does not work properly with some IPv6 formats

Added by Kill Bill over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
01/20/2017
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
All
Affected Architecture:
All

Description

This one is working:

require_once('pfsense-utils.inc');
$ip = "2001:470:dead:beef:1:2::3";
var_dump(where_is_ipaddr_configured($ip));

array(1) {
  [0] =>
  array(2) {
    'if' =>
    string(3) "lan" 
    'ip_or_subnet' =>
    string(27) "2001:470:dead:beef:1:2::3" 
  }
}

This one is not working.

require_once('pfsense-utils.inc');
$ip = "2001:470:dead:beef:1:2:0:3";
var_dump(where_is_ipaddr_configured($ip));

array(0) {
}

Actions

Also available in: Atom PDF