diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-08-23 23:25:16 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-08-23 23:25:16 +0000 |
commit | 4a157de53fc9cba546c7149d60b1fc85734704c9 (patch) | |
tree | b6c5e629d1d702957cd0c7c779506af0bff86f90 /etc | |
parent | aac0e00c65f96eefa923476aeca278bc3fb2fa5b (diff) | |
download | pfsense-4a157de53fc9cba546c7149d60b1fc85734704c9.zip pfsense-4a157de53fc9cba546c7149d60b1fc85734704c9.tar.gz |
Expand "Announce Dynamic local route" to textarea
Ticket #1071
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 7a2f431..4dada53 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -64,7 +64,7 @@ function find_number_of_needed_carp_interfaces() { $carp_counter=0; foreach($config['virtualip']['vip'] as $vip) { if($vip['mode'] == "carp") - $carp_counter++; + $carp_counter++; } return $carp_counter; } @@ -84,8 +84,10 @@ function reset_carp() { for($x=0; $x<$carp_counter; $x++) { mwexec("/sbin/ifconfig carp{$x} down"); mwexec("/sbin/ifconfig carp{$x} delete"); + log_error("CARP: $needed_carp_interfaces < $carp_counter"); if($needed_carp_interfaces < $carp_counter) { $needed_carp_interfaces--; + log_error("Destroying carp interface."); mwexec("/sbin/ifconfig carp{$x} destroy"); } } |