summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-03-11 08:38:19 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-03-11 08:38:19 -0300
commitc18468417683b03255bdca2493c7acf21a2e06e1 (patch)
tree9b1fe1baab3d74c09776957ddfc4998914c7974f
parent4c3dafc4fd4fc2e381c82963396fc393610a9fef (diff)
downloadpfsense-c18468417683b03255bdca2493c7acf21a2e06e1.zip
pfsense-c18468417683b03255bdca2493c7acf21a2e06e1.tar.gz
Do not delete linklocal address
-rw-r--r--etc/inc/interfaces.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 665ebed..a5c48dba 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -2874,9 +2874,10 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven
$tmpifaces = pfSense_getall_interface_addresses($realif);
if (is_array($tmpifaces)) {
foreach ($tmpifaces as $tmpiface) {
- if (strstr($tmpiface, ":"))
- mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " inet6 {$tmpiface} delete");
- else {
+ if (is_ipaddrv6($tmpiface) || is_subnetv6($tmpiface)) {
+ if (!is_linklocal($tmpiface))
+ mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " inet6 {$tmpiface} delete");
+ } else {
if (is_subnetv4($tmpiface)) {
$tmpip = explode('/', $tmpiface);
$tmpip = $tmpip[0];
OpenPOWER on IntegriCloud