In my project, I have to enable something like in these three scenarios: 1/ dhcp only (netif never up if no dhcp is available) 2/ autoip only 3/ dhcp with fallback on autoip if no dhcp response before a defined timeout.
But in my case, because it's just to avoid to never up, 2/ & 3/ implementations are very "simples" : the thread which exec the dhcp_start() just poll the netif's ip address until it changes, or until a timeout, and in this last case, just do a dhcp_stop() and direct set to the netif a static AUTOIP address (I don't even check if the autoip is already used, even if it's not a big job...). Of course, all that is done in my port level (where I add my interfaces, etc...) Do you intend to share your autoip feature, or is it just for you? If you want to share it, I suggest you to add autoip.h/.c files, and not just patch dhcp, because like this, people which only want a autoip device without dhcp (or the inverse) could got a smaller footprint... To check if the Autoip is already used, look how DHCP_DOES_ARP_CHECK is implemented (each ARP reply on a interface is handle by dhcp_arp_reply(), which "decline" the IP is the interface is always in DHCP_CHECKING state). If you want some help, tell me, I would like to improve my current "implementation"... ==================================== 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 Spies, Dominik Envoyé : vendredi 18 mai 2007 11:28 À : Mailing list for lwIP users Objet : [lwip-users] APIPA / AutoIP / Zeroconf / RFC 3927 Module Hi! Additional to DHCP I need a APIPA configuration if no DHCP is there for my application. So did one ever try to or succesfull implement such feature in lwIP ? My idea is to integrate this in the dhcp module, because interaction is very close.. What do you think? Regards, Dominik _______________________________________________ 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
