Re: [lwip-users] MUT setting with multiple netif

2013-07-19 Thread Peter LM
Hi, I have changed my subnet settings. ARP is still working but ICMP doesn't work anymore! I guess ARP is working thanks to my ethernetif_input implementation (Testing every netif). But I tought it was not necessary to check netif ip before to pass it to tcpip_input since it was done inside, was

Re: [lwip-users] MUT setting with multiple netif

2013-07-18 Thread Peter LM
Hi, Thanks for your quick response ! I agree this is not supposed to happen but it was nice since I had not to change my network chip settings each time I wanted to test one or another functionnality. Finaly I will set each netif on a different subnet. Regards, Peter -- View this message in c

[lwip-users] MUT setting with multiple netif

2013-07-18 Thread Peter LM
Hi everybody, I am currently using multiple netif (2 or 3) for my HTTP server. But I am facing a problem, I cannot correctly set the MTU of the first netif I created. Let me explain: Netif 1: (first netif created, default netif) _mtu = 256 _ip= 192.168.10.2 Netif 2: (first

Re: [lwip-users] lwipopts.h, how to enlarge send and receive packet size

2013-07-12 Thread Peter LM
Hi, LP/李 wrote > Is my comprehension above correct? No, I suggest you to read http://lwip.wikia.com/wiki/Lwipopts.h To resume it depend on which type of pbuf you alloc. For instance, in my case I am using pool-pbuf type, therefore two define are very i

Re: [lwip-users] Compiler warning

2013-07-12 Thread Peter LM
It's strange because I am using exactly the same release than you with the same paths (and I guess you use GCC as compiler ? ) but I don't get any warning. The only difference is our hierarchy but It should work since you precised entire dir in paths... I quickly checked and it is not a referenced

Re: [lwip-users] Compiler warning

2013-07-11 Thread Peter LM
boisbu wrote > Could you please highlight me where to add this include path? Is it > directly in the lwip/src/api/tcpip.c file? Please remove your folder "src". The right hierarchy (if I am right) is lwIP/api/tcpip.c . Do you see the difference? 1) Copy your entire "src" folder then copy it next

Re: [lwip-users] Compiler warning

2013-07-11 Thread Peter LM
Hi, Have you modified your compiler source paths? If it is just a warning it doesn't matter... The linker will do the job. But if you want to remove it then add right path to your compiler option or just include (#include ProjName/lwIP/include/ipv4/lwIP/ip.h) If you cannot compile it is probably

Re: [lwip-users] TCP sending without headers

2013-07-10 Thread Peter LM
Krzysztof Wesołowski wrote > On Wed, Jul 10, 2013 at 1:58 PM, Peter LM < > listmlm78@ > > wrote: > >> I read something about NOCOPY during netconn-write(), and in the contrib >> example the flag NOCOPY was used therefore I did the same. But It is >> correc

Re: [lwip-users] TCP sending without headers

2013-07-10 Thread Peter LM
I read something about NOCOPY during netconn-write(), and in the contrib example the flag NOCOPY was used therefore I did the same. But It is correctl running with the flag NETCON_COPY instead of NETCONN_NOCOPY !! Obviously I would prefer to use NOCOPY since I only send "read-only data" with the vi

Re: [lwip-users] TCP sending without headers

2013-07-10 Thread Peter LM
I am using netconn API (sorry I did not mentioned it), could I do the same? Is that a normal behaviour? Thank you. Peter -- View this message in context: http://lwip.100.n7.nabble.com/TCP-sending-without-headers-tp21719p21724.html Sent from the lwip-users mailing list archive at Nabble.com.

[lwip-users] TCP sending without headers

2013-07-10 Thread Peter LM
Hi everybody, I have developed an HTTP server based on example supplied in "contrib stable" folder of latest lwIP release. My problem is my server reply after an HTTP request is just composed of data ! No headers from any layer whereas every others exchange are perfectly formed! /This is a scree

Re: [lwip-users] UDP reception problem

2013-07-09 Thread Peter LM
Actually it was not a chained pbuf problem since it is perfectly working for UDP. I guess my TCP server code is wrong... I'm gonna improve that. Thank you for your advices !! Peter -- View this message in context: http://lwip.100.n7.nabble.com/UDP-reception-problem-tp21624p21708.html Sent fro

Re: [lwip-users] UDP reception problem

2013-07-04 Thread Peter LM
Hi, I am facing a new problem concerning TCP. TCP were perfectly running until I changed MTU on my netif and the size of Pbuf. The problem is when chained pbuf are used. From my debug trace I saw pbufs correctly allocated and chained. But checksum failed and when my app tried to print data I got H

Re: [lwip-users] UDP reception problem

2013-07-04 Thread Peter LM
I just delete the netbuf after consumming it ! -> netbuf_delete(buf); // De-allocate packet buffer Hope it will help. Peter -- View this message in context: http://lwip.100.n7.nabble.com/UDP-reception-problem-tp21624p21692.html Sent from the lwip-users mailing list archive at Nabble.com. __

Re: [lwip-users] UDP reception problem

2013-07-03 Thread Peter LM
How stupid I am, I forgot to delete the netbuf after the UDP packet reception Thank you again, Peter -- View this message in context: http://lwip.100.n7.nabble.com/UDP-reception-problem-tp21624p21687.html Sent from the lwip-users mailing list archive at Nabble.com. _

Re: [lwip-users] UDP reception problem

2013-07-02 Thread Peter LM
Hi, I have found my mistake. I was testing both UDP sending and receiving at the same time while not using a perfect matching socket (IP_ADDR_BROADCAST used as remote ip address instead of real one). Therefore it's working but after some exchanges my netconn doesn't fetch anything from the mailb

Re: [lwip-users] UDP reception problem

2013-07-01 Thread Peter LM
Thank you for your response. For Raw UDP you were right ! It was a source port switching problem from my testing socket! Concerning Netconn UDP which I would like to use since my system is multi-thread, is there someone able to help me? Peter -- View this message in context: http://lwip.100.

[lwip-users] UDP reception problem

2013-06-28 Thread Peter LM
Hi Everybody I am facing a problem concerning UDP reception. After have written my driver, I am currently testing it and things worked well until UDP test. Let me explain: _ARP is correctly running _ICMP is correctly running _IP is correctly running _UDP *broadcast sending* is correctly running t