summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authork-paulius <k.dash.paulius@gmail.com>2016-05-05 01:25:51 -0500
committerChris Buechler <cmb@pfsense.org>2016-06-29 00:57:36 -0500
commitbfa8df8a6375d3276646cda52aa15617ad10670d (patch)
tree242c96e9d88fc9683be1c7766b7b1d77b9dbfa48 /src/etc/inc/interfaces.inc
parentda1f0b2d1e92e20147a61b9ad8961610ea56f272 (diff)
downloadpfsense-bfa8df8a6375d3276646cda52aa15617ad10670d.zip
pfsense-bfa8df8a6375d3276646cda52aa15617ad10670d.tar.gz
Flush link-local IPs so we do not get stale data and do not waste time deleting IP if it is already set to fe80::1:1
Diffstat (limited to 'src/etc/inc/interfaces.inc')
-rw-r--r--src/etc/inc/interfaces.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc
index 8137de9..b7cbbd4 100644
--- a/src/etc/inc/interfaces.inc
+++ b/src/etc/inc/interfaces.inc
@@ -3510,8 +3510,8 @@ function interface_track6_configure($interface = "lan", $wancfg, $linkupevent =
/* always configure a link-local of fe80::1:1 on the track6 interfaces */
$realif = get_real_interface($interface);
- $linklocal = find_interface_ipv6_ll($realif);
- if (!empty($linklocal)) {
+ $linklocal = find_interface_ipv6_ll($realif, true);
+ if (!empty($linklocal) && $linklocal != "fe80::1:1%{$realif}") {
mwexec("/sbin/ifconfig {$realif} inet6 {$linklocal} delete");
}
/* XXX: This might break for good on a carp installation using link-local as network ips */
OpenPOWER on IntegriCloud