summaryrefslogtreecommitdiff
path: root/iprule.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-05-27 19:57:58 +0200
committerJo-Philipp Wich <jow@openwrt.org>2013-05-27 19:57:58 +0200
commit0b66ee22a3a339188ab2b8661c6af62883be93c2 (patch)
tree4cc4cf8aef8c95109f7b4eda56f2c1efef918e5d /iprule.c
parent97e748de49c02f36a1e75bd9f9552311fb4051b4 (diff)
downloadnetifd-0b66ee22a3a339188ab2b8661c6af62883be93c2.tar.gz
Move iprule flushing to the init function to make the timing predictable
Diffstat (limited to 'iprule.c')
-rw-r--r--iprule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/iprule.c b/iprule.c
index 27acef4..0ff02de 100644
--- a/iprule.c
+++ b/iprule.c
@@ -247,5 +247,6 @@ iprule_update_rule(struct vlist_tree *tree,
static void __init
iprule_init_list(void)
{
+ system_flush_iprules();
vlist_init(&iprules, rule_cmp, iprule_update_rule);
}