Revision 352f8085
Added by Chris Buechler almost 10 years ago
src/usr/local/www/interfaces.php | ||
---|---|---|
742 | 742 |
if (!is_ipaddrv6($_POST['ipaddrv6'])) { |
743 | 743 |
$input_errors[] = gettext("A valid IPv6 address must be specified."); |
744 | 744 |
} else { |
745 |
if (ip_in_subnet($_POST['ipaddrv6'], "fe80::/10")) { |
|
746 |
$input_errors[] = gettext("IPv6 link local addresses cannot be configured as an interface IP."); |
|
747 |
} |
|
745 | 748 |
$where_ipaddr_configured = where_is_ipaddr_configured($_POST['ipaddrv6'], $if, true, true, $_POST['subnetv6']); |
746 | 749 |
if (count($where_ipaddr_configured)) { |
747 | 750 |
$subnet_conflict_text = sprintf(gettext("IPv6 address %s is being used by or overlaps with:"), $_POST['ipaddrv6'] . "/" . $_POST['subnetv6']); |
Also available in: Unified diff
Don't allow configuring IPv6 link local addresses on an interface. Ticket #4062