summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-01-22 09:00:54 -0200
committerRenato Botelho <garga@FreeBSD.org>2015-01-22 09:00:54 -0200
commit150d479bc5bf78a6b739bb5bf935b4698f6de5bd (patch)
tree6ee4faabb8788cc5972704472cc9f5d2ecf4a582 /etc/inc
parent42cc62a2e7bbf1d953a1172578144b4763467c41 (diff)
downloadpfsense-150d479bc5bf78a6b739bb5bf935b4698f6de5bd.zip
pfsense-150d479bc5bf78a6b739bb5bf935b4698f6de5bd.tar.gz
When configuring radvd, check if carp is enabled. Ticket #4252
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/services.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index 6fbc69a..079413c 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -96,8 +96,8 @@ function services_radvd_configure($blacklist = array()) {
}
if (strstr($dhcpv6if, "_vip")) {
- // CARP IP, find parent
- if (get_carp_interface_status($dhcpv6if) != "MASTER")
+ // CARP IP, check if it's enabled and find parent
+ if (!get_carp_status() || get_carp_interface_status($dhcpv6if) != "MASTER")
continue;
$ifparent = link_carp_interface_to_parent($dhcpv6if);
$realif = convert_friendly_interface_to_real_interface_name($ifparent);
OpenPOWER on IntegriCloud