>> Source port must be 68 and Destination port must be 67. right? 

Right. Did you analyze the uip_buffer (the udp frame) before transmitting via 
your driver function?
How is your byte order defined? Maybe you use the wrong HTONS macro.

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von ttory
Gesendet: Mittwoch, 14. Februar 2007 08:15
An: uip-users@sics.se
Betreff: [uip-users] dhcp bug ? 


HI all.
 
Now I'm tring to set dynamic IP address of target board by using DHCP 
application.
 
1. In main(). 
I call the dhcp_init();
2. In dhcp_handler()
It calls the send_discovery();
3. I receive UDP packet from target board on my pc, of course I can see packet 
data by using wireshark.
 
4. Ehternet packet is ok!. IP packet is also ok. But UDP packet is not .
Source port and Destination port are zero. 
Source port must be 68 and Destination port must be 67. right? 
But this is set in dhcp_init();
 
5. So I forced to set Src port and Dest port and send packet. 
But also it has zero src port and dest port. 
 
Is this bug? 
My Environment
uIP : 1.0
MCU : ATMEGA128
NIC : RTL8019AS
 
 

Reply via email to