summaryrefslogtreecommitdiffstats
path: root/etc/inc/util.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-05-22 16:51:12 +0000
committerErmal Luçi <eri@pfsense.org>2009-05-22 16:51:12 +0000
commit6e8f7b537d780261e4054aee58a8d8f34f42b34b (patch)
tree8c3401ea8d4c28ad9c969364c2c8be491ae59ada /etc/inc/util.inc
parent3cfb799dffd7a0443ba6307256f953e408baabfc (diff)
downloadpfsense-6e8f7b537d780261e4054aee58a8d8f34f42b34b.zip
pfsense-6e8f7b537d780261e4054aee58a8d8f34f42b34b.tar.gz
Move Sync of config from filter.inc filter_reload to write_config and all the code in a new file rc.filter_synchronize. The later is called by check_reload_status with the tmp/filter_sync action triggered with carp_sync_client() function. This solves the excessive syncing of configs on not needed cases and speedups the filter_configure_sync!
Diffstat (limited to 'etc/inc/util.inc')
-rw-r--r--etc/inc/util.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index c419369..11772d9 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -966,4 +966,11 @@ function is_interface_mismatch() {
return $do_assign;
}
+/* sync carp entries to other firewalls */
+function carp_sync_client() {
+ global $g;
+ update_filter_reload_status("Syncing CARP data");
+ touch($g['tmp_path'] . "/filter_sync");
+}
+
?>
OpenPOWER on IntegriCloud