Revision f91bca49
Added by Viktor Gurov over 3 years ago
src/etc/inc/interfaces.inc | ||
---|---|---|
4184 | 4184 |
$mac_addr = $mac_if_cfg['spoofmac'] ?: $vendor_mac; |
4185 | 4185 |
|
4186 | 4186 |
interface_set_macaddr($realhwif, $mac_addr); |
4187 |
|
|
4188 |
/* Regenerate link-local address on MAC change. |
|
4189 |
* |
|
4190 |
* Some network devices respond to a DHCPv6 Solicit message only when |
|
4191 |
* the IPv6 source address is consistent with what they expect. |
|
4192 |
* |
|
4193 |
* See https://redmine.pfsense.org/issues/12794 */ |
|
4194 |
if ($mac_addr != $current_mac) { |
|
4195 |
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " inet6 ifdisabled"); |
|
4196 |
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " inet6 " . get_interface_linklocal($interface) . " delete"); |
|
4197 |
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " inet6 -ifdisabled"); |
|
4198 |
} |
|
4187 | 4199 |
} else { |
4188 | 4200 |
/* |
4189 | 4201 |
* this is not a valid mac address. generate a |
Also available in: Unified diff
Regenerate link-local address on MAC change. Fixes #12794