[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: http://lwip.100.n7.nabble.com/lwip-users-f3.html

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


[lwip-users] Thread safety of socket API

2018-04-11 Thread Sam Kearney
Hi all,

I have a question about the thread-safety of the socket API, specifically with 
regard to recvfrom() and close(). I am using lwIP 2.0.2, ported for FreeRTOS 
and ARM Cortex M4.

I have a thread that reads from a set of UDP sockets using select() and then 
calls recvfrom() on any ready sockets. I had assumed that it would be a safe 
operation to close() one of the sockets from a different thread context without 
worrying about what my receive thread is doing currently, and that if a 
recvfrom() was being called on that socket at the same time, it would simply 
exit with an error.

However, I seem to have triggered an assert failure from within 
netconn_recv_data(). I have a call stack that shows that close() was being 
called from a different thread at the time the assert failure happened.

I can provide more information if necessary, but first I need to verify my 
assumption about thread safety. Do I need to make sure that I'm not calling any 
other socket API functions on the same socket at the same time as I call 
close()?

Thanks,
Sam


___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


Re: [lwip-users] LWIP+PPPos(GPRS)

2018-04-11 Thread vinimac



*I am designing a gateway and on my ATSAME53N20 (Atmel studio 7 IDE) I have
to connect a 3G modem(Quactel UG95) using a serial port. I can communicate
with the modem using AT commands. Now, I would like to use PPPos (PPP over
serial) library from LWIP 2.03 to enter in PPP mode. FreeRTOS has to
implement as this project will be running in a threaded environment.

Hi. This example helped me a lot:  pppos_client_main.c

 
.

It is working very good, but it is not processed through CHAP negotiation. 



--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


[lwip-users] Long chain of netbufs/pbufs

2018-04-11 Thread Adrian Figueroa
Hello!

 

I want to receive a large amount of data and store it in a long chain of
netbufs/pbufs without copying. This works fine with netbuf_chain() after
receiving a new netbuf, but I noticed that the total length of a chain is
limited to the size of u16_t (64k).

 

How do you normally cope with long netbuf chains? A redefinition to 32 bit
lengths would make sense for me, but I do not want to change the Lwip
source. Also, making a wrapper buffer structure with larger counting
variables seems redundant.

 

Kind regards,

Adrian

 



smime.p7s
Description: S/MIME cryptographic signature
___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] TCP Dup ACKs and TCP Window full

2018-04-11 Thread Adrian Figueroa
Thanks, you could have even left it in german :)

 

It works now with an increased pool size. 

 

#define PBUF_POOL_SIZE 1024

 

I was actually getting memory errors now with Lwip 2.0.3, where I was not
getting them with 1.4.1, although the settings were the same. I can only
recommend to use Lwip 2 instead of 1.4.

 

I get occasional Zero Window/Window full, but no packets are dropped
anymore.

 

Thanks again,

Adrian

 

 

Von: lwip-users
 Im Auftrag von
goldsi...@gmx.de
Gesendet: Tuesday, April 10, 2018 10:11 PM
An: Mailing list for lwIP users 
Betreff: Re: [lwip-users] TCP Dup ACKs and TCP Window full

 

On 10.04.2018 22:04, Adrian Figueroa wrote:

Ok, I do not usually take captures, so I did not know I can shorten them. I
will try next time.


You can. Check the options you have in "File" --> "export special
packets..." (translated from my german GUI).

Simon



smime.p7s
Description: S/MIME cryptographic signature
___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users