I had some troubles with this as well. But I used an older version of lwIP.
Search the lwIP mailing list. This is a known problem, and it has been solved 
by several people.

-----Original Message-----
From: "Bernhard 'Gustl' Bauer" <[EMAIL PROTECTED]>
To: Mailing list for lwIP users <[email protected]>
Date: Fri, 29 Apr 2005 09:11:23 +0200
Subject: Re: [lwip-users] Port to TMS320C6713

Bernhard 'Gustl' Bauer wrote:
> 
> Leon Woestenberg wrote:
> 
>>
>> Please keep us posted on your progress!
>>
> 
> I will, but still waiting for the HW.

Hi,

finaly I got my HW :-)

Arp works fine. Then I tried ping and got no reply. I tracked the 
problem down to ip_input(). There the packet is matched against an 
interface and this fails.
-----------
       /* unicast to this interface address? */
       if (ip_addr_cmp(&(iphdr->dest), &(netif->ip_addr)) ||
                 /* or broadcast on this interface network address? */
           ip_addr_isbroadcast(&(iphdr->dest), netif)) {
-----------
iphdr->dest and netif->ip_addr are the same! But iphdr->dest is at
address 0x80302F0A and is not dividable by 4. The dsp truncs the address
to 0x80302F08 and so the compare fails.

Any idea what can be done about this?

Here is my lwipopts.h:
-----------
#define MEM_ALIGNMENT                   4
#define LWIP_DHCP                       1
#define LWIP_NOASSERT
#define NO_SYS                          1
-----------

TIA

Gustl


_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users





_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to