|
From: | Frédéric BERNON |
Subject: | [lwip-devel] [bug #19177] Faulty arp initialization in ethernetif_init skeleton |
Date: | Thu, 01 Mar 2007 08:52:30 +0000 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2 |
Follow-up Comment #1, bug #19177 (project lwip): I think that etharp_init() would have to be call before any net_add, because ARP Table is a global resource. Initialization sequence should be : #if LWIP_STATS stats_init (); #endif /* STATS */ #if (NO_SYS == 0) sys_init (); #endif /* (NO_SYS == 0) */ mem_init (); memp_init (); pbuf_init (); etharp_init (); netif_init (); lwip_socket_init(); //... netif_add( ...); //... About the arp_timer, I proposed yesterday in the forum's thread "Timers & lwip tasks (a multithreadquestionwithLwIP)" to initialize it in the tcpip_init_done (if you use tcpip_thread). _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?19177> _______________________________________________ Message posté via/par Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |