igmp.h, igmp.c, tcpip.c, init.c, netif.c: change igmp_init and add igmp_start. igmp_start is call inside netif_add. Now, igmp initialization is in the same spirit than the others modules. Modify some IGMP debug traces.

This commit is contained in:
fbernon
2007-08-29 21:12:32 +00:00
parent da7b5135de
commit cd208314e0
6 changed files with 71 additions and 31 deletions

View File

@@ -292,16 +292,14 @@ tcpip_thread(void *arg)
#if LWIP_AUTOIP
sys_timeout(AUTOIP_TMR_INTERVAL, autoip_timer, NULL);
#endif /* LWIP_AUTOIP */
#if LWIP_IGMP
sys_timeout(IGMP_TMR_INTERVAL, igmp_timer, NULL);
#endif /* LWIP_IGMP */
if (tcpip_init_done != NULL) {
tcpip_init_done(tcpip_init_done_arg);
}
#if LWIP_IGMP
igmp_init();
sys_timeout(IGMP_TMR_INTERVAL, igmp_timer, NULL);
#endif /* LWIP_IGMP */
LOCK_TCPIP_CORE();
while (1) { /* MAIN Loop */
sys_mbox_fetch(mbox, (void *)&msg);