summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authork-paulius <k.dash.paulius@gmail.com>2016-05-05 01:25:51 -0500
committerk-paulius <k.dash.paulius@gmail.com>2016-05-05 01:25:51 -0500
commitfcf77526683e710f61c2c62b44365f0adf24989f (patch)
tree8c577146cc8f413b320a956be4fffbf239f79fb2 /src
parent02ec5bd385f32bdd4bb6403b00884b3930736b54 (diff)
downloadpfsense-fcf77526683e710f61c2c62b44365f0adf24989f.zip
pfsense-fcf77526683e710f61c2c62b44365f0adf24989f.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')
-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 cefa7ab..8489d8e 100644
--- a/src/etc/inc/interfaces.inc
+++ b/src/etc/inc/interfaces.inc
@@ -3509,8 +3509,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