projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move iprule flushing to the init function to make the timing predictable
[project/netifd.git]
/
system-linux.c
diff --git
a/system-linux.c
b/system-linux.c
index
76740f7
..
f5c900d
100644
(file)
--- a/
system-linux.c
+++ b/
system-linux.c
@@
-65,8
+65,6
@@
static void handle_hotplug_event(struct uloop_fd *u, unsigned int events);
static char dev_buf[256];
static char dev_buf[256];
-static bool iprules_flushed = false;
-
static void
handler_nl_event(struct uloop_fd *u, unsigned int events)
{
static void
handler_nl_event(struct uloop_fd *u, unsigned int events)
{
@@
-1179,13
+1177,6
@@
static int system_iprule(struct iprule *rule, int cmd)
int system_add_iprule(struct iprule *rule)
{
int system_add_iprule(struct iprule *rule)
{
- /* trigger flush of existing rules when adding first rule the first time */
- if (!iprules_flushed)
- {
- system_flush_iprules();
- iprules_flushed = true;
- }
-
return system_iprule(rule, RTM_NEWRULE);
}
return system_iprule(rule, RTM_NEWRULE);
}