[En-Nut-Discussion] No DNS addresses with DHCP, super Michel's DHCP
Jean Pierre Gauthier
jp.gauthier at wanadoo.fr
Fri Dec 31 09:22:38 CET 2004
Hi Michel,
I tested this morning your dhcp.c .
Congratulations! IT WORKS! I discovered the "4 steps" DHCP protocol by eth
sniffing. (discover->offer->request->ack).
NutDnsConfig2 call "Hits" : 10 / 10 DHCP tests. Reliable.
NutDhcpIfConfig call returns OK after 2 seconds instead after timeout value
with the native DHCP.
Remark:
I'm not sure but both dhcp.c seem to not support when dhcp task memory
context is over 0x8000. (my ethernut1.3 has 64K context ram instead 32K).
Perhaps negative pointer test ? "if (ptr<0)..." [bad] instead "if (ptr ==
-1)" or (!ptr) [good]?
Original dhcp freeze the system and your dhcp returns NOK.... Better but not
clear ;-)
More tests today.
Jean Pierre
-----Message d'origine-----
De : en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] De la part de Michel
Envoyé : jeudi 30 décembre 2004 13:33
À : 'Ethernut User Chat (English)'
Objet : RE: RE: [En-Nut-Discussion] No DNS addresses with DHCP
Hi Jean Pierre,
>DHCP is in sleep state. (70E1 dhcpc 64 SLP 0000 0944 70CD 492 OK )
I actually meant the state inside DHCP (REBOOTING, etc) Otherwise, try my
dhcp.c I sent to this list on 'za 18-12-2004 8:45'
Michel
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
More information about the En-Nut-Discussion
mailing list