Sure. I enabled UIP_BROADCAST
Is anythins else? 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Epping, Joerg
Sent: Wednesday, February 14, 2007 10:16 PM
To: uip-users@sics.se
Subject: AW: [uip-users] dhcp bug ? 

Did you enable "UIP_CONF_BROADCAST" ?

> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Auftrag
> von ttory
> Gesendet: Mittwoch, 14. Februar 2007 13:51
> An: uip-users@sics.se
> Betreff: RE: [uip-users] dhcp bug ? 
> 
> 
> 
> ================================================
> void
> dhcpc_init(const void *mac_addr, int mac_len)
> {
>   uip_ipaddr_t addr;
>   
>   s.mac_addr = mac_addr;
>   s.mac_len  = mac_len;
> 
>   s.state = STATE_INITIAL;
>   
>       uip_ipaddr(addr, 255,255,255,255);
>       
>   s.conn = uip_udp_new(addr, HTONS(DHCPC_SERVER_PORT));
>   if(s.conn != NULL) {
>     uip_udp_bind(s.conn, HTONS(DHCPC_CLIENT_PORT));
>               
>   }
>       
>   PT_INIT(&s.pt);
> 
> }
> =========================================
> I'm not sure of this make udp header correctly . 
> 
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Epping, Joerg
> Sent: Wednesday, February 14, 2007 8:59 PM
> To: uip-users@sics.se
> Subject: AW: [uip-users] dhcp bug ? 
> 
> >> 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