[lwip-users] Re: Using lwip for writing a minimal HTTP proxy

2009-09-25 Thread Mandeep Sandhu
On Thu, Sep 24, 2009 at 10:35 PM, Mandeep Sandhu mandeepsandhu@gmail.com wrote: Hi All, I'm implementing a very minimal HTTP proxy server, using lwIP (1.3.1) in sequential mode. I've based my code on the sample http webserver that is provided along with lwIP (httpd_sequential.c). I'm

[lwip-users] RTOS y lwip size of command TCP

2009-09-25 Thread Oscar F
Hello everybody, i´m using TCP socket, and i need to receive one command of 12000 bytes. if i defined a variable of this size char buffer [12000]; is there a problem with the stack of freeRTOS, what size of stack do you recommned use?. Thanks Oscar

Re: [lwip-users] Suppress ARP

2009-09-25 Thread Kieran Mansley
On Thu, 2009-09-24 at 12:53 +0200, Mathias Zenger wrote: I have a special problem with ARP. My application uses UDP protocol and decides at start-up how to configure the stack/network interface. There is one mode where it uses DHCP/ARP and then requests packets from a server. Running an

Re: [lwip-users] Re: Using lwip for writing a minimal HTTP proxy

2009-09-25 Thread Kieran Mansley
On Fri, 2009-09-25 at 12:04 +0530, Mandeep Sandhu wrote: Oops! I think i'm in a soup on this one! My default interface set to the interface from which the client request is originating. Could this be the reason that the TCP packets, of the new connection (the proxy one), are being routed out

Re: [lwip-users]lwip and DHCP

2009-09-25 Thread Kieran Mansley
On Wed, 2009-09-23 at 14:52 +0200, Bob Brusa wrote: Hi Further to my problem report problem with recent port of lwip I have found the that most probably there is something wrong with the checksum calculation of the incoming DHCPoffer. From the debug-output I see that lwip combines

Re: [lwip-users] Re: Using lwip for writing a minimal HTTP proxy

2009-09-25 Thread Mandeep Sandhu
On Fri, Sep 25, 2009 at 1:44 PM, Kieran Mansley kie...@recoil.org wrote: On Fri, 2009-09-25 at 12:04 +0530, Mandeep Sandhu wrote: Oops! I think i'm in a soup on this one! My default interface set to the interface from which the client request is originating. Could this be the reason that the

Re: [lwip-users] Re: Using lwip for writing a minimal HTTP proxy

2009-09-25 Thread Kieran Mansley
On Fri, 2009-09-25 at 15:15 +0530, Mandeep Sandhu wrote: On Fri, Sep 25, 2009 at 1:44 PM, Kieran Mansley kie...@recoil.org wrote: Can you show us how you create the two netifs? The ECOS ethernet driver sets up the interface as follows: netif_add() if (configured as default)

Re: [lwip-users] Re: Using lwip for writing a minimal HTTP proxy

2009-09-25 Thread Mandeep Sandhu
On Fri, Sep 25, 2009 at 3:46 PM, Kieran Mansley kie...@recoil.org wrote: On Fri, 2009-09-25 at 15:15 +0530, Mandeep Sandhu wrote: On Fri, Sep 25, 2009 at 1:44 PM, Kieran Mansley kie...@recoil.org wrote: Can you show us how you create the two netifs? The ECOS ethernet driver sets up the

RE: [lwip-users] RTOS y lwip size of command TCP

2009-09-25 Thread Marc Sandusky
I *think* we recommend that you do not declare a buffer that large on the stack. Try a static buffer, or one from the heap. Marc Date: Fri, 25 Sep 2009 09:52:57 +0200 From: gary1...@gmail.com To: lwip-users@nongnu.org Subject: [lwip-users] RTOS y lwip size of command TCP Hello

[lwip-users] help, stuck in endless loop inside mem_malloc()

2009-09-25 Thread Francois Bouchard
Hi all, Sometimes, in *debug mode* my program get stuck in mem_malloc(), and can't get out. ptr scan the ram for a block, but is I can see with my debugger ptr does'nt scan thru (MEM_SIZE_ALIGNED - size), instead it get reseted before reaching that value. ptr then scan the ram, get reseted,