Re: [lwip-users] Program hangs in ip_frag()

2017-03-08 Thread goldsi...@gmx.de
pekez wrote: Well, yeah I didn't mean I fixed the fragmentation problem, I just avoided it. :) Maybe I will try to set MTU to 1500 just to see what is happening. I meant to say 1500 *is* the MTU. MTU means what can be transferred on the medium *without* the medium's headers (ethernet head

Re: [lwip-users] Program hangs in ip_frag()

2017-03-08 Thread pekez
Well, yeah I didn't mean I fixed the fragmentation problem, I just avoided it. :) Maybe I will try to set MTU to 1500 just to see what is happening. Thanks! On 8.3.2017 17:36, goldsimom wrote: For your MTU, 1446 is correct. I'd rather fix the MTU to be 1500 though. And you don't fix the frag

Re: [lwip-users] Program hangs in ip_frag()

2017-03-08 Thread goldsimom
For your MTU, 1446 is correct. I'd rather fix the MTU to be 1500 though. And you don't fix the fragmentation problem. I think this is fixed in 2.0.0 though. Simonl) Am 8. März 2017 12:09:24 MEZ schrieb pekez : >Well, just maybe I have succeeded to find the solution to this >problem... However,

Re: [lwip-users] Program hangs in ip_frag()

2017-03-08 Thread pekez
Well, just maybe I have succeeded to find the solution to this problem... However, since I don't know exactly how TCP works under the hood, maybe I could cause some other problems, but for now it's working. Nevertheless, I decided to reduce TCP MSS from 1460 to 1446, and ip_frag() is not called

Re: [lwip-users] Program hangs in ip_frag()

2017-03-06 Thread pekez
I forgot to mention that I use Xilinx lwIP example applications (XAPP 1026 ). Basically the only thing I have changed is in their TCP server app, instead of only receiving data, I made server only to send data (litera

Re: [lwip-users] Program hangs in ip_frag()

2017-03-06 Thread pekez
1) netif->mtu = XEMACPS_MTU - XEMACPS_HDR_SIZE; #define XEMACPS_MTU 1500U/* max MTU size of Ethernet frame */ #define XEMACPS_HDR_SIZE14U/* size of Ethernet header */ 2) how can I check exact length of pbufs? 3) Yep, IP_FRAG_USES_STATIC_BUF and LWIP_NETIF_TX_SINGLE

Re: [lwip-users] Program hangs in ip_frag()

2017-03-06 Thread Simon Goldschmidt
pekez wrote: > Anyone? Not a single person can tell me something about this problem? Does not seem so. Could you give us more info: - what is netif->mtu set to - exact length of pbufs in a chaing > 1480 - setting of IP_FRAG_USES_STATIC_BUF and LWIP_NETIF_TX_SINGLE_PBUF (I assume both are 0 - def

Re: [lwip-users] Program hangs in ip_frag()

2017-03-06 Thread pekez
Anyone? Not a single person can tell me something about this problem? On 3.3.2017 13:32, pekez wrote: After further examination, I noticed that ip_frag() works fine when variable left is set to 1480 initially. However, when it's bigger than that value, it get stuck in while (left_to_copy) loop

Re: [lwip-users] Program hangs in ip_frag()

2017-03-03 Thread pekez
After further examination, I noticed that ip_frag() works fine when variable left is set to 1480 initially. However, when it's bigger than that value, it get stuck in while (left_to_copy) loop. When left is initially 1480: 1st iteration through while(left_to_copy): left_to_copy is 1464, p->len

Re: [lwip-users] Program hangs in ip_frag()

2017-03-03 Thread pekez
I am not able to step through files that are part of BSP. Not much help of a debugger. I am using Xilinx SDK. So far I have been printing, and I found out that program get stuck inside of while (left_to_copy) loop in ip_frag(). left_to_copy is 1448 all the time... p->len is 0. I am confused wh

Re: [lwip-users] Program hangs in ip_frag()

2017-03-02 Thread goldsi...@gmx.de
pekez wrote: I have not real clue what is going on. Me neither. You seem to have a debugger, why don't you try to find out? ;-) (I.e. see where/why it hangs to try to give us more information or even be able to fix it yourself) Cheers, Simon ___

[lwip-users] Program hangs in ip_frag()

2017-03-02 Thread pekez
Hi people, I have basic TCP client running on PC, and TCP server running on ZYNQ board (1 - 1 communication). I am using lwIP 1.4.1 with FreeRtos 8.2.3. Server is only sending some predefined data, while client is only receiving data, until it receives defined amount of data. Sometimes my se