[En-Nut-Discussion] DHCP client and losing UDP packets

Michel unreal at home.nl
Thu Apr 15 22:16:21 CEST 2004


Hi Harald,

As it turns out, the problem was not in DHCP at all, but in changing
the MAC address of the ethernet chip...
As it turns out, when I change the MAC address on my development board,
I not only have to completely unplug the power to the board and JTAG ICE,
but
also unplug the network cable itself.
If I don't unplug the network cable the ethernet chip somehow internally(?)
still
uses the old MAC address. The network sniffer shows that it is using the new

address on outgoing packets, but somehow incoming packets are not received 
by NutOS.

Is this a known problem?

Thanks for your help,
Michel

> -----Original Message-----
> From: en-nut-discussion-bounces at egnite.de 
> [mailto:en-nut-discussion-bounces at egnite.de] On Behalf Of Harald Kipp
> Sent: donderdag 15 april 2004 21:23
> To: Ethernut User Chat (English)
> Subject: Re: [En-Nut-Discussion] DHCP client and losing UDP packets
> 
> 
> Hi Michel,
> 
> 
> >So I started adjusting the pro/dhcp.c file. But now I cannot 
> get it to 
> >receive UDP packets anymore. It does send out DHCP Discover messages 
> >and my BIND9 server sends DHCP-Offer messages, but somehow 
> ethernut is 
> >not receiving them.
> 
> That could have several causes, not easy to determine
> by a single module. Did you check your application
> code for infinite loops without NutSleep, NutEventWait
> or similar?
> 
> 
> >Could someone have a look at my code, or possibly, try it 
> with and give 
> >me hint on what I did wrong?
> 
> You add a default route? Why? As far as I know, DHCP depends
> on broadcasting, at least for discovery. But broadcasts are
> not routed.
> 
> I checked the diff to the current CVS HEAD, but couldn't
> find something else, what might cause the problem.
> 
> Harald
> 
> _______________________________________________
> 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