From 97e748de49c02f36a1e75bd9f9552311fb4051b4 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 27 May 2013 19:45:20 +0200 Subject: Move initial iprule flushing to system_add_iprule() to not collide with generic multiwan support --- iprule.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'iprule.c') diff --git a/iprule.c b/iprule.c index c3fdcfc..27acef4 100644 --- a/iprule.c +++ b/iprule.c @@ -28,7 +28,6 @@ #include "system.h" struct vlist_tree iprules; -static bool iprules_flushed = false; static unsigned int iprules_counter[2]; enum { @@ -199,13 +198,6 @@ iprule_add(struct blob_attr *attr, bool v6) rule->flags |= IPRULE_GOTO; } - /* trigger flush of existing rules when adding first uci rule the first time */ - if (!iprules_flushed) - { - system_flush_iprules(); - iprules_flushed = true; - } - vlist_add(&iprules, &rule->node, &rule->flags); return; -- cgit v1.2.1