I suppose you use a old lwIP release. Can you tell us which one you use? Is your release provided by any company, or do you take it from the Savannah web site ? ==================================== 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 <http://www.hymatom.fr/>
Plan d'accès au siège social <http://maps.google.fr/maps?f=d&hl=fr&geocode=17190092756901062382,43.553785,3.951452&saddr=&daddr=HYMATOM+SA&sll=43.653342,3.958297&sspn=0.023505,0.040169&ie=UTF8&ll=43.653528,3.951623&spn=0.011753,0.020084&t=h&z=16> ==================================== P Avant d'imprimer, penser à l'environnement -----Message d'origine----- De : [email protected] [mailto:[email protected]] De la part de HM2 Envoyé : lundi 27 avril 2009 12:06 À : Mailing list for lwIP users Objet : [lwip-users] Examples/Documentation Incorrect Timeout Code I think there is a mistake in the examples and documentation. There are many places where timeouts are given as below: if ( (clock()-last_arp_time) >= (ARP_TMR_INTERVAL * CLOCK_MS) ) Assuming that clock() and last_arp_time are given as ticks, and assuming that ARP_TMR_INTERVAL is going to be given in mSec, and CLOCK_MS is the number of mSec/tick, then the above is incorrect. The units would be: (ticks-ticks = mSec * mSec/Tick) That's wrong. The correct formula should be: if ( (clock()-last_arp_time) >= (ARP_TMR_INTERVAL / CLOCK_MS) ) The units are: (ticks-ticks = mSec * ticks/mSec) or (ticks = ticks) Chris.
<<image001.jpg>>
<<image002.jpg>>
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
