Re: [lwip-users] Little endian

2014-06-26 Thread Fabian Cenedese
At 11:14 26.06.2014, you wrote: Is the trace wrong or did I give a wrong address? I got this sorted out, I was using a different variable for the netif_add. Shouldn't that be ip_addr_set_hton(iphdr-src, src); And I read in the documentation that ipaddr is always network order so copying

[lwip-users] Little endian

2014-06-26 Thread Fabian Cenedese
Hi I'm using lwip 1.4.1 on big endian targets and it works. Now I want to use the same software on little endian targets (ARM) and have problems. Should that work from the lwip part? The Ethernet frame of course is always big endian why it works without problems on big endian targets. However I'm

Re: [lwip-users] change PHY and strange behaviour

2014-06-26 Thread pcu
Thank you all for your responses. Finally I found the solution: long time ago I had problem with ETH_IRQHandler and I disabled High priority task woken void ETH_IRQHandler(void) { portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE; /* Frame received */ if (

Re: [lwip-users] Little endian

2014-06-26 Thread Sergio R. Caprile
Hi Fabian, for clarity's sake: lwIP uses internally its own representation, and there are macros to convert from network format to host format. I guess all systems are more or less like that. You are supposed to have a fast macro, preferably with machine code instructions, because it is going to

[lwip-users] Retransmission of a already acknowlegded package.

2014-06-26 Thread Christian
Hi, I'm using lwip141 in NO_SYS mode. In random intervals a retransmission happens for a already acknowlegded package. After that a dupack package gets send. I've attached a Wireshark capture where you can see this at package 1516. What can be the reason for this behaviour? Thank you BR

[lwip-users] LWIP malloc/free issue

2014-06-26 Thread Vincent Cui
All: I define MEM_LIBC_MALLOC and MEMP_MEM_MALLOC to 0. But my application still can use MALLOC and FREE function. As LWIP help show, if the define them to 0, system use lwip internal allocator, the internal allocator function name is malloc and free too ? I can’t find it in lwip code. Anyone

Re: [lwip-users] LWIP malloc/free issue

2014-06-26 Thread Vincent Cui
All: I find that it call the malloc/free function in KEIL microlib file. But I found that it get NULL from malloc call running application run malloc/free frequently. Who know how to fix ? Vincent From: lwip-users-bounces+vincent.cui=enlogic@nongnu.org