[lwip-users] ppp - "main: status_cb: Connection lost"

2022-11-10 Thread Vinicius Maciel
I am running ppp with a telit modem on an ESP32 board and every 5 minutes the board is losing the ppp connection. case PPPERR_CONNECT: { ESP_LOGE(TAG, "status_cb: Connection lost\n"); } It is connecting and getting IP correctly but it often loses the connection often. What could be th

Re: [lwip-users] PPP LCP echo interval u8

2022-10-10 Thread Sylvain Rochet
Hi Nikolas, On Mon, Oct 10, 2022 at 04:17:11AM +, Nikolas Karakotas wrote: > Hi, > > Is there a reason why the LCP echo data type size is u8? Yes, memory footprint. I am not against changing it but at first I would like to understand why an LCP echo interval over 255 seconds would be neces

[lwip-users] PPP LCP echo interval u8

2022-10-09 Thread Nikolas Karakotas
Hi, Is there a reason why the LCP echo data type size is u8? u8_t fsm_timeout_time;/* Timeout time in seconds */ u8_t fsm_max_conf_req_transmits; /* Maximum Configure-Request transmissions */ u8_t fsm_max_term_transmits; /* Maximum Terminate-Request transmissions */

[lwip-users] PPP silence ppp_dbglog

2022-07-03 Thread Nikolas Karakotas
Hi, I have turned off PPP_DEBUG and LWIP_DEBUG 0. I can see in netif/ppp/lcp.c and netif/ppp/ppp_input that ppp_dbglog is used instead of LCPDEBUG. It looks like they need to be changed to LCPDEBUG to silence the debug and not call ppp_logit. void ppp_dbglog(const char *fmt, ...);/* log a

Re: [lwip-users] PPP shared Internet

2022-01-17 Thread Sylvain Rochet
Hi Richard, On Mon, Jan 17, 2022 at 11:53:32AM +, Richard Bailey wrote: > Hi, > > I am working on an IoT solution. I've bumped into an issue around > using LWIP. If I describe the scenario and what I'm trying to achieve, > perhaps you can tell me if what I'm trying to do is in theory is >

[lwip-users] PPP shared Internet

2022-01-17 Thread Richard Bailey
Hi, I am working on an IoT solution. I've bumped into an issue around using LWIP. If I describe the scenario and what I'm trying to achieve, perhaps you can tell me if what I'm trying to do is in theory is possible or if I need to approach it another way. It has a main NXP PCB, with a Microsoft

[lwip-users] PPP 2.4.9 is out!

2021-01-09 Thread - Neustradamus -
Hello lwIP team, I wish you a Happy New Year! Good news, PPP 2.4.9 has been released with several vulnerability fixes and a lot of improvements. You have a very very old version. Can you update it? Note: I have already informed you but no answer: - https://github.com/paulusmack/ppp/issues/111

[lwip-users] PPP CHAP Response repeatedly results in further CHAP Challenges

2020-02-17 Thread umair47
Hi, I have been stuck for some time while implementing PPP on our platform (info at the end of this message). Everything works fine until LCP succeeds and we move to PPP_PHASE_AUTHENTICATE. The problem is that in this phase while using CHAP or any other kind of Authentication, the CHAP Response r

[lwip-users] PPP lcp does not complete -

2019-09-19 Thread JJ
Hello, I want to use use PPP on a STM32F2 with a SIM7100. The Hw is connected and working. PPP regularly start but, even receiving data from modem, cannot complete lcp configuration. Any suggestion? Found log below: PPP INITAT httpd_init tcp_bind: bind to port 80 http_set_ssi_handler PPP INITA

[lwip-users] PPP debugging with LwIP

2018-11-12 Thread Patrick Klos
Hello LwIP users list: We are looking to enhance our PacketVault Jr product to provide better support for various forms of serial communications.  With as many users developing products with LwIP that need PPP support, I would like to ask you if you would mind answering a quick survey about de

Re: [lwip-users] PPP proxy arp support

2018-10-22 Thread goldsi...@gmx.de
On 19.10.2018 12:07, Sylvain Rochet wrote: [..] If I remember correctly, Sylvain started to make things work that he needed when porting the updated PPP sources. It doesn't necessarily mean there was an issue, but I guess he didn't want to implement proxy ARP support in the lwIP ARP layer unless

Re: [lwip-users] PPP proxy arp support

2018-10-19 Thread Sylvain Rochet
Hi, On Wed, Oct 10, 2018 at 03:13:56PM +0200, goldsi...@gmx.de wrote: > > Isn't proxy ARP support only really valid when we are a PPP server? That > wasn't working at that time. We use to call that client and server but in the end it is just an IP tunnel and both ends are equal, PPP protocol is

Re: [lwip-users] PPP proxy arp support [fixed typo]

2018-10-10 Thread Patrick Klos
On 10/10/2018 8:59 AM, Patrick Klos wrote: On 10/9/2018 8:24 PM, Bob Jones wrote: Hello, I'm trying to resolve an issue with regards to PPP and ARP requests. My network topology is as follows, Laptop (192.168.1.3, ethernet) <-> MCU #1 (192.168.1.4, ethernet) <-> MCU #1 (192.168.1.126, PPP s

Re: [lwip-users] PPP proxy arp support

2018-10-10 Thread goldsi...@gmx.de
On 10.10.2018 02:24, Bob Jones wrote: [..] I was thinking of using PPP proxy arp support on MCU #1, but noticed that it was commented out of the lwip ppp implementation in 2015 (commit hash 99bcce78...). The commit message simply reads "PPP, IPCP, removed proxy ARP support". Isn't proxy ARP s

Re: [lwip-users] PPP proxy arp support

2018-10-10 Thread Patrick Klos
On 10/9/2018 8:24 PM, Bob Jones wrote: Hello, I'm trying to resolve an issue with regards to PPP and ARP requests. My network topology is as follows, Laptop (192.168.1.3, ethernet) <-> MCU #1 (192.168.1.4, ethernet) <-> MCU #1 (192.168.1.126, PPP serial [server]) <-> MCU #2 (192.168.1.127 P

[lwip-users] PPP proxy arp support

2018-10-09 Thread Bob Jones
Hello, I'm trying to resolve an issue with regards to PPP and ARP requests. My network topology is as follows, Laptop (192.168.1.3, ethernet) <-> MCU #1 (192.168.1.4, ethernet) <-> MCU #1 (192.168.1.126, PPP serial [server]) <-> MCU #2 (192.168.1.127 PPP serial [client]) The issue I'm running in

Re: [lwip-users] PPP: IPCP bad fcs issue

2018-08-16 Thread Axel Lin
2018-08-16 3:40 GMT+08:00 Patrick Klos : > On 8/15/2018 11:25 AM, Axel Lin wrote: > > Hi list, > > I'm testing a LTE module with lwIP and found always got bad fcs as below. > I dump the received data below: > Is there anything wrong in the received data? > > sent [IPCP ConfReq id=0x10.0.0.0>]␍␊

Re: [lwip-users] PPP: IPCP bad fcs issue

2018-08-15 Thread Sylvain Rochet
Hi, On Wed, Aug 15, 2018 at 05:46:21PM -0400, Patrick Klos wrote: > On 8/15/2018 4:19 PM, Sylvain Rochet wrote: > >But what is very strange is that checksum including checksum itself for > >comparison purpose for "0x01 0x01 0x16 0x03 0x6 0x81 0x6 0x83 0x06 0x6e > >0xdb" is 0xeb 0xbe, which is not

Re: [lwip-users] PPP: IPCP bad fcs issue

2018-08-15 Thread Patrick Klos
On 8/15/2018 4:19 PM, Sylvain Rochet wrote: But what is very strange is that checksum including checksum itself for comparison purpose for "0x01 0x01 0x16 0x03 0x6 0x81 0x6 0x83 0x06 0x6e 0xdb" is 0xeb 0xbe, which is not 0x4114 (nor 0x1441 with byte swap) as displayed in your "Dropping bad fcs" d

Re: [lwip-users] PPP: IPCP bad fcs issue

2018-08-15 Thread Sylvain Rochet
Hi, On Wed, Aug 15, 2018 at 03:40:22PM -0400, Patrick Klos wrote: > On 8/15/2018 11:25 AM, Axel Lin wrote: > >Hi list, > > > >I'm testing a LTE module with lwIP and found always got bad fcs as below. > >I dump the received data below: > >Is there anything wrong in the received data? > > > >sent [I

Re: [lwip-users] PPP: IPCP bad fcs issue

2018-08-15 Thread Patrick Klos
On 8/15/2018 11:25 AM, Axel Lin wrote: Hi list, I'm testing a LTE module with lwIP and found always got bad fcs as below. I dump the received data below: Is there anything wrong in the received data? sent [IPCP ConfReq id=0x1 ]␍␊ pppos_write[0]: len=26␍␊ pppos_input[0]: got 17 bytes␍␊ 7e ff 3

[lwip-users] PPP: IPCP bad fcs issue

2018-08-15 Thread Axel Lin
Hi list, I'm testing a LTE module with lwIP and found always got bad fcs as below. I dump the received data below: Is there anything wrong in the received data? sent [IPCP ConfReq id=0x1 ]␍␊ pppos_write[0]: len=26␍␊ pppos_input[0]: got 17 bytes␍␊ 7e ff 3 80 21 1 1 16 3 6 81 6 83 6 6e db 7e ␍␍␊

Re: [lwip-users] PPP phase dead every 2 hours

2018-06-22 Thread Nishant Agrawal
rom: *Sylvain Rochet > *Sent: *Thursday, June 21, 2018 2:19 PM > *To: *Mailing list for lwIP users > *Subject: *Re: [lwip-users] PPP phase dead every 2 hours > > > > Hi Nishant, > > > > On Thu, Jun 21, 2018 at 12:37:09PM +0545, Nishant Agrawal wrote: > > >

Re: [lwip-users] PPP phase dead every 2 hours

2018-06-21 Thread Ajay Bhargav (SiWi)
change all the time for sure. Regards, Ajay B. From: Sylvain Rochet Sent: Thursday, June 21, 2018 2:19 PM To: Mailing list for lwIP users Subject: Re: [lwip-users] PPP phase dead every 2 hours Hi Nishant, On Thu, Jun 21, 2018 at 12:37:09PM +0545, Nishant Agrawal wrote: > Hello, > > I

Re: [lwip-users] PPP phase dead every 2 hours

2018-06-21 Thread Sylvain Rochet
Hi Nishant, On Thu, Jun 21, 2018 at 12:37:09PM +0545, Nishant Agrawal wrote: > Hello, > > I am using the ppp stack, using a modem to keep a device online and it is > sending ping requests every 30 seconds. The problem is that roughly every 2 > hours, I end up with error, PPPERR_CONNECT. The phase

[lwip-users] PPP phase dead every 2 hours

2018-06-21 Thread Nishant Agrawal
Hello, I am using the ppp stack, using a modem to keep a device online and it is sending ping requests every 30 seconds. The problem is that roughly every 2 hours, I end up with error, PPPERR_CONNECT. The phase change generally is as follows, PHASE_NETWORK PHASE_ESTABLISH PHASE_DISCONNECT PHASE_D

Re: [lwip-users] PPP gives the IP, Gateway and netmask as follows, I cannot ping...

2018-05-23 Thread Sergio R. Caprile
Looks like you've got yourself a lot to read before you can actually do some networking with your hardware. Good luck. I suggest you start here: https://en.wikipedia.org/wiki/Point-to-Point_Protocol Then, small pieces of advice: - your device is a host in a network that does not belong to you. You

Re: [lwip-users] PPP gives the IP, Gateway and netmask as follows, I cannot ping...

2018-05-22 Thread sarp
Sir, thank you for reply, In my code, firstly I use AT commands to activate ICMP, APN and connect. (I also activated ICMP on LWIP via STM32CubeMX) Until I come to the step of creating PPPoS, I can set the static IP over AT commands and ping the IP. However, when I create and connect PPPoS on LwIP,

Re: [lwip-users] PPP gives the IP, Gateway and netmask as follows, I cannot ping...

2018-05-22 Thread Sergio R. Caprile
Please stay in one thread. What is that you cannot ping ? What are you trying to do ? Where are "you" ? What is your scenario ? (device, computer, where ?) I seem to gather that your lwIP device is behind a GSM module, in Istambul, Turkey, connecting to some operator, Turkcell/Trabzon, that gives

[lwip-users] PPP gives the IP, Gateway and netmask as follows, I cannot ping...

2018-05-22 Thread sarp
I cannot ping the system and netmask makes me feel awkward, do you know any reason? How should I route? ourIPaddr = 5.26.61.173 hisIPaddr = 5.26.61.173 netmask = 255.255.255.255 -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html ___ lwip-

Re: [lwip-users] PPP CHAT failed

2018-04-12 Thread vinimac
Sylvain Rochet wrote > As well, it seems your UART tx routine does not work properly, there are > way too much LCP retries, as if the remote end never get most packets. I was thinking about what you said and makes sense. These are the LCP ConfReq sent by Lwip and the possible replies from PPP ser

Re: [lwip-users] PPP CHAT failed

2018-04-12 Thread vinimac
Sylvain Rochet wrote > It looks like there is an issue in your low level UART driver, there are > quite a lot of dropped frames due to bad FCS/ACCM drop, it can happen of > course from time to time, very unlikely though for a given try, and > never that much ! > > As well, it seems your UART tx

Re: [lwip-users] PPP CHAT failed

2018-04-12 Thread Sylvain Rochet
Hi, On Wed, Apr 11, 2018 at 06:23:47PM -0700, vinimac wrote: > Hi, > > I am using Lwip 2.0.3+FreeRTOS 10 and PPPoS with CHAP MD5 authentication. > The PPP negociation proceeds until stop in CHAP Challenge/CHAP Response. I > am using the same name/secret on Linux and works! > > Log attached. > p

[lwip-users] PPP CHAT failed

2018-04-11 Thread vinimac
Hi, I am using Lwip 2.0.3+FreeRTOS 10 and PPPoS with CHAP MD5 authentication. The PPP negociation proceeds until stop in CHAP Challenge/CHAP Response. I am using the same name/secret on Linux and works! Log attached. ppp.log -- Sent from: h

Re: [lwip-users] ppp: What is the meaning of getting PPPERR_CONNECT in link_status_cb

2017-03-15 Thread Axel Lin
2017-03-14 23:08 GMT+08:00 Sylvain Rochet : > Hi Axel, > > On Tue, Mar 14, 2017 at 10:22:58PM +0800, Axel Lin wrote: >> Hi, >> Now I tried some different SIM cards on my device. >> One of the SIM card always fails and I got PPPERR_CONNECT. >> I double checked my code and settings but still don't fi

Re: [lwip-users] ppp: What is the meaning of getting PPPERR_CONNECT in link_status_cb

2017-03-14 Thread Sylvain Rochet
Hi Axel, On Tue, Mar 14, 2017 at 10:22:58PM +0800, Axel Lin wrote: > Hi, > Now I tried some different SIM cards on my device. > One of the SIM card always fails and I got PPPERR_CONNECT. > I double checked my code and settings but still don't figure out which > part is wrong. > (It works if using

Re: [lwip-users] ppp: What is the meaning of getting PPPERR_CONNECT inlink_status_cb

2017-03-14 Thread contact
: Axel Lin Sent: Tuesday, March 14, 2017 7:53 PM To: Mailing list for lwIP users Subject: [lwip-users] ppp: What is the meaning of getting PPPERR_CONNECT inlink_status_cb Hi, Now I tried some different SIM cards on my device. One of the SIM card always fails and I got PPPERR_CONNECT. I double

[lwip-users] ppp: What is the meaning of getting PPPERR_CONNECT in link_status_cb

2017-03-14 Thread Axel Lin
Hi, Now I tried some different SIM cards on my device. One of the SIM card always fails and I got PPPERR_CONNECT. I double checked my code and settings but still don't figure out which part is wrong. (It works if using other SIM cards.) Now I'm not sure which part needs to be checked. Appreciate fo

Re: [lwip-users] PPP MPPE "Optional" Support

2016-08-12 Thread Greg Smith
Hi, Sylvain. > -Original Message- > From: lwip-users > On Behalf Of Sylvain Rochet > Sent: Thursday, 11 August 2016 19:05 > On Thu, Aug 11, 2016 at 12:48:19AM +, Greg Smith wrote: > > > > I have a follow-on question. Below I said I was able to connect with > > MSCHAPv2 or no authentic

Re: [lwip-users] PPP MPPE "Optional" Support

2016-08-12 Thread Greg Smith
Hi, Sylvain. Thank you for all the follow-up documentation. I definitely agree that using the *_ANY option allows for downgrade attacks and makes security weak/non-existent. But that's the trouble with having to support legacy while also trying to push ahead, isn't it? > It was enough for wha

Re: [lwip-users] PPP MPPE "Optional" Support

2016-08-12 Thread Greg Smith
> -Original Message- > From: lwip-users > On Behalf Of Sylvain Rochet > Sent: Thursday, 11 August 2016 18:34 > On Wed, Aug 10, 2016 at 07:49:03PM -0400, Patrick Klos wrote: > > > > but if I remember correctly, the sequence of PPP negotiations is LCP > > (which negotiates if/which authentica

Re: [lwip-users] PPP MPPE "Optional" Support

2016-08-11 Thread Sylvain Rochet
Hi Greg, On Thu, Aug 11, 2016 at 12:48:19AM +, Greg Smith wrote: > > I have a follow-on question. Below I said I was able to connect with > MSCHAPv2 or no authentication. I think I was actually not > authenticating in either case. So... Is there a way to have PPP try > authentication f

Re: [lwip-users] PPP MPPE "Optional" Support

2016-08-11 Thread Sylvain Rochet
Hi Patrick, On Wed, Aug 10, 2016 at 07:49:03PM -0400, Patrick Klos wrote: > > It's been a long time since I was a PPP expert, Well, from here you know more than me about PPP even if I'm maintaining the lwIP PPP stack for over 4 years now. So don't worry :p By the way, thank you very much for

Re: [lwip-users] PPP MPPE "Optional" Support

2016-08-11 Thread Sylvain Rochet
Hi Greg, On Wed, Aug 10, 2016 at 11:30:14PM +, Greg Smith wrote: > Hello. > > I have some devices in the field that have all PPP authentication > turned off for PPP. Now that lwIP supports MSCHAPv2 and MPPE (in the > 2.0.0 betas), I'd like to enable those features on my devices to > encry

Re: [lwip-users] PPP MPPE "Optional" Support

2016-08-10 Thread Patrick Klos
On 8/10/2016 7:30 PM, Greg Smith wrote: Hello. I have some devices in the field that have all PPP authentication turned off for PPP. Now that lwIP supports MSCHAPv2 and MPPE (in the 2.0.0 betas), I'd like to enable those features on my devices to encrypt the traffic. But I also need to supp

Re: [lwip-users] PPP MPPE "Optional" Support

2016-08-10 Thread Greg Smith
I have a follow-on question. Below I said I was able to connect with MSCHAPv2 or no authentication. I think I was actually not authenticating in either case. So... Is there a way to have PPP try authentication first before giving up and trying no authentication? (This may be a violation of

[lwip-users] PPP MPPE "Optional" Support

2016-08-10 Thread Greg Smith
Hello. I have some devices in the field that have all PPP authentication turned off for PPP. Now that lwIP supports MSCHAPv2 and MPPE (in the 2.0.0 betas), I'd like to enable those features on my devices to encrypt the traffic. But I also need to support older units that are running older lwIP

Re: [lwip-users] PPP as Server Disconnect/Reconnect Problem Under 2.0.0 Beta1

2016-06-19 Thread Sylvain Rochet
Hi Greg, On Mon, May 23, 2016 at 07:09:33PM +, Greg Smith wrote: > Hi, Simon. > > Server was definitely not supported in 1.4.1. But it seems to be > working pretty well in 2.0.0 Beta1. I am interested in Sylvain's > feedback on this, though. Yup, "server" mode is supported for quite a whi

Re: [lwip-users] PPP as Server Disconnect/Reconnect Problem Under 2.0.0 Beta1

2016-05-23 Thread Greg Smith
), as opposed to pppapi_connect(). It pays to read carefully.) -- G From: lwip-users [mailto:lwip-users-bounces+gsmith=hennypenny@nongnu.org] On Behalf Of goldsi...@gmx.de Sent: Monday, 23 May 2016 15:42 To: Mailing list for lwIP users Subject: Re: [lwip-users] PPP as Server Disconnect/Reco

Re: [lwip-users] PPP as Server Disconnect/Reconnect Problem Under 2.0.0 Beta1

2016-05-23 Thread goldsi...@gmx.de
Greg Smith wrote: Additionally, and this is the important part, I want to resume listening for a new connection. So I call pppapi_listen() again at the end of my link status callback function (which happens to look /a lot/ like Sylvain's example in ppp.txt :-) ). Coming back to the original

Re: [lwip-users] PPP as Server Disconnect/Reconnect Problem Under 2.0.0 Beta1

2016-05-23 Thread Greg Smith
iling list for lwIP users Subject: Re: [lwip-users] PPP as Server Disconnect/Reconnect Problem Under 2.0.0 Beta1 Greg Smith wrote: I am running my target in PPP(oS) Server Mode with lwIP version 2.0.0 Beta1. Ehrm, is server mode supported by now? I thought we only supported client mode... Sy

Re: [lwip-users] PPP as Server Disconnect/Reconnect Problem Under 2.0.0 Beta1

2016-05-23 Thread goldsi...@gmx.de
Greg Smith wrote: I am running my target in PPP(oS) Server Mode with lwIP version 2.0.0 Beta1. Ehrm, is server mode supported by now? I thought we only supported client mode... Sylvain should know... Simon ___ lwip-users mailing list lwip-users@non

[lwip-users] PPP as Server Disconnect/Reconnect Problem Under 2.0.0 Beta1

2016-05-18 Thread Greg Smith
Hi, all. I am running my target in PPP(oS) Server Mode with lwIP version 2.0.0 Beta1. When the other peer disconnects (by sending an LCP TermReq packet), an LCP TermAck is sent which allows the peer to disconnect gracefully. However, instead of then immediately closing the connection, lwIP wai

Re: [lwip-users] PPP [was: Netifs routing]

2016-03-09 Thread Sylvain Rochet
Hi Norberto, On Wed, Mar 09, 2016 at 04:38:48PM -0300, Norberto R. de Goes Jr. wrote: > 2016-03-09 16:12 GMT-03:00 Sylvain Rochet : > > > > Oh, and while we are at it, PPP routing (or any other point to point > > protocol such as SLIP) to its /32 peer address was fixed in commit > > 8b2c73de4e ("

Re: [lwip-users] PPP [was: Netifs routing]

2016-03-09 Thread Norberto R. de Goes Jr.
Hi Sylvain. I am using an older version (hash 409d7a99f95240e9188118d423dc88de5bf0a565). I will to update my repo as soon as possible and make the tests again. Thanks again! Norberto 2016-03-09 16:12 GMT-03:00 Sylvain Rochet : > Hi, > > On Wed, Mar 09, 2016 at 08:01:59PM +0100, Sylvain Roc

Re: [lwip-users] PPP [was: Netifs routing]

2016-03-09 Thread Sylvain Rochet
Hi, On Wed, Mar 09, 2016 at 08:01:59PM +0100, Sylvain Rochet wrote: > On Wed, Mar 09, 2016 at 03:28:32PM -0300, Norberto R. de Goes Jr. wrote: > > > > I would like to understand what can be happening in my setup (attached > > figure). I have 03 VM´s (all with SO-Linux), just one with echo-server

Re: [lwip-users] PPP [was: Netifs routing]

2016-03-09 Thread Sylvain Rochet
Hi Norberto, On Wed, Mar 09, 2016 at 03:28:32PM -0300, Norberto R. de Goes Jr. wrote: > Hi, how are you? > > I would like to understand what can be happening in my setup (attached > figure). I have 03 VM´s (all with SO-Linux), just one with echo-server > application, the others with echo-client a

[lwip-users] PPP [was: Netifs routing]

2016-03-09 Thread Norberto R. de Goes Jr.
Hi, how are you? I would like to understand what can be happening in my setup (attached figure). I have 03 VM´s (all with SO-Linux), just one with echo-server application, the others with echo-client app. "VM-lwip": - eth0 and tty0 (pyshical netwoking and serial interfaces) - running a serv

Re: [lwip-users] PPP - TCP

2016-01-25 Thread Sylvain Rochet
Hi Norberto, On Mon, Jan 25, 2016 at 01:25:17PM -0200, Norberto R. de Goes Jr. wrote: > Hi Sylvain. > > I had problem with the patch file (git use). Then I fetch/rebase only my > lwip git-repo today (hash = 4beacc4ca0b2dd166dd50b1b8614f87fe0b67516), ok? Yes, it's almost the same thing, I took t

Re: [lwip-users] PPP - TCP

2016-01-25 Thread Norberto R. de Goes Jr.
Hi Sylvain. I had problem with the patch file (git use). Then I fetch/rebase only my lwip git-repo today (hash = 4beacc4ca0b2dd166dd50b1b8614f87fe0b67516), ok? The uptdated lwip code works fine here (VJ_SUPPORT=1)! The question is about the "noccp" parameter in pppd command line (VM#1, no lwip s

Re: [lwip-users] PPP - TCP

2016-01-23 Thread Sylvain Rochet
Hi Norberto, On Fri, Jan 22, 2016 at 02:41:53PM +0100, Sylvain Rochet wrote: > Hi Norberto, > > On Fri, Jan 22, 2016 at 10:00:44AM -0200, Norberto R. de Goes Jr. wrote: > > Great Sylvain! > > With VJ_SUPPORT=0 the test works fine. > > > > The problem is solved. Your help was fundamental.:-)

Re: [lwip-users] PPP - TCP

2016-01-22 Thread Sylvain Rochet
Hi Norberto, On Fri, Jan 22, 2016 at 10:00:44AM -0200, Norberto R. de Goes Jr. wrote: > Great Sylvain! > With VJ_SUPPORT=0 the test works fine. > > The problem is solved. Your help was fundamental.:-) Well, not really, we know the issue is probably about VJ support, but that's all we know,

Re: [lwip-users] PPP - TCP

2016-01-22 Thread Norberto R. de Goes Jr.
Great Sylvain! With VJ_SUPPORT=0 the test works fine. The problem is solved. Your help was fundamental.:-) Thank you very much! Norberto 2016-01-22 9:35 GMT-02:00 Sylvain Rochet : > Hi Norberto, > > On Fri, Jan 22, 2016 at 08:59:43AM -0200, Norberto R. de Goes Jr. wrote: > > Hi Syilvain. >

Re: [lwip-users] PPP - TCP

2016-01-22 Thread Sylvain Rochet
Hi Norberto, On Fri, Jan 22, 2016 at 08:59:43AM -0200, Norberto R. de Goes Jr. wrote: > Hi Syilvain. > Sorry but my result is different... Please see my screen outputs below: Humm, let's check something, could you try without VJ compression enabled ? novj option in pppd or VJ_SUPPORT=0 in lwIP.

Re: [lwip-users] PPP - TCP

2016-01-22 Thread Norberto R. de Goes Jr.
Hi Syilvain. Sorry but my result is different... Please see my screen outputs below: === echo client (original) : = === ... cpqd@nrgj-Ub32:/media/sf_CompartilhamentoVir

Re: [lwip-users] PPP - TCP

2016-01-21 Thread Sylvain Rochet
Hi Norberto, On Thu, Jan 21, 2016 at 12:07:08PM -0200, Norberto R. de Goes Jr. wrote: > Hi Sylvain, all rigth? I am here again... > > Sorry, but the problem continues. Please but I have a suspicion. First I > explain you the status. > > 1) My setup is very simillar to your. I have two VM´s (Ubun

Re: [lwip-users] PPP - TCP

2016-01-21 Thread Norberto R. de Goes Jr.
Hi Sylvain, all rigth? I am here again... Sorry, but the problem continues. Please but I have a suspicion. First I explain you the status. 1) My setup is very simillar to your. I have two VM´s (Ubuntu) in a Win-7 host. Serial using the "Host pipe" VirtualBox method. 2) Today (jan/21/2016), I upd

Re: [lwip-users] PPP - TCP

2016-01-20 Thread Sylvain Rochet
Hi Norberto, On Mon, Jan 18, 2016 at 01:01:12PM -0200, Norberto R. de Goes Jr. wrote: > > I would like remember you the code used to reproduce the PPP/TCP error is > practically the same of the lwip git-repos (lwip e contrib), last Friday > (jan/15/2016) version, only the "simhost.c" and "lwipopt

Re: [lwip-users] PPP - TCP

2016-01-18 Thread Norberto R. de Goes Jr.
Hi Sylvain: I had already used the pppos_input_tcpip with no success. Now, after your last email, I tried again and the problem is the same: "... while(1) { sizeRead = sio_read(ppp->ppp_sio, buffer, 1000); if (sizeRead > 0) { pppos_input_tcpip(ppp->ppp, buffer, sizeRead);

Re: [lwip-users] PPP - TCP

2016-01-18 Thread Sylvain Rochet
Hi Norberto, On Mon, Jan 18, 2016 at 08:14:17AM -0200, Norberto R. de Goes Jr. wrote: > Hi Sylvain. > > I changed the "simhost.c" file to use the pppos_input_sys function > (attached full file) conforming your orientation. Well, I mislead you, sorry, you have to use pppos_input_tcpip, not pppos

Re: [lwip-users] PPP - TCP

2016-01-18 Thread Norberto R. de Goes Jr.
Hi Sylvain. I changed the "simhost.c" file to use the pppos_input_sys function (attached full file) conforming your orientation. "... while(1) { sizeRead = sio_read(ppp->ppp_sio, buffer, 1000); if (sizeRead > 0) { /* struct pbuf *pBuffer = pbuf_alloc(PBUF_LINK, sizeRead, PBU

Re: [lwip-users] PPP - TCP

2016-01-16 Thread Sylvain Rochet
Hi Norberto, On Fri, Jan 15, 2016 at 03:35:06PM -0200, Norberto R. de Goes Jr. wrote: > Hi Sylvain. > > How I told you, I am facing problems with TCP-PPP in lwip scenario. > Then I decided use just a raw lwip code to reproduce the problem and, if it > is possible, could you use it to reproduce in

Re: [lwip-users] PPP - TCP

2016-01-15 Thread Norberto R. de Goes Jr.
Hi Sylvain. How I told you, I am facing problems with TCP-PPP in lwip scenario. Then I decided use just a raw lwip code to reproduce the problem and, if it is possible, could you use it to reproduce in your environment. I fetched my git repositoy today (15/jan). Hashs: - lwip: e03

Re: [lwip-users] PPP - TCP

2016-01-13 Thread Norberto R. de Goes Jr.
Hi Sylvain, how are you? Please, do you have any suggestion about my PPP-TCP problem reported? Thanks. Norberto 2016-01-08 7:53 GMT-02:00 Norberto R. de Goes Jr. : > Hi Sylvain. I found the lwip HEAD in use: >409d7a99f95240e9188118d423dc88de5bf0a565 > > Thanks. > > > 2016-01-06 9:45 GM

Re: [lwip-users] PPP - TCP

2016-01-08 Thread Norberto R. de Goes Jr.
Hi Sylvain. I found the lwip HEAD in use: 409d7a99f95240e9188118d423dc88de5bf0a565 Thanks. 2016-01-06 9:45 GMT-02:00 Norberto R. de Goes Jr. : > Hi Sylvain! Thanks for the prompt reply, much appreciated. > > The version in use is HEAD - july/2015. > You asked about incoming bytestream le

Re: [lwip-users] PPP - TCP

2016-01-06 Thread Norberto R. de Goes Jr.
Hi Sylvain! Thanks for the prompt reply, much appreciated. The version in use is HEAD - july/2015. You asked about incoming bytestream level check. But I understand that the exception is happening at output level, in packets generated by the lwip core. Am I right? Remembering that the UDP protoco

Re: [lwip-users] PPP - TCP

2016-01-05 Thread Sylvain Rochet
Hi Norberto, On Tue, Jan 05, 2016 at 11:26:35AM -0200, Norberto R. de Goes Jr. wrote: > How are you doing? > > I am facing a problem in the use PPP-lwip. > I have a application (app) using lwip stack. The app implements an echo > message server (messages replier). > The connection is through the

[lwip-users] PPP - TCP

2016-01-05 Thread Norberto R. de Goes Jr.
How are you doing? I am facing a problem in the use PPP-lwip. I have a application (app) using lwip stack. The app implements an echo message server (messages replier). The connection is through the PPP protocol (serial interface) no ethernet conection. When UDP messages are exchanged all is worki

Re: [lwip-users] PPP server problem

2015-05-05 Thread Sylvain Rochet
Hello Charles, On Tue, May 05, 2015 at 11:58:42AM +, l...@moog.com wrote: > Yes, it works now. Great! I actually didn't know that using the wrong input path was so bad. I never tried myself. Sylvain signature.asc Description: Digital signature _

Re: [lwip-users] PPP server problem

2015-05-05 Thread LMao
Yes, it works now. Charles -Original Message- From: lwip-users-bounces+cmao=moog@nongnu.org [mailto:lwip-users-bounces+cmao=moog@nongnu.org] On Behalf Of Sylvain Rochet Sent: Tuesday, May 05, 2015 8:52 AM To: Mailing list for lwIP users Subject: Re: [lwip-users] PPP server

Re: [lwip-users] PPP server problem

2015-05-05 Thread Sylvain Rochet
Hello Charles, On Tue, May 05, 2015 at 11:45:41AM +, l...@moog.com wrote: > Hi Sylvain, > > Thanks for your help. Yes, you're right. I was using the wrong PPPoS > input path. I should have used pppos_input_tcpip() instead of > pppos_input() in my circumstance. Does it work now ? Sylvain

Re: [lwip-users] PPP server problem

2015-05-05 Thread LMao
users-bounces+cmao=moog@nongnu.org] On Behalf Of Sylvain Rochet Sent: Monday, May 04, 2015 4:41 PM To: Mailing list for lwIP users Subject: Re: [lwip-users] PPP server problem Hi, On Mon, May 04, 2015 at 07:31:52PM +, l...@moog.com wrote: > Hi Sylvain, > > NO_SYS = 0. I am using

Re: [lwip-users] PPP server problem

2015-05-04 Thread Sylvain Rochet
Hi, On Mon, May 04, 2015 at 07:31:52PM +, l...@moog.com wrote: > Hi Sylvain, > > NO_SYS = 0. I am using freeRTOS. You didn't answer fully, which PPPoS input path are you using ? There are 3 of them and only one of them is right for NO_SYS = 0. > I increased both main lwIP thread and my

Re: [lwip-users] PPP server problem

2015-05-04 Thread LMao
[mailto:lwip-users-bounces+cmao=moog@nongnu.org] On Behalf Of Sylvain Rochet Sent: Monday, May 04, 2015 3:48 PM To: Mailing list for lwIP users Subject: Re: [lwip-users] PPP server problem Hi Charles, On Mon, May 04, 2015 at 06:16:54PM +, l...@moog.com wrote: > Hi Sylvain, > > I try t

Re: [lwip-users] PPP server problem

2015-05-04 Thread Sylvain Rochet
Hi Charles, On Mon, May 04, 2015 at 06:16:54PM +, l...@moog.com wrote: > Hi Sylvain, > > I try to use PPP server on AT91SAM7x chip and it failed authentication > (both sides using PAP). Here's the debug message from a Linux (PPP > client) followed by lwIP PPP debug message. Interesting thi

[lwip-users] PPP server problem

2015-05-04 Thread LMao
Hi Sylvain, I try to use PPP server on AT91SAM7x chip and it failed authentication (both sides using PAP). Here's the debug message from a Linux (PPP client) followed by lwIP PPP debug message. Interesting thing is the PPP authentication failure also causes the whole lwIP stack stop working. I

Re: [lwip-users] ppp over serial works with gsm modem sim900d but not working with sim5216j using same controller harware

2015-04-02 Thread Sylvain Rochet
Hello, On Wed, Apr 01, 2015 at 06:32:43AM -0700, rohanm wrote: > thank you for ur quick response. > pfa. LOG_2.log Well, proper quoting and trimming, and avoiding top posting if possible and clear posting (what we have here, I didn't know it

Re: [lwip-users] PPP no IP address assigned

2015-04-01 Thread Patrick Klos
On 4/1/2015 2:47 AM, Michael Waeber wrote: Hi all I try to integrate PPP with a GPRS modem in our system. lwIP works well for ethernet in our system since 3 years. Since PPP is currently actively developed I've upgraded from 1.4.1 to current Master (16.03.2015). The modem is connected to GPRS,

Re: [lwip-users] PPP no IP address assigned

2015-04-01 Thread Sylvain Rochet
Hello Michael, On Wed, Apr 01, 2015 at 09:56:37PM +0200, Sylvain Rochet wrote: > > It really should retry a few seconds later, could you dig what is > happening in IPCP (ipcp.c/fsm.c) ? > > What do you have for FSM_DEFTIMEOUT in lwipopts.h/opt.h ? To be sure I tested with an input drop filter

Re: [lwip-users] PPP no IP address assigned

2015-04-01 Thread Sylvain Rochet
Hello Michael, On Wed, Apr 01, 2015 at 05:27:41PM +0200, Michael Waeber wrote: > On 01.04.2015 14:02, Sylvain Rochet wrote: > > > > Looks like your lwIP timeouts are not working or you don't have enough > > of them, PPP needs a lot of timeouts, could you check that first ? > > What do you exact

Re: [lwip-users] PPP no IP address assigned

2015-04-01 Thread Michael Waeber
Hello Sylvain On 01.04.2015 14:02, Sylvain Rochet wrote: >>> snip .. > That's a perfect IPCP request ;-) >> After this frame the communication is dead, no answer received, no other >> frame sent. >> >> I've tried using various combinations of >> - No auth, PAP, Chap >> - With/without VJ header com

Re: [lwip-users] ppp over serial works with gsm modem sim900d but not working with sim5216j using same controller harware

2015-04-01 Thread rohanm
thank you for ur quick response. pfa. LOG_2.log this is what i got in the log. sorry for messy log. -- View this message in context: http://lwip.100.n7.nabble.com/ppp-over-serial-works-with-gsm-modem-sim900d-but-not-working-with-sim521

Re: [lwip-users] ppp over serial works with gsm modem sim900d but not working with sim5216j using same controller harware

2015-04-01 Thread Sergio R. Caprile
Looking at your frames, the SIM900 outputs a PPP frame with HDLC address and control bytes, while the SIM5216 does not. I'm by no means a PPP expert, but just looking for PPP in wikipedia shows this: /The Address and Control fields always have the value hex FF (for "all stations") and hex 03 (for

Re: [lwip-users] ppp over serial works with gsm modem sim900d but not working with sim5216j using same controller harware

2015-04-01 Thread Sylvain Rochet
Hello, On Wed, Apr 01, 2015 at 03:18:02AM -0700, rohanm wrote: > hii , > > i have implemented ppp over serial using gsm modem sim900d. and it works > fine.device gets ip address properly. > > but when I replaced GSM modem with sim5216j ,ppp not able to established > connection with sim5216j. > i

Re: [lwip-users] PPP no IP address assigned

2015-04-01 Thread Sylvain Rochet
Hello Michael, On Wed, Apr 01, 2015 at 08:47:03AM +0200, Michael Waeber wrote: > Hi all > > I try to integrate PPP with a GPRS modem in our system. lwIP works well > for ethernet in our system since 3 years. Since PPP is currently > actively developed I've upgraded from 1.4.1 to current Master >

[lwip-users] PPP no IP address assigned

2015-04-01 Thread Michael Waeber
Hi all I try to integrate PPP with a GPRS modem in our system. lwIP works well for ethernet in our system since 3 years. Since PPP is currently actively developed I've upgraded from 1.4.1 to current Master (16.03.2015). The modem is connected to GPRS, then the PPP session is started. The communic

[lwip-users] ppp over serial works with gsm modem sim900d but not working with sim5216j using same controller harware

2015-04-01 Thread rohanm
hii , i have implemented ppp over serial using gsm modem sim900d. and it works fine.device gets ip address properly. but when I replaced GSM modem with sim5216j ,ppp not able to established connection with sim5216j. i am using same code and hardware which used for sim900d implementation. so i ha

Re: [lwip-users] ppp over serial using gsm.once GSM link is down what will i do??

2015-03-19 Thread Hari k
hi rohan, once you established ppp and if any failures in gsm network then you have close the ppp connection and call the pppopen when data call is activated for this tcpip_init() not required to reinitialize On Tue, Mar 17, 2015 at 8:20 PM, rohanm wrote: > hii, > > i am using ppp ov

Re: [lwip-users] ppp over serial using gsm.once GSM link is down what Should i do??

2015-03-19 Thread rohanm
i think i need to restart the whole system... but reset whole system is not good thing to do while running multiple threads in our system. is is there any way to reconnect GPRS link without reset.. any suggestion would be appreciated...thanks in advance. -- View this message in context: http:/

[lwip-users] ppp over serial using gsm.once GSM link is down what will i do??

2015-03-17 Thread rohanm
hii, i am using ppp over serial using gsm. i have question ,once gsm link is down because of some reasons then i need to reinitialize tcpip_init() function and pppOverSerialOpen(fd,cb,ls) function or just need to reinit gsm function to link up gsm connection. or any thing else that i can do..pls

  1   2   3   4   >