mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Use the parent NIC rather than the VIP. Fixes part of Ticket #4252
This commit is contained in:
parent
de16863d9e
commit
94efc59dff
@ -95,7 +95,14 @@ function services_radvd_configure($blacklist = array()) {
|
||||
}
|
||||
}
|
||||
|
||||
$realif = get_real_interface($dhcpv6if, "inet6");
|
||||
if (strstr($dhcpv6if, "_vip")) {
|
||||
// CARP IP, find parent
|
||||
$ifparent = link_carp_interface_to_parent($dhcpv6if);
|
||||
$realif = convert_friendly_interface_to_real_interface_name($ifparent);
|
||||
} else {
|
||||
$realif = get_real_interface($dhcpv6if, "inet6");
|
||||
}
|
||||
|
||||
if (isset($radvdifs[$realif]))
|
||||
continue;
|
||||
|
||||
@ -220,7 +227,14 @@ function services_radvd_configure($blacklist = array()) {
|
||||
if (empty($config['interfaces'][$trackif]))
|
||||
continue;
|
||||
|
||||
$realif = get_real_interface($if, "inet6");
|
||||
if (strstr($if, "_vip")) {
|
||||
// CARP IP, find parent
|
||||
$ifparent = link_carp_interface_to_parent($if);
|
||||
$realif = convert_friendly_interface_to_real_interface_name($ifparent);
|
||||
} else {
|
||||
$realif = get_real_interface($if, "inet6");
|
||||
}
|
||||
|
||||
/* prevent duplicate entries, manual overrides */
|
||||
if (isset($radvdifs[$realif]))
|
||||
continue;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user