diff options
author | k-paulius <k.dash.paulius@gmail.com> | 2016-05-05 01:25:51 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-06-29 00:57:36 -0500 |
commit | bfa8df8a6375d3276646cda52aa15617ad10670d (patch) | |
tree | 242c96e9d88fc9683be1c7766b7b1d77b9dbfa48 /src | |
parent | da1f0b2d1e92e20147a61b9ad8961610ea56f272 (diff) | |
download | pfsense-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')
-rw-r--r-- | src/etc/inc/interfaces.inc | 4 |
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 */ |