Re: [lwip-users] LCP Termination Request steps

2012-06-04 Thread N.Karakotas
Nice! I left my system overnight and is still running... -- From: "Sylvain Rochet" Sent: Monday, June 04, 2012 11:50 PM To: "Mailing list for lwIP users" Subject: Re: [lwip-users] LCP Termination Request steps ___

Re: [lwip-users] LCP Termination Request steps

2012-06-04 Thread Sylvain Rochet
Hi Nick, On Mon, Jun 04, 2012 at 10:40:39AM +0200, Sylvain Rochet wrote: > On Mon, Jun 04, 2012 at 10:52:44AM +0300, N.Karakotas wrote: > > Hello Sylvain, > > > > Im trying to get it to run, almost there. A few things need added > > and addressed. > > In lcp.c line 425 I added: > > phase = PHASE_

Re: [lwip-users] LCP Termination Request steps

2012-06-04 Thread Sylvain Rochet
Hi Nick, On Mon, Jun 04, 2012 at 02:21:38PM +0300, N.Karakotas wrote: > Nice, > > Can we strip away some of the debug stuff, as I see it has a 1024 buffer. Yeah, I already noticed the "char buf[1024];" in the logit() function, which is a huge stack requirement. PPPd for sure require an heavy

Re: [lwip-users] LCP Termination Request steps

2012-06-04 Thread N.Karakotas
Ok, I only send up to 512 bytes max. I ported the fixes and is all good now! :) -- From: "Sylvain Rochet" Sent: Monday, June 04, 2012 8:15 PM To: "Mailing list for lwIP users" Subject: Re: [lwip-users] LCP Termination Request steps __

Re: [lwip-users] LCP Termination Request steps

2012-06-04 Thread Sylvain Rochet
Hi Nick, On Mon, Jun 04, 2012 at 06:08:23PM +0300, N.Karakotas wrote: > > I have noticed that once I add the interface pp I cant connect to > the Ethernet httpd but can ping. I cant seem to spot the change from > the previous code. I did a test where I removed the pp and the > Ethernet came back

Re: [lwip-users] LCP Termination Request steps

2012-06-04 Thread Sylvain Rochet
Hi Nick, On Mon, Jun 04, 2012 at 07:43:13PM +0300, N.Karakotas wrote: > After all it was in the file ipcp.c . You have a comment: do we > really need this and returns 0. > mask = get_mask(go->ouraddr); > > It default the netmask to zero so all the data was routed to pp0 > instead of em0. Yep, I

Re: [lwip-users] LCP Termination Request steps

2012-06-04 Thread N.Karakotas
After all it was in the file ipcp.c . You have a comment: do we really need this and returns 0. mask = get_mask(go->ouraddr); It default the netmask to zero so all the data was routed to pp0 instead of em0. Also I added a thread remove to ppp_input_thread: static void ppp_input_thread(void *a

Re: [lwip-users] LCP Termination Request steps

2012-06-04 Thread N.Karakotas
Hello Sylvain, I have noticed that once I add the interface pp I cant connect to the Ethernet httpd but can ping. I cant seem to spot the change from the previous code. I did a test where I removed the pp and the Ethernet came back fine. Unless the pp thread now is consuming more task time and

Re: [lwip-users] lwIP API mysql or stack

2012-06-04 Thread corso
Thanks Nick :) N.Karakotas wrote: > > Attached you will find the MySQL client modified from mbed to lwip with a > few fixes and also in C. > > Regards, > Nick > > > From: Mrutyunjay > Sent: Saturday, June 02, 2012 8:20 AM > To: Mailing list for lwIP users > Subject: Re: [lwip-users] lwIP A

Re: [lwip-users] lwIP API mysql or stack

2012-06-04 Thread Mason
Sylvain Rochet wrote: > Yep, GPL is viral and changes whole project license. Can we do without the Microsoft propaganda? -- Regards. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] lwIP API mysql or stack

2012-06-04 Thread Sylvain Rochet
Hi Bill, On Mon, Jun 04, 2012 at 09:17:41AM -0400, Bill Auerbach wrote: > > Sha1 is specified as GPL2. Is that OK to mix with lwIP? No, it is not. > Does it change lwIP's license or effect the application that includes > lwIP? Yep, GPL is viral and changes whole project license. However,

Re: [lwip-users] lwIP API mysql or stack

2012-06-04 Thread Bill Auerbach
> Attached you will find the MySQL client modified from mbed to lwip with a few fixes and also in C. Sha1 is specified as GPL2. Is that OK to mix with lwIP? Does it change lwIP's license or effect the application that includes lwIP? I read the Wiki on all of the GPL permutations and which

Re: [lwip-users] lwip raw TCP client.

2012-06-04 Thread Pomeroy, Marty
Mats The behavior of sockets, even after being closed, they stick around for a little while in TIME_WAIT state. This allows acks to complete, etc. You cannot re-open that socket until that expires. For more details, Google TIME_WAIT. If you wait a couple of minutes, can you then reconnect? If

Re: [lwip-users] LCP Termination Request steps

2012-06-04 Thread N.Karakotas
Nice, Can we strip away some of the debug stuff, as I see it has a 1024 buffer. Also from an older post: /* @todo: do we really need such a large buffer? The typical 1500 bytes seem too much. */ static u_char nak_buffer[PPP_NACK]; /* where we construct a nak packet */ #define PPP_NACK

Re: [lwip-users] LCP Termination Request steps

2012-06-04 Thread Sylvain Rochet
Hi Nick, On Mon, Jun 04, 2012 at 12:17:17PM +0300, N.Karakotas wrote: > Hey Sylvain, > > Got it to connect to my ISP through PPPoS! It got an IP back..WOW > its fast!!! Same here. I had access to my AVR32 target today, PPPoE worked out of the box with the new PPP stack. \o/ Sylvain signature

Re: [lwip-users] LCP Termination Request steps

2012-06-04 Thread N.Karakotas
Hey Sylvain, Got it to connect to my ISP through PPPoS! It got an IP back..WOW its fast!!! :) Regards, Nick -- From: "Sylvain Rochet" Sent: Monday, June 04, 2012 11:40 AM To: "Mailing list for lwIP users" Subject: Re: [lwip-users] LCP Terminat

Re: [lwip-users] LCP Termination Request steps

2012-06-04 Thread Sylvain Rochet
Hi Nick, On Mon, Jun 04, 2012 at 10:52:44AM +0300, N.Karakotas wrote: > Hello Sylvain, > > Im trying to get it to run, almost there. A few things need added > and addressed. > In lcp.c line 425 I added: > phase = PHASE_INITIALIZE; > > This was left out it cause the the input thread to exit the

Re: [lwip-users] LCP Termination Request steps

2012-06-04 Thread N.Karakotas
Hello Sylvain, Im trying to get it to run, almost there. A few things need added and addressed. In lcp.c line 425 I added: phase = PHASE_INITIALIZE; This was left out it cause the the input thread to exit the thread loop and crash. I mentioned this in a previous post but no one was warm with

[lwip-users] lwip raw TCP client.

2012-06-04 Thread matbli
Hi, I'm trying t write a TCP client using lwip. I have started with functionality to open and closing a socket using raw API. Opening a socket using: rTcpConnect=tcp_connect(tcp_pcb, &ip, 2020, mainTcpConnectAccept); Works fine, as it seems. My test server says new client IP=xxx.xxx.xxx.xxx.