Lwip needs some "timers" for ARP (etharp_tmr), DHCP (dhcp_fine_tmr & 
dhcp_coarse_tmr), SNMP (snmp_timer), etc...

My question is mainly about arp timer, because the table handled in etharp.c is 
in read/write access. In several ports, I see that arp_timer is initialized by 
the main() task during the netif_add(...) call (with the "init" function). But 
when we use the tcpip_init, which create its own task, isn't it possible that 
the arp list was "corrupt" due to a multithreaded access?

And if it's right, isn't it a better place to initialize these timers directly 
in tcpip_thread(...), like the ip_timer for IP_REASSEMBLY, to be sure that only 
one task will use lwip core in the same time?
 
  
====================================
Frédéric BERNON 
HYMATOM SA 
Chef de projet informatique 
Microsoft Certified Professional 
Tél. : +33 (0)4-67-87-61-10 
Fax. : +33 (0)4-67-70-85-44 
Email : [EMAIL PROTECTED] 
Web Site : http://www.hymatom.fr 
====================================
BEGIN:VCARD
VERSION:2.1
N:BERNON;Frédéric;;M.
FN:Frédéric BERNON
ORG:HYMATOM SA;Recherche et Développement
TITLE:Chef de projet informatique
TEL;WORK;VOICE:04-67-87-61-10
TEL;WORK;FAX:04-67-70-85-44
ADR;WORK;ENCODING=QUOTED-PRINTABLE:;23;Zone Industrielle=0D=0A175 rue de Massacan;VENDARGUES;;34740;FRANCE;
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:23=0D=0AZone Industrielle=0D=0A175 rue de Massacan=0D=0AVENDARGUES 34740=0D=
=0AFrance
URL;WORK:http://www.hymatom.fr
ROLE:Chef de projet informatique
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20020404T083210Z
END:VCARD
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to