lwip-users
[Top][All Lists]
Advanced

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

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


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

Ok, after some debug time I found that no authetnication option was enabled in 
lwIP's ppp.
So I added

#define PAP_SUPPORT                       1

to my lwipopts.h file and changed

pppapi_set_auth(m_pppppcb, PPPAUTHTYPE_ANY, "", "");

to

pppapi_set_auth(m_pppppcb, PPPAUTHTYPE_PAP, "", "");

Now the ppp session works slightly better, but have still no address back.
PAP authentication succeeded, but remote party still goes to disconnect session 
without
any reasonable cause. Other definitions in lwipopts.h are:

#define PPP_SUPPORT                       1
#define LWIP_PPP_API                      1
#define PPPOS_SUPPORT                     1
#define PPP_DEBUG                         LWIP_DBG_ON
#define PRINTPKT_SUPPORT                  1
#define PAP_SUPPORT                       1
#define PPP_THREAD_STACKSIZE              TCPIP_THREAD_STACKSIZE
#define PPP_THREAD_PRIO                   (TCPIP_THREAD_PRIO + 1)
#define FSM_DEFMAXNAKLOOPS                100
#define FSM_DEFTIMEOUT                    2       /* Timeout time in seconds, 
default = 6 */
#define FSM_DEFMAXCONFREQS                60      /* Maximum Configure-Request 
transmissions, default = 10 */

What can be the problem?

Thanks in advance
Stefano

Here is actual log:

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

ppp phase changed[4]: phase=0
ppp_connect[4]: holdoff=0
ppp phase changed[4]: phase=1
pppos_connect: unit 4: connecting
ppp_start[4]
pppos_send_config[4]: in_accm=FF FF FF FF
ppp_send_config[4]
pppos_recv_config[4]: in_accm=FF FF FF FF
ppp_recv_config[4]
ppp: auth protocols: PAP=1
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x167bbb3d> <pcomp> <accomp>]
pppos_write[4]: len=24
ppp_start[4]: finished
pppos_input[4]: got 17 bytes
pppos_input[4]: Dropping ACCM char <13>
pppos_input[4]: Dropping ACCM char <10>
pppos_input[4]: Dropping ACCM char <13>
pppos_input[4]: Dropping ACCM char <10>
pppos_input[4]: got 76 bytes
rcvd [LCP ConfReq id=0x3 <asyncmap 0xa0000> <pcomp> <accomp> <magic 0x2c9c80af> 
<auth 0xc223 05>]
sent [LCP ConfNak id=0x3 <auth pap>]
pppos_write[4]: len=12
rcvd [LCP ConfNak id=0x1 <asyncmap 0xa0000>]
sent [LCP ConfReq id=0x2 <asyncmap 0xa0000> <magic 0x167bbb3d> <pcomp> <accomp>]
pppos_write[4]: len=24
pppos_input[4]: got 46 bytes
rcvd [LCP ConfAck id=0x2 <asyncmap 0xa0000> <magic 0x167bbb3d> <pcomp> <accomp>]
pppos_input[4]: got 53 bytes
rcvd [LCP ConfReq id=0x3 <asyncmap 0xa0000> <pcomp> <accomp> <magic 0x2c9c80af> 
<auth 0xc223 05>]
sent [LCP ConfNak id=0x3 <auth pap>]
pppos_write[4]: len=12
pppos_input[4]: got 52 bytes
rcvd [LCP ConfReq id=0x5 <asyncmap 0xa0000> <pcomp> <accomp> <magic 0x2c9c80af> 
<auth pap>]
sent [LCP ConfAck id=0x5 <asyncmap 0xa0000> <pcomp> <accomp> <magic 0x2c9c80af> 
<auth pap>]
pppos_write[4]: len=28
netif_set_mtu[4]: mtu=1500
pppos_send_config[4]: in_accm=0 0 A 0
ppp_send_config[4]
pppos_recv_config[4]: in_accm=0 0 A 0
ppp_recv_config[4]
ppp phase changed[4]: phase=5
sent [PAP AuthReq id=0x1 user="" password=""]
pppos_write[4]: len=10
pppos_input[4]: got 52 bytes
rcvd [LCP ConfReq id=0x5 <asyncmap 0xa0000> <pcomp> <accomp> <magic 0x2c9c80af> 
<auth pap>]
ppp phase changed[4]: phase=4
pppos_send_config[4]: in_accm=FF FF FF FF
ppp_send_config[4]
pppos_recv_config[4]: in_accm=0 0 A 0
ppp_recv_config[4]
ppp: auth protocols: PAP=1
sent [LCP ConfReq id=0x3 <asyncmap 0x0> <magic 0x32dac286> <pcomp> <accomp>]
pppos_write[4]: len=24
sent [LCP ConfAck id=0x5 <asyncmap 0xa0000> <pcomp> <accomp> <magic 0x2c9c80af> 
<auth pap>]
pppos_write[4]: len=28
pppos_input[4]: got 29 bytes
rcvd [LCP ConfNak id=0x3 <asyncmap 0xa0000>]
sent [LCP ConfReq id=0x4 <asyncmap 0xa0000> <magic 0x32dac286> <pcomp> <accomp>]
pppos_write[4]: len=24
sent [LCP ConfReq id=0x4 <asyncmap 0xa0000> <magic 0x32dac286> <pcomp> <accomp>]
pppos_write[4]: len=24
pppos_input[4]: got 45 bytes
rcvd [LCP ConfAck id=0x4 <asyncmap 0xa0000> <magic 0x32dac286> <pcomp> <accomp>]
netif_set_mtu[4]: mtu=1500
pppos_send_config[4]: in_accm=0 0 A 0
ppp_send_config[4]
pppos_recv_config[4]: in_accm=0 0 A 0
ppp_recv_config[4]
ppp phase changed[4]: phase=5
sent [PAP AuthReq id=0x2 user="" password=""]
pppos_write[4]: len=10
sent [PAP AuthReq id=0x3 user="" password=""]
pppos_write[4]: len=10
pppos_input[4]: got 11 bytes
rcvd [PAP AuthAck id=0x3 ""]
PAP authentication succeeded
ppp phase changed[4]: phase=7
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>]
pppos_write[4]: len=20
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>]
pppos_write[4]: len=20
pppos_input[4]: got 17 bytes
rcvd [LCP TermReq id=0x5]
LCP terminated by peer
ppp phase changed[4]: phase=4
pppos_send_config[4]: in_accm=FF FF FF FF
ppp_send_config[4]
pppos_recv_config[4]: in_accm=0 0 A 0
ppp_recv_config[4]
sent [LCP TermAck id=0x5]
pppos_write[4]: len=8
ppp phase changed[4]: phase=10
Connection terminated.
ppp phase changed[4]: phase=0
ppp_link_terminated[4]
ppp_end[4]
linkStatusCB pcb = 0x20006F80, errCode = 6, arg = 0x6804A3BC: PPPERR_CONNECT
ppp_link_terminated[4]: finished.
linkStatusCB pcb = 0x20006F80, errCode = 5, arg = 0x6804A3BC: PPPERR_USER
ppp_free[4]

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

-----Messaggio originale-----
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).




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