[lwip-users] Default AVR32 framework LwIP input path

2012-04-27 Thread Sylvain Rochet
Hi, Here is what the lwip-port/AT32UC3A/netif/ethernetif.c::ethernetif_input() function from the AVR32-SoftwareFramework-1.0.0-AT32AP7000 looks like: static void ethernetif_input(void * pvParameters) { -wait for macb and loop packet input, not important- { if( ERR_OK != ethernet_input(

Re: [lwip-users] Default AVR32 framework LwIP input path

2012-04-27 Thread Sylvain Rochet
Hi, On Fri, Apr 27, 2012 at 04:23:11PM +0200, Simon Goldschmidt wrote: Sylvain Rochet grada...@gradator.net wrote: lwip-port/AT32UC3A/netif/ethernetif.c::ethernetif_input() function from the AVR32-SoftwareFramework-1.0.0-AT32AP7000 looks like: static void ethernetif_input(void

Re: [lwip-users] Default AVR32 framework LwIP input path

2012-04-27 Thread Sylvain Rochet
Hi Cyrille, On Fri, Apr 27, 2012 at 06:13:32PM +0200, Boulanger, Cyrille wrote: Best is to check the online ASF bugzilla (asf.atmel.com/bugzilla). Btw I found this bug (http://asf.atmel.com/bugzilla/show_bug.cgi?id=959) This bugzilla seems to only really work for those actually working for

Re: [lwip-users] Default AVR32 framework LwIP input path

2012-04-27 Thread Sylvain Rochet
Hi Kieran, On Fri, Apr 27, 2012 at 07:57:37PM +0100, Kieran Mansley wrote: On 27 Apr 2012, at 16:03, Sylvain Rochet wrote: By the way, I wrote a AVR32UC3 LwIP port working with the current LwIP HEAD revision, what's the best way to contribute this one to the community ? If you're

Re: [lwip-users] SNTP Problem

2012-04-28 Thread Sylvain Rochet
Hi Nick, On Sat, Apr 28, 2012 at 04:17:31PM +0300, N.Karakotas wrote: Hi, Im trying to update the time with SNTP but the timestamp received is wrong. Then ctime printf rubbish. I also checked the received timestamp is seems wrong. This is strange. I cant understand why its not wornking.

[lwip-users] LCP Termination Request steps

2012-05-07 Thread Sylvain Rochet
Hi, In fsm_rtermreq(), if f-state equals LS_OPENED, which is the Connection terminated by peer condition, we send a Termination Ack, which seems logical. But, in this case, we call TIMEOUT(fsm_timeout, ...), but we don't send any request at this time, what are we waiting for exactly ? With

Re: [lwip-users] LCP Termination Request steps

2012-05-07 Thread Sylvain Rochet
Hi, On Mon, May 07, 2012 at 10:15:52PM +0200, goldsi...@gmx.de wrote: This is not really an answer to your post, rather a clarification about our PPP code in general: I know I have said this before and it sounds like a lame excuse, but the PPP code is not our own code - we just copied it

[lwip-users] Git URL for lwip-contribs

2012-05-11 Thread Sylvain Rochet
Hi, Probably a dumb question, but how can we fetch the lwIP contrib Git ? I saw one commit on it but failed to find the related Git URL. Sylvain signature.asc Description: Digital signature ___ lwip-users mailing list lwip-users@nongnu.org

Re: [lwip-users] Git URL for lwip-contribs

2012-05-11 Thread Sylvain Rochet
Hi, On Fri, May 11, 2012 at 11:08:47PM +0200, goldsi...@gmx.de wrote: [...], the link to the contrib rep vanished from the website when we moved from CVS to git. Also, we haven't found a volunteer to update the landing site on savannah to provide more useful information than right now,

Re: [lwip-users] LCP Termination Request steps

2012-05-14 Thread Sylvain Rochet
Hi Kieran, On Mon, May 14, 2012 at 05:20:22PM +0100, Kieran Mansley wrote: On Mon, 2012-05-07 at 23:10 +0200, Sylvain Rochet wrote: Pppd have a well established codebase, this is probably not so hard to backport 2.4.5 or at least check the diff between all pppd releases, will try

Re: [lwip-users] LCP Termination Request steps

2012-05-14 Thread Sylvain Rochet
Hi Nick, On Mon, May 14, 2012 at 08:37:18PM +0300, N.Karakotas wrote: Hi, I can help you to debug the PPPoS over my end. Yeah, will need :-) I'm currently using it in my project and have found some issues with it. Especially when I initiate a PPP connection, send data and then close

Re: [lwip-users] LCP Termination Request steps

2012-05-14 Thread Sylvain Rochet
Hi Kieran, On Mon, May 14, 2012 at 07:22:33PM +0100, Kieran Mansley wrote: Why don't we get this pushed into the default branch of the git repo so that others can experiment with it. There should be time before 1.5.0 to sort it all out. It obviously wouldn't get backported to the

Re: [lwip-users] LCP Termination Request steps

2012-05-14 Thread Sylvain Rochet
Hi Simon, On Mon, May 14, 2012 at 09:08:04PM +0200, Simon Goldschmidt wrote: That would be great! If 2.4.x really fixes bugs where we found them, that overrides the argument of staying with the 2.3.x code base because of smaller code size PPPd 2.4.x is at least used in all major Linux

Re: [lwip-users] lwip whole performance down

2012-05-16 Thread Sylvain Rochet
Hi, On Wed, May 16, 2012 at 12:25:09PM -0400, Bill Auerbach wrote: In my experience, most performance issues have been in my driver or hardware platform, not in lwIP. I don't use a real OS so I can't speak to its added overhead. Added to that, considering lwIP is working almost without

Re: [lwip-users] lwip whole performance down

2012-05-17 Thread Sylvain Rochet
Hi Vincent, On Thu, May 17, 2012 at 09:51:55AM +, vincent cui wrote: It is really odd... This is not. I enable display lwip stats, it shows that there is packet dropped.. So, lwIP probably knows it had to drop the SYN packet, you only need to find out why. Again, you HAVE TO get

Re: [lwip-users] lwip whole performance down

2012-05-17 Thread Sylvain Rochet
Hi Vincent, On Thu, May 17, 2012 at 10:15:36AM +, vincent cui wrote: When lwIP performance goes down, the Ethernet DMA's RX buffer unavailable flag is always set ... don't know why, it seems HW problem. This is kind of a hazardous way to suspect first a hardware problem before

Re: [lwip-users] lwip whole performance down

2012-05-18 Thread Sylvain Rochet
Hi Vincent, On Thu, May 17, 2012 at 11:19:28PM +, vincent cui wrote: Hi all: I found the root cause and got it done. The Ethernet interrupt handler has a potential bug . Ah ah!, I knew it! Thank you for all your help.. You're welcome :-) Sylvain signature.asc Description:

Re: [lwip-users] LCP Termination Request steps

2012-05-20 Thread Sylvain Rochet
Hi, On Sun, May 20, 2012 at 04:37:02PM +0300, N.Karakotas wrote: Im having trouble compiling the ppp-new for micro. In the auth.c a lot of the includes are dependent on linux operating system. Yeah, maybe you should read this thread more conscienciously :-) I already said the port is not

Re: [lwip-users] CyaSSL 2.2.0 Released

2012-05-24 Thread Sylvain Rochet
Hi Bernard, On Thu, May 24, 2012 at 01:21:29PM +0800, bernard wrote: NOTE: RT-Thread Application will be dynamic linked when running. Basically: .o(GPL) + .o(BSD) = GPL (i.e. GPL source code compiled with BSD source code) .so(GPL) + .o(BSD) = GPL

Re: [lwip-users] CyaSSL 2.2.0 Released

2012-05-24 Thread Sylvain Rochet
Hi Bernard, On Thu, May 24, 2012 at 04:34:47PM +0800, bernard wrote: Thank Sylvain, That is: RT-Thread RTOS (GPLv2) Application (GPLv2, PIC ELF) #1 + CyaSSL like (GPLv2) Application (close source, PIC ELF) #2 Where did you saw that RT-Thread is able to parse and run ELF binaries ? As far

Re: [lwip-users] LCP Termination Request steps

2012-06-03 Thread Sylvain Rochet
Hi Nick, On Wed, May 16, 2012 at 08:44:18AM +0300, N.Karakotas wrote: Hi, Is the PPP port available so I can test it? I have a SIO port for LPC17xx. I removed all POSIX-centric code and re-enabled the PPPoS code in the ppp-new branch, it builds, maybe it works :-) I changed a bit the API

Re: [lwip-users] LCP Termination Request steps

2012-06-03 Thread Sylvain Rochet
Hi Nick, On Sun, Jun 03, 2012 at 11:49:24PM +0300, N.Karakotas wrote: Ok most probably know don't try and code after a few glasses of whine!! :) I got it to compile for now, had to comment out pwd.h,unistd.hand fcntl also undef __P for Redlib as it defines it as __P 1 somewehere in its

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 thread

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

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] 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 found

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 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 work

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_INITIALIZE

Re: [lwip-users] LCP Termination Request steps

2012-06-05 Thread Sylvain Rochet
Hi Ivan, On Tue, Jun 05, 2012 at 10:05:52AM -0600, Ivan Delamer wrote: Sylvain: can you post this as a task in Savannah, then we can discuss this addition there. Yep, will do. Some small RTOSes are configured without support for deleting threads so we need to see how to handle this.

Re: [lwip-users] LCP Termination Request steps

2012-06-06 Thread Sylvain Rochet
Hi Nick, On Wed, Jun 06, 2012 at 10:40:25AM +0300, N.Karakotas wrote: Hey Sylvain, Does your system run OK? After 2 days mine died and unfortunately I did have my debug open to catch the fault! Humm it is, but I am still resetting my MUC at the end of the connection, because the current

Re: [lwip-users] Hard Fault on PPP thread delete

2012-06-07 Thread Sylvain Rochet
Hi Alex, On Wed, Jun 06, 2012 at 10:52:11PM -0700, Alex2051 wrote: static void sys_thread_wrapper(void * arg) { sys_thread_timeouts_mark_empty(); vTaskDelete(0);// after this operator program goes to hard fault exeption } But if I setup low ptimisation for best debug

Re: [lwip-users] Hard Fault on PPP thread delete

2012-06-07 Thread Sylvain Rochet
Hi Alex, On Thu, Jun 07, 2012 at 02:20:22AM -0700, Alex2051 wrote: unbelievable! thank You Sylvain. it works... but I can not eplain why... Why? Well, you'll have to look at what your compiler does when optimizing that, I agree, troubleshooting ASM-optimized output is not the easy part :-)

Re: [lwip-users] LCP Termination Request steps

2012-06-07 Thread Sylvain Rochet
Hi Nick, On Wed, Jun 06, 2012 at 01:36:06PM +0300, N.Karakotas wrote: Hi, Hmm thats a dirty trick! :-) I have the lwip stack to 1200 bytes The ppp thread 1200 bytes. The only thing running is the ppp the ethernet is idle. It looks that something is overflowing or there is a leak in

Re: [lwip-users] LCP Termination Request steps

2012-06-07 Thread Sylvain Rochet
Hi Nick, On Thu, Jun 07, 2012 at 03:36:51PM +0200, Sylvain Rochet wrote: [...], ppp_input() does not free pbuf in some cases, this is my fault, [...] I just pushed an early fix about that, but shouldn't change anything in most cases. Sylvain signature.asc Description: Digital signature

Re: [lwip-users] LCP Termination Request steps

2012-06-07 Thread Sylvain Rochet
Hi Nick, On Thu, Jun 07, 2012 at 10:17:20PM +0300, N.Karakotas wrote: The drop calls the snmp_inc_ifindiscards, this will work if you have snmp enabled I just have defines so it doesn't complain. Should it call something more suitable? Nope, snmp_inc_ifindiscards() is defined as an empty

Re: [lwip-users] PPP down not detected

2012-06-19 Thread Sylvain Rochet
Hi, On Tue, Jun 19, 2012 at 10:11:36PM +0300, Mehmet Ali Ekici wrote: Hi All, I have seen a problem at PPP stack. I saw that GPRS modem sends NO CARRIER but PPP stackt doesn't recognize it and doensn't shut the connection down. Is it the PPP stack has to detect it or driver ? The PPP

Re: [lwip-users] PPP down not detected

2012-06-20 Thread Sylvain Rochet
Hi, On Wed, Jun 20, 2012 at 04:03:54PM +1200, David Empson wrote: I don't know offhand if this is a standard feature of LWIP's PPP stack. It is. This method is likely to be considerably slower to react to a connection loss than a hard-wired DCD signal. Yeah, considering the required

Re: [lwip-users] LCP Termination Request steps

2012-06-22 Thread Sylvain Rochet
Hi Nick, On Wed, Jun 13, 2012 at 08:30:01PM +0300, N.Karakotas wrote: Hello Sylvain, However im having a problem when the link is lost. This is the debug: [] I tried to simulate it by removing the SIM card. It never reaches the drop the packet and I get a Hard Fault somewhere in the

Re: [lwip-users] LCP Termination Request steps

2012-06-22 Thread Sylvain Rochet
Hi Simon, On Tue, May 15, 2012 at 10:02:20PM +0200, goldsi...@gmx.de wrote: I tested it with the Win32 port from contrib. There is (by now) a working SIO port included which should work with PPPoS. I tested that against window's PPP-Server, which still did not work fully. But given the bugs

Re: [lwip-users] LCP Termination Request steps

2012-06-22 Thread Sylvain Rochet
Hi Ivan, On Tue, May 15, 2012 at 09:52:32AM -0600, Ivan Delamer wrote: Just wanted to say, that this is a great project to take on, thanks Sylvain. I can volunteer to test your port as I have a test PPP client running 24/7 here in the office. We are almost to the point where it should work

Re: [lwip-users] LCP Termination Request steps

2012-06-22 Thread Sylvain Rochet
Hi Simon, On Mon, May 14, 2012 at 09:37:53PM +0200, goldsi...@gmx.de wrote: It's sad that this project seems to die though, given the fact that (at least in germany), PPPoE is still use pretty often in DSL routers, and many of them use linux. Same here (in France), because operators allow

Re: [lwip-users] LCP Termination Request steps

2012-06-23 Thread Sylvain Rochet
Hi Nick, On Sat, Jun 23, 2012 at 06:34:05PM +0300, N.Karakotas wrote: Hello Sylvain, Im trying the new port but I cant connect. I then receive a NO CONNECT from the modem. I have tried AUTH_PAP and AUTH_ANY. Well, this is not really helpful... could you send the output with PPP_DEBUG and

Re: [lwip-users] PPP

2012-06-23 Thread Sylvain Rochet
Hi Nick, On Sat, Jun 23, 2012 at 07:40:58PM +0300, N.Karakotas wrote: sent [proto=0x237d] c0 21 7d 21 7d 21 7d 20 7d 34 7d 22 7d 26 7d 20 7d 20 7d 20 7d 20 7d 25 7d 26 7d 5e dc fb 9a 7d ... The issue is there, 0xc021, the protocol ID for PPP LCP seem to suffer from 2 a byte offset.

Re: [lwip-users] PPP

2012-06-23 Thread Sylvain Rochet
Hi Nick, On Sat, Jun 23, 2012 at 08:38:04PM +0300, N.Karakotas wrote: Hi Sylvain, The uart is a circular buffer and is protected by a lock. Im looking at the dump: dump_packet(sent, (unsigned char *)nb-payload+2, nb-len-2); Maybe that's why you are not seeing the 0xff 0x03?

Re: [lwip-users] PPP

2012-06-23 Thread Sylvain Rochet
Hi Nick, On Sat, Jun 23, 2012 at 10:13:28PM +0300, N.Karakotas wrote: Hey Sylvain, I grabbed the latest push you made and it work now. I pushed this morning fixes about PPPoS and you sent your first mail way after my latest push about that. So I made the assumption that you were trying the

Re: [lwip-users] LCP Termination Request steps

2012-06-23 Thread Sylvain Rochet
Hi Nick, On Sat, Jun 23, 2012 at 07:06:28PM +0300, N.Karakotas wrote: Hi, Yes I thought so :-) Didn't know about the PRINTPKT_SUPPORT. Attached is the output. rcvd [LCP ConfReq id=0x1 asyncmap 0xa auth pap] fsm_input(0): Rcvd packet in state 0 This is almost impossible too...

Re: [lwip-users] LCP Termination Request steps

2012-06-25 Thread Sylvain Rochet
Hi Ivan, On Mon, Jun 25, 2012 at 09:38:21AM -0600, Ivan Delamer wrote: Hello Sylvain, Great news! I will download the ppp branch and start testing it this week. Sounds like really good work you've done. Hey!, you might be interested, I added IPv6 support to PPP, LL assignation work

Re: [lwip-users] TCP - last_unsent-oversize_left = oversize_used asserts

2012-07-02 Thread Sylvain Rochet
Hi, On Sun, Jul 01, 2012 at 08:20:23PM +0200, Sylvain Rochet wrote: On Sat, Jun 30, 2012 at 06:43:43PM +0200, Krzysztof Wesolowski wrote: last_unsent-oversize_left = oversize_used unsent_oversize mismatch (pcb-unsent is NULL) I have encounter same assert line while streaming big

Re: [lwip-users] Handling link-up/down, netif-up/down events in LwIP

2012-07-07 Thread Sylvain Rochet
Hi, On Sat, Jul 07, 2012 at 11:56:45AM +0100, Kieran Mansley wrote: They probably wouldn't. TCP is designed to cope with links coming and going, and will just retransmit if any packets are lost while the link is down for example. Connections should survive link being removed and

Re: [lwip-users] PPP

2012-07-29 Thread Sylvain Rochet
Hi Nick, On Sun, Jul 29, 2012 at 01:07:56PM +0300, N.Karakotas wrote: Hello, I tried the latest revision of the PPP code but im having problems. I had to increase the tcp_input_thread from 300 to 500 or else it crashed. Then the ppp thread connected to the ISP and got ip etc. But it

Re: [lwip-users] PPP

2012-07-29 Thread Sylvain Rochet
Hi Nick, On Sun, Jul 29, 2012 at 11:58:49PM +0300, N.Karakotas wrote: Hi Sylvain, When it configures the ip,gateway and adds pp to the netif list etc I cant connect to the internet. Sounds like a routing issue, is your PPP netif interface set as your default route through ppp_set_default()

Re: [lwip-users] Re opening LWIP for new HTTP message

2012-08-08 Thread Sylvain Rochet
Hi, On Wed, Aug 08, 2012 at 06:14:52AM -0700, H.A. wrote: Do you mean that I should check if the connection is open in the interrupt routine? If open send the message. If not open, open the connection, return and let the connect callback send the message? Can the connection be closed

Re: [lwip-users] Re opening LWIP for new HTTP message

2012-08-08 Thread Sylvain Rochet
Hi, On Wed, Aug 08, 2012 at 06:29:47AM -0700, H.A. wrote: Of course not what? I had at least 3 questions. This is why I quoted only the relevant part. I do understand that the LWIP stack is not reentrant but the Stellaris code is using tcp_write and tcp_output from the serial interrupt

Re: [lwip-users] No ARP reply by using two NICs

2012-08-16 Thread Sylvain Rochet
Hi, On Tue, Aug 14, 2012 at 03:01:59PM +0200, Stefan Lankes wrote: Hi LwIP users, I have an ARP problem and I am not sure, if this a problem of LwIP. In our academic operating system, we use LwIP 1.4.0 as TCP/IP stack. My test system posses two network devices and each device belongs to

Re: [lwip-users] ethernetif_input usage with Ethernet over SPI

2012-08-23 Thread Sylvain Rochet
Hi, On Thu, Aug 23, 2012 at 04:21:30PM +0200, Tomás Svec wrote: Well, to clarify, I send whole Ethernet frames via SPI. ARP should be handled by the external chip, though, as it does not let any ARP packages through and responds to ARP queries without the TCP/IP stack. Maybe you should tell

Re: [lwip-users] LWIP crash

2012-09-07 Thread Sylvain Rochet
Hi Anil, On Fri, Sep 07, 2012 at 11:09:47AM +0530, Anil kumar wrote: We are using lwip as a linux kernel module in a multi threaded environment. Here is the sequence of events that are leading to the crash in my case. As the application is continuously sending data, do_write continuously

Re: [lwip-users] Getting started with an ethernet driver for linux

2012-09-18 Thread Sylvain Rochet
Hi, On Tue, Sep 18, 2012 at 08:51:13PM +1200, A G wrote: Thanks, where you say it uses a pseudo network interface that somehow passes raw ethernet packets, what do you mean by somehow; is this functionality provided by lwip, or do I need to do the lwip to raw ethernet packet interface?

Re: [lwip-users] where is the contribute part

2012-11-02 Thread Sylvain Rochet
Hi Yueyue, On Thu, Nov 01, 2012 at 09:17:29AM +0800, yueyue papa wrote: Hi I coudl only check out lwIP in the GIT repository.Where is the lwIP contrib part in the GIT? http://git.savannah.gnu.org/cgit/lwip/lwip-contrib.git Sylvain signature.asc Description: Digital signature

Re: [lwip-users] Assertion memp sanity failed at line 463 in ../lwip_1_4_0/Src/core/memp.c

2012-11-16 Thread Sylvain Rochet
Hi, On Fri, Nov 16, 2012 at 10:28:17AM +0100, Mikael Eiman wrote: Hi, I had a similar problem recently, and in my case I was first using lwIP functions from multiple threads (it's not thread safe, don't do that), and then causing a double free() by calling essentially tcp_close() twice

Re: [lwip-users] IP6 address autoconfig problem when using hub

2012-12-10 Thread Sylvain Rochet
Hi, On Sun, Dec 09, 2012 at 10:53:58AM +0100, Simon Goldschmidt wrote: Zach Smith wrote: I am having a problem when I connect my IPv6 device running lwip to a hub instead of a switch. [..] Since a hub forwards all packets received onto all ports it is echoing my devices neighbor

Re: [lwip-users] socket write hangs, in LwIP 1.4.? (ppp-new branch but not ppp related)

2012-12-20 Thread Sylvain Rochet
Hi Mark, On Thu, Dec 20, 2012 at 11:55:19AM -0800, Mark Lakata wrote: I'm using the head of the ppp-new branch. I'm going to plead almost complete ignorance of how git works (haven't gotten around to learning it) and learned just enough to download the ppp-new branch. So if I understand

Re: [lwip-users] Closing netconn, application or lwip bug?

2013-01-14 Thread Sylvain Rochet
Hi Szymon, On Mon, Jan 14, 2013 at 03:25:22PM +0100, Szymon Tarnowski wrote: Hi, I am developing a commercial application for embedded device using lwip. My device is listening on specific tcp port for incomming message, if client connects can send request and get response then decide if want

Re: [lwip-users] Update LWIP 1.2.0 to 1.4.1

2013-01-23 Thread Sylvain Rochet
Hi, On Wed, Jan 23, 2013 at 07:38:17AM +0100, Simon Goldschmidt wrote: Unfortunately, we don't have documents on how-to-upgrade between versions (yet?). lwip/UPGRADING seems quite complete for me, well this is not a step-by-step how-to strictly speaking but should be enough for anyone

Re: [lwip-users] PPP new Stack

2013-02-18 Thread Sylvain Rochet
Hi Nikolas, On Mon, Feb 18, 2013 at 11:52:02PM +1100, Nikolas Karakotas wrote: Hello Sylvain, I have been using latest ppp-new commit from git and also lwip but im experiencing a problem ONLY when I close the ppp connection. When the ppp thread is left open (running always) everything is

Re: [lwip-users] PPP new Stack

2013-02-19 Thread Sylvain Rochet
Hi Nikolas, On Tue, Feb 19, 2013 at 02:55:27PM +1100, Nikolas Karakotas wrote: Hi Sylvain, Ok I think I found the problem. I use PPP_INPROC_OWNTHREAD and once I added ppp_delete() to the end it seems to fix the problem. I also removed the ppp_delete from the linkStatusCB. Somehow a clean

Re: [lwip-users] IPV6 compilation

2013-02-25 Thread Sylvain Rochet
Hi Fabian, On Mon, Feb 25, 2013 at 11:00:33AM +0100, Fabian Cenedese wrote: I'm using the official 1.4.1 lwip, not current from git. [...] Should the ipv6 code be compilable (I don't worry about functionable now)? IPv6 is not available from the 1.4.1 release but it is available (and

Re: [lwip-users] PPP new Stack

2013-02-27 Thread Sylvain Rochet
Hi Nikolas, On Wed, Feb 20, 2013 at 07:07:29PM +1100, Nikolas Karakotas wrote: Hi Sylvain, Ok I followed your suggestions and it works nicely. I just call ppp_close and don't delete the thread. When I want to reconnect I call ppp_reopen and it simply changes the netif interface to match

Re: [lwip-users] netconn_write/recv from two different tasks..

2013-03-06 Thread Sylvain Rochet
Hi Thomas, On Wed, Mar 06, 2013 at 01:14:57AM -0800, ThomasJ wrote: Could it be the fact I'm using netconn_write in one task and netconn_recv in another? Would it help using them in the same task? (First check for received data and then send data if any to send?) Yes, this is the issue, a

Re: [lwip-users] netconn_write/recv from two different tasks..

2013-03-06 Thread Sylvain Rochet
Hi Thomas, On Wed, Mar 06, 2013 at 03:03:55AM -0800, ThomasJ wrote: or is it better to use a semaphore around the netconn_recv and netconn_write, so no write can be done during receiving and no receive during wrie? How does you handle it? This is exactly the same from the lwIP point of

Re: [lwip-users] netconn_write/recv from two different tasks..

2013-03-06 Thread Sylvain Rochet
Hi Thomas, On Wed, Mar 06, 2013 at 06:43:15AM -0800, ThomasJ wrote: Hi Just an idea... and would it work? If I keep my TX task and RX task. I then make make sure the TXTask does not use the netconn_write while the RXTask is in the netconn_recv call. Would that be ok or must the net

Re: [lwip-users] Problem with connection reset

2013-03-10 Thread Sylvain Rochet
Hi, On Sat, Mar 09, 2013 at 04:31:28PM +0100, Maciej Gajdzica wrote: Hello After solving issue with fragmented 3G packets I ran into some performance related problems. [...] Further investigation revealed that problem is probably caused by limited memory for memp objects and pbufs. At

Re: [lwip-users] Problem with tcp_listen

2013-03-20 Thread Sylvain Rochet
Hi Christian, On Wed, Mar 20, 2013 at 03:59:13PM +0100, Christian Fuchs wrote: ..., the pcb is in state ESTABLISHED and goes then to FIN_WAIT_1. So the memory for MEMP_TCP_PCB_LISTEN will never be freed. So, what I'm doing wrong? It looks like your port timers are not working properly.

Re: [lwip-users] Interface with PPPoE and DHCP?

2013-03-22 Thread Sylvain Rochet
Hi Simon, On Fri, Mar 22, 2013 at 09:14:39AM +0100, Richner Simon wrote: Would it be possible to use PPPoE and DHCP on the same interface in parallel? It depends on what you mean by interface, on the same Ethernet hardware interface: yes on the same lwIP software interface (i.e. netif):

Re: [lwip-users] LPC1768/9 LAN8720 FreeRTOS 7.4 LWIP 1.4.1

2013-05-23 Thread Sylvain Rochet
Hi, On Thu, May 23, 2013 at 12:56:07PM -0400, Pomeroy, Marty wrote: Do not call tcp_new() or netconn_new() from outside the lwip thread. Not true, netconn API *IS* thread-safe. Sylvain signature.asc Description: Digital signature ___

Re: [lwip-users] LPC1768/9 LAN8720 FreeRTOS 7.4 LWIP 1.4.1

2013-05-24 Thread Sylvain Rochet
Hi, On Fri, May 24, 2013 at 07:35:49AM +0200, Furiantes Furiantes wrote: Is tcp_new() thread safe too ? or just netcon. My scenario is that: No, as said in doc/rawapi.txt :-) Raw API is *NOT* thread safe: udp_*(), tcp_*(), netif_*(), ... Netconn API is thread safe: netconn_*() Socket API is

Re: [lwip-users] Receive path stuck due to pbuf_alloc returning NULL

2013-05-27 Thread Sylvain Rochet
Hi Sebastian, On Mon, May 27, 2013 at 10:01:44AM -0700, Sebastian Gonzalez wrote: Hi, I am using lwIP 1.3.2 with an Atmel AT91SAM7X512, and FreeRTOS. We have already used this combination in other projects with no problem, but now we using our design in a network with high density of UDP

Re: [lwip-users] Understanding MTU and Max ETH Frame size

2013-05-29 Thread Sylvain Rochet
Hi Dimax, On Tue, May 28, 2013 at 03:19:41PM +0300, Dimax wrote: Hi, Thanks for your answer. But I need to clarify it If I set MTU=1500 am I guaranteed not to get Ethernet frames bigger then 1514 bytes? You are not, MTU is Maximum -Transmission- Unit, not receive. You might receive giant

Re: [lwip-users] ppp_new gprs

2013-06-03 Thread Sylvain Rochet
Hi Ahmed, On Sat, Jun 01, 2013 at 04:22:56AM -0700, Ahmed Fayek wrote: Hi, My application is a GPRS router that route data to/from eathernet interface and serial GPRS module usin ti stellaris LM3S6918. I try to use the ppp_new code, I need to know the sequence to start the pppos using

Re: [lwip-users] ppp_new gprs

2013-06-12 Thread Sylvain Rochet
Hi Nikolas, On Wed, Jun 12, 2013 at 10:38:07PM +1000, Nikolas Karakotas wrote: Hi Sylvain, At what case does your sio_read returns len 0 ? This is just an example, mine never return 0, however, a read() function which is conforming to POSIX.1-2001 returns -1 in case of error: READ(2)

Re: [lwip-users] ppp_new gprs

2013-06-13 Thread Sylvain Rochet
Hi Nikolas, On Thu, Jun 13, 2013 at 09:39:59AM +1000, Nikolas Karakotas wrote: Hi, I thought so, by the way where is the best place to call pppapi_sighup? When DCD state change to NO CARRIER, but DCD is rarely wired nor relevant with GPRS modems, so you just have to wait for LCP timeout.

Re: [lwip-users] redefining LWIP_PLATFORM_DIAG(x)

2013-06-24 Thread Sylvain Rochet
Hi Joe, On Tue, Jun 25, 2013 at 12:49:31AM +1000, Joe Bloggs84 wrote: Hi All, I am interested in whether there is already a way to do this and I am missing something or whether a change like I am proposing would be useful to others. cc.h defines LWIP_PLATFORM_DIAG(x) as #define

Re: [lwip-users] a question!?

2013-06-25 Thread Sylvain Rochet
Hi, On Tue, Jun 25, 2013 at 12:25:02PM -0400, Bill Auerbach wrote: Maybe because the protocol and type checks are 2 byte checks while the ip address and hwaddr checks total 10 bytes to check? And maybe because ARP/IPv6/PPPoE are dealing with broadcast/multicast addresses, so checking the

Re: [lwip-users] ppp problem

2013-09-14 Thread Sylvain Rochet
Hi Stefano, On Sat, Sep 14, 2013 at 02:02:43PM +0200, Stefano Marini wrote: I'm using ppp-new branch donwloaded from git repositories and it works fine with vodafone SIM Card (see vodafone.txt attached file). When I change SIM Cards and I try to use TIM, I receive and LPC error (see tim.txt

Re: [lwip-users] TCP/IP with PPP

2013-10-07 Thread Sylvain Rochet
Hi Dave, On Mon, Oct 07, 2013 at 10:42:13PM +0700, Dave McLaughlin wrote: Hi all, I am new to the group and new to the library and looking for a bit of advice. I have a project to build a sensor interface with a GSM modem and I need to have the ability to connect via TCP/IP over PPP to

Re: [lwip-users] The lwip linux port - how to use another ip on the existing subnet

2013-10-20 Thread Sylvain Rochet
Hi Enrique, On Sun, Oct 20, 2013 at 11:33:11AM +0200, Enrique Wellborn wrote: Hi, I was wondering whether it is possible to use the lwip linux port so that it'll use an ip address on my existing subnet. The scenario i'm trying to create is as follows: My Ubuntu machine has a single ethernet

Re: [lwip-users] Works with Win7, not Windows XP?

2013-10-31 Thread Sylvain Rochet
Hi, On Thu, Oct 31, 2013 at 08:34:06AM +, Niall Donovan wrote: Hi, There is evidence that Windows 7 and 8 ignore the MSS value if it is less 576. I have TCP links working between my embedded app and both Windows XP and Windows 7. In my case XP was always working (TCP_MSS = 1518) but

Re: [lwip-users] Avoid connection close by lwIP server

2013-12-16 Thread Sylvain Rochet
Hi, On Mon, Dec 16, 2013 at 07:41:06AM +0100, Satz Klauer wrote: Hi, I'm currently new to lwIP and so I'm still trying to understand it. Thus I used the httpserver_raw example as starting point for my application. Since I do not need a http-connection which closes socket after every

Re: [lwip-users] [ppp-new] Problems connection on Windows7

2014-01-14 Thread Sylvain Rochet
Hello Felipe, On Sun, Jan 12, 2014 at 10:26:31PM -0200, Felipe Provenzano wrote: Hello guys, My name is Felipe i am working in a device using the Lwip, and we are trying to connect it in a pc using the PPPoS. The first test in the Windows XP worked very well. But nothing worked when we

Re: [lwip-users] [ppp-new] Problems connection on Windows7

2014-01-14 Thread Sylvain Rochet
Hi Felipe, On Tue, Jan 14, 2014 at 01:06:12PM -0200, Felipe Provenzano wrote: Thank you Sylvain, Fortunately, yes, we have enough RAM/FLASH for the extra log \o/ [...] [ 116:23: tcp] rcvd [proto=0x80fd] 01 02 00 0a 12 06 00 00 00 01 [ 116:23: tcp] Unsupported protocol 0x80fd

Re: [lwip-users] [ppp-new] Problems connection on Windows7

2014-01-14 Thread Sylvain Rochet
Hi Felipe, On Tue, Jan 14, 2014 at 02:58:02PM -0200, Felipe Provenzano wrote: Hi Sylvain, I have news, just after send the last email, the equipment started to work with my computer. It was looking suspicious because i was changing the windows register trying a lot of different stuff.

Re: [lwip-users] How to use PPP with NULL-MODEM serial cable

2014-03-24 Thread Sylvain Rochet
Hello, On Mon, Mar 24, 2014 at 03:20:25PM +0800, zfb...@zju.edu.cn wrote: Hi everyone, I have transplanted LWIP -1.4.0 to an Oribta board, which don't have NIC, so I want to use ppp to connect it to a Linux PC using a NULL-MODEM serial cable. On the PC ,I set up a PPP sever to

Re: [lwip-users] Which PPP implementation should be used? PPP-new or PPP from the master branch

2014-03-31 Thread Sylvain Rochet
Hello LMao, On Mon, Mar 31, 2014 at 12:57:56PM +, l...@moog.com wrote: Hi there, I am new to the lwIP community and try to use lwIP v1.4.1 to implement a gateway between an Ethernet interface and PPP on ATM91SAM7x. I found a port (with lwIP 1.3) in FreeRTOS community contributions

Re: [lwip-users] Which PPP implementation should be used? PPP-new or PPP from the master branch

2014-03-31 Thread Sylvain Rochet
Hello Charles, On Mon, Mar 31, 2014 at 08:17:59PM +, l...@moog.com wrote: Thanks, Sylvain. I think the answer is quite obvious now: ppp-new is the way to go since it has you and the community's support. I couldn't find a complete example code of using ppp-new's PPP implementation.

Re: [lwip-users] Which PPP implementation should be used? PPP-new or PPP from the master branch

2014-04-01 Thread Sylvain Rochet
Hello Charles, On Tue, Apr 01, 2014 at 11:57:03AM +, l...@moog.com wrote: Hi Sylvain, Thanks for your support. I didn't know it doesn't support PPP server. Any plans to add PPP server ? What needs be done in order to support PPP server? Answering both in one bundle, since answers

Re: [lwip-users] lwipopts questions (updating to 1.4.1 from 1.3.2)

2014-04-02 Thread Sylvain Rochet
Hi, On Wed, Apr 02, 2014 at 07:19:42AM +0300, Dimax wrote: I have some questions regrading proper configuration of the lwip in lwipopts.h file. I'm running lwip 1.4.1 on STM32F2x7 with FreeRTOS 1. SYS_LIGHTWEIGHT_PROT When do I need this protection? Considering that lwip stack run in a

Re: [lwip-users] Missing typedef in vj.h fsm.h ppp.h etc

2014-04-04 Thread Sylvain Rochet
Hello Charles, On Fri, Apr 04, 2014 at 03:54:07PM +, l...@moog.com wrote: Sylvain, I try to compile ppp-new and my compiler(Keil) gave compiling errors like this: I find the missing typedefs are defined in ppp_impl.h file. It seems vj.h etc doesn't include ppp_impl.h. Am I doing

Re: [lwip-users] Missing typedef in vj.h fsm.h ppp.h etc

2014-04-04 Thread Sylvain Rochet
Hello Charles, On Fri, Apr 04, 2014 at 04:47:38PM +, l...@moog.com wrote: A few files have the problem: init.c, memp.c, pbuf.c, timers.c, ppp.c, api_lib.c, api_msg.c, pppapi.c, sockets.c and tcpip.c Well, this is not helping much, could you paste the full compiler output from a cleaned

Re: [lwip-users] Missing typedef in vj.h fsm.h ppp.h etc

2014-04-04 Thread Sylvain Rochet
Hello Charles, On Fri, Apr 04, 2014 at 05:44:17PM +, l...@moog.com wrote: Hi Sylvain, The compiler log is in the attached file. Keil uVision use ARMCC compiler, here's the command line options for compiling: Thank you, this is helpful, I pushed a little change about the order of u_*

Re: [lwip-users] Missing typedef in vj.h fsm.h ppp.h etc

2014-04-07 Thread Sylvain Rochet
Hello Gavin, On Mon, Apr 07, 2014 at 11:28:02AM +1200, Gavin Lambert wrote: I'm surprised that you think that there would be a compiler with native support for those. They're not in any compiler standard that I'm aware of. (They do come from BSD sockets, but that's hardly guaranteed to

  1   2   3   4   >