Re: [lwip-users] Telnet - Raw API

2017-03-06 Thread nrichard
Sergio R. Caprile wrote > All you need is in the other apps, and the RFCs (for the telnet > protocol...) > > Once you get a pbuf, you basically get the data by reading each pbuf in > the chain, though there is a function to do that. > > The easy way: > pbuf_copy_partial(p, buffer,

Re: [lwip-users] Telnet - Raw API

2017-03-06 Thread Sergio R. Caprile
All you need is in the other apps, and the RFCs (for the telnet protocol...) Once you get a pbuf, you basically get the data by reading each pbuf in the chain, though there is a function to do that. The easy way: pbuf_copy_partial(p, buffer, p->tot_len, 0); The hard, instructional

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

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

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 -

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)