lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] R: R: Solved: PPP no IP address assigned


From: Bettega Stefano
Subject: [lwip-users] R: R: Solved: PPP no IP address assigned
Date: Mon, 13 Jul 2015 11:53:04 +0200

Hi Sylvain,
I migrated to lwIP from master branch but still have a no connection problem.
LCP negotiation is terminated by remote party, faster than with old ppp code.
It seems that a sent packet force remote to terminate connection.

As stated before I'm with NO_SYS = 0; now I'm calling pppos_input_tcpip from my 
rx thread. ppp is set with
PPPAUTHTYPE_ANY with empty username and password (using Windows modem requires 
no userid and password).
PDP context is correctly activated (I see ppp replies coming back and modem 
doing two fast blink to signal PDP on).

Here is debug log with packet dump.

***********************************************************************************************************************

ppp phase changed[2]: phase=0
ppp_connect[2]: holdoff=0
ppp phase changed[2]: phase=1
pppos_connect: unit 2: connecting
ppp_start[2]
pppos_send_config[2]: in_accm=FF FF FF FF
ppp_send_config[2]
pppos_recv_config[2]: in_accm=FF FF FF FF
ppp_recv_config[2]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb405824a> <pcomp> <accomp>]
pppos_write[2]: len=24
ppp_start[2]: finished
pppos_input[2]: got 33 bytes
pppos_input[2]: Dropping ACCM char <13>
pppos_input[2]: Dropping ACCM char <10>
pppos_input[2]: Dropping ACCM char <13>
pppos_input[2]: Dropping ACCM char <10>
pppos_input[2]: got 60 bytes
rcvd [LCP ConfReq id=0x3 <asyncmap 0xa0000> <pcomp> <accomp> <magic 0xa290e5aa> 
<auth 0xc223 05>]
No auth is possible
sent [LCP ConfRej id=0x3 <auth 0xc223 05>]
pppos_write[2]: len=13
rcvd [LCP ConfNak id=0x1 <asyncmap 0xa0000>]
sent [LCP ConfReq id=0x2 <asyncmap 0xa0000> <magic 0xb405824a> <pcomp> <accomp>]
pppos_write[2]: len=24
pppos_input[2]: got 46 bytes
rcvd [LCP ConfAck id=0x2 <asyncmap 0xa0000> <magic 0xb405824a> <pcomp> <accomp>]
pppos_input[2]: got 53 bytes
rcvd [LCP ConfReq id=0x3 <asyncmap 0xa0000> <pcomp> <accomp> <magic 0xa290e5aa> 
<auth 0xc223 05>]
No auth is possible
sent [LCP ConfRej id=0x3 <auth 0xc223 05>]
pppos_write[2]: len=13
pppos_input[2]: got 51 bytes
rcvd [LCP ConfReq id=0x5 <asyncmap 0xa0000> <pcomp> <accomp> <magic 0xa290e5aa> 
<auth 0xc023>]
No auth is possible
sent [LCP ConfRej id=0x5 <auth 0xc023>]
pppos_write[2]: len=12
sent [LCP ConfReq id=0x2 <asyncmap 0xa0000> <magic 0xb405824a> <pcomp> <accomp>]
pppos_write[2]: len=24
pppos_input[2]: got 46 bytes
rcvd [LCP ConfAck id=0x2 <asyncmap 0xa0000> <magic 0xb405824a> <pcomp> <accomp>]
pppos_input[2]: got 23 bytes
pppos_input[2]: got 28 bytes
rcvd [LCP ConfReq id=0x5 <asyncmap 0xa0000> <pcomp> <accomp> <magic 0xa290e5aa> 
<auth 0xc023>]
No auth is possible
sent [LCP ConfRej id=0x5 <auth 0xc023>]
pppos_write[2]: len=12
pppos_input[2]: got 1 bytes
pppos_input[2]: got 44 bytes
rcvd [LCP ConfReq id=0x7 <asyncmap 0xa0000> <pcomp> <accomp> <magic 0xa290e5aa>]
sent [LCP ConfAck id=0x7 <asyncmap 0xa0000> <pcomp> <accomp> <magic 0xa290e5aa>]
pppos_write[2]: len=24
netif_set_mtu[2]: mtu=1500
pppos_send_config[2]: in_accm=0 0 A 0
ppp_send_config[2]
pppos_recv_config[2]: in_accm=0 0 A 0
ppp_recv_config[2]
ppp phase changed[2]: phase=7
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>]
pppos_write[2]: len=20
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>]
pppos_write[2]: len=20
pppos_input[2]: got 45 bytes
rcvd [LCP ConfReq id=0x7 <asyncmap 0xa0000> <pcomp> <accomp> <magic 0xa290e5aa>]
ppp phase changed[2]: phase=4
pppos_send_config[2]: in_accm=FF FF FF FF
ppp_send_config[2]
pppos_recv_config[2]: in_accm=0 0 A 0
ppp_recv_config[2]
sent [LCP ConfReq id=0x3 <asyncmap 0x0> <magic 0x809684fd> <pcomp> <accomp>]
pppos_write[2]: len=24
sent [LCP ConfAck id=0x7 <asyncmap 0xa0000> <pcomp> <accomp> <magic 0xa290e5aa>]
pppos_write[2]: len=24
sent [LCP ConfReq id=0x3 <asyncmap 0x0> <magic 0x809684fd> <pcomp> <accomp>]
pppos_write[2]: len=24
pppos_input[2]: got 25 bytes
pppos_input[2]: got 4 bytes
rcvd [LCP ConfNak id=0x3 <asyncmap 0xa0000>]
sent [LCP ConfReq id=0x4 <asyncmap 0xa0000> <magic 0x809684fd> <pcomp> <accomp>]
pppos_write[2]: len=24
pppos_input[2]: got 45 bytes
rcvd [LCP ConfReq id=0x7 <asyncmap 0xa0000> <pcomp> <accomp> <magic 0xa290e5aa>]
sent [LCP ConfAck id=0x7 <asyncmap 0xa0000> <pcomp> <accomp> <magic 0xa290e5aa>]
pppos_write[2]: len=24
sent [LCP ConfReq id=0x4 <asyncmap 0xa0000> <magic 0x809684fd> <pcomp> <accomp>]
pppos_write[2]: len=24
pppos_input[2]: got 17 bytes
pppos_input[2]: got 28 bytes
rcvd [LCP ConfAck id=0x4 <asyncmap 0xa0000> <magic 0x809684fd> <pcomp> <accomp>]
netif_set_mtu[2]: mtu=1500
pppos_send_config[2]: in_accm=0 0 A 0
ppp_send_config[2]
pppos_recv_config[2]: in_accm=0 0 A 0
ppp_recv_config[2]
ppp phase changed[2]: phase=7
sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 0.0.0.0>]
pppos_write[2]: len=20
sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 0.0.0.0>]
pppos_write[2]: len=20
pppos_input[2]: got 18 bytes
rcvd [LCP TermReq id=0x7]
LCP terminated by peer
ppp phase changed[2]: phase=4
pppos_send_config[2]: in_accm=FF FF FF FF
ppp_send_config[2]
pppos_recv_config[2]: in_accm=0 0 A 0
ppp_recv_config[2]
sent [LCP TermAck id=0x7]
pppos_write[2]: len=8
ppp phase changed[2]: phase=10
Connection terminated.
ppp phase changed[2]: phase=0
ppp_link_terminated[2]
ppp_end[2]
linkStatusCB pcb = 0x20006F80, errCode = 6, arg = 0x6804A3BC: PPPERR_CONNECT
ppp_link_terminated[2]: finished.
linkStatusCB pcb = 0x20006F80, errCode = 5, arg = 0x6804A3BC: PPPERR_USER
ppp_free[2]

***********************************************************************************************************************


-----Messaggio originale-----
Da: address@hidden [mailto:address@hidden Per conto di Sylvain Rochet
Inviato: venerdì 10 luglio 2015 15:31
A: Mailing list for lwIP users
Oggetto: Re: [lwip-users] R: Solved: PPP no IP address assigned

Hello Stefano,

On Fri, Jul 10, 2015 at 11:19:25AM +0200, Bettega Stefano wrote:
>
> I have the same problem, but working with NO_SYS=0 (ucOS-II), and lwIP 
> 1.4.1 from stable repository branch.
>
> (...)
>
> Am I missing something? Anyone could help?

Please try with master branch first, lwIP 1.4.1 PPP stack is very old
and no one is willing to dig into it anymore.

Sylvain


---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus




reply via email to

[Prev in Thread] Current Thread [Next in Thread]