Use event system to re-send query on new route. Tidies module boundaries.

This commit is contained in:
Simon Kelley
2014-07-08 22:22:02 +01:00
parent cdb755c5f1
commit 47a9516980
6 changed files with 37 additions and 30 deletions

View File

@@ -401,7 +401,7 @@ void route_sock(void)
else if (msg->ifm_type == RTM_NEWADDR)
{
del_family = 0;
send_newaddr();
queue_event(EVENT_NEWADDR);
}
else if (msg->ifm_type == RTM_DELADDR)
{
@@ -439,7 +439,7 @@ void route_sock(void)
of += sizeof(long) - (diff & (sizeof(long) - 1));
}
send_newaddr();
queue_event(EVENT_NEWADDR);
}
}