Hi Sylvain,

NO_SYS = 0. I am using freeRTOS. I increased both main lwIP thread and my PPP 
application thread stack size from 200 to 500 and problem not solved. The 
message after enabling PRINTPKT_SUPPORT is as following: 

ppp phase changed[1]: phase=0..
ppp_listen[1]..
ppp phase changed[1]: phase=1..
pppos_listen: unit 1: listening..
ppp_start[1]..
pppos_send_config[1]: in_accm=FF FF FF FF..
ppp_send_config[1]..
pppos_recv_config[1]: in_accm=FF FF FF FF..
ppp_recv_config[1]..
ppp_start[1]: finished..
pppos_input[1]: got 1 bytes..
pppos_input[1]: got 9 bytes..
pppos_input[1]: got 8 bytes..
pppos_input[1]: got 9 bytes..
pppos_input[1]: got 5 bytes..
pppos_input[1]: got 3 bytes..
pppos_input[1]: got 1 bytes..
pppos_input[1]: got 9 bytes..
pppos_input[1]: got 1 bytes..
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2ca53d87> <pcomp> <accomp>]..
ppp: auth protocols: PAP=1 CHAP=0 CHAP_MD5=0 CHAP_MS=0 CHAP_MS2=0 EAP=0..
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0xf272b0e4> <pcomp> 
<accomp>]..
pppos_write[1]: len=28..
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x2ca53d87> <pcomp> <accomp>]..
pppos_write[1]: len=24..
pppos_input[1]: got 20 bytes..
pppos_input[1]: got 20 bytes..
pppos_input[1]: got 20 bytes..
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <auth pap> <magic 0xf272b0e4> <pcomp> 
<accomp>]..
pppos_send_config[1]: in_accm=0 0 0 0..
ppp_send_config[1]..
pppos_recv_config[1]: in_accm=0 0 0 0..
ppp_recv_config[1]..
pppos_write[1]: len=12..
ppp phase changed[1]: phase=5..
pppos_input[1]: got 20 bytes..
pppos_write[1]: len=12..
pppos_input[1]: got 16 by

Thanks,

Charles





-----Original Message-----
From: [email protected] 
[mailto:[email protected]] 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 +0000, [email protected] 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 thing is the 
> PPP authentication failure also causes the whole lwIP stack stop 
> working. I continuously PING my Ethernet interface while I start the 
> PPP client on Linux, after a while, the PING stopped and never come 
> back.

Looks like something is wrong in your SIO port… or you don't have enough 
stack ?   PPP stack requirement is pretty huge, but for PAP it should be 
rather low.

Which PPPoS input method are you using ?  NO_SYS ?



> Could you take a look at those messages and tell me what could be 
> wrong?

PPP_SERVER support if fairly new, but humm, it should work.


> (...)
> ppp_send_config[1]..
> pppos_recv_config[1]: in_accm=0 0 0 0..
> (...)

Above anything else, please enable PRINTPKT_SUPPORT in lwIP.


Sylvain
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to