Hi, Yes, this is what I wanted to propose (but my english is not very clear) : "More, the task receiving packets call etharp_ip_input if ETHARP_TRUST_IP_MAC is defined (and it's always call etharp_arp_input for ARP packets - I think that most of the code in "ethernetif_input" would have to be moved in the "netif->input")."
==================================== 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 ==================================== P Avant d'imprimer, penser à l'environnement -----Message d'origine----- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Goldschmidt Simon Envoyé : jeudi 1 mars 2007 08:00 À : Mailing list for lwIP users Objet : RE: RE : RE : [lwip-users] Timers & lwip tasks (amultithreadquestionwithLwIP) Hi, > So, in a multithread environment with upper layers, I think > it's a good to define ETHARP_TRUST_IP_MAC to 0, and to > initialize the arp_timer in the tcpip_thread context (which > can handle "timeouts") to reduce this kind of problem, like this : That alone won't help, since etharp_arp_input() is called from network driver context if ARP packets are received! My solution to that problem was to pass all received packets including ARP to the tcpip-thread which does the processing of IP- AND ARP-packets. This way, all access to the ARP layer is done in tcpip-thread context. Simon _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
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
