lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Connecting-problem with PPP


From: lhq8026
Subject: Re: [lwip-users] Connecting-problem with PPP
Date: Thu, 22 Dec 2016 23:00:23 -0800 (PST)

Hi,i encountered a similar problem with you.I found netconn_connect return -5(connection aborted),i want to know why too.Did you resolve it ?


在 2010年7月8日星期四 UTC+8下午9:18:05,Marco写道:
Hello,

I am trying to establish a TCP connection over PPP (serial).

remoteAddr.addr = htonl(0xC1639050);
netErr = netconn_connect(connection, &remoteAddr, 80);
printf("[PPP_OPEN] netErr = %d\n", netErr);

netconn_connect returns with error code -5 -> Connection aborted. How
can this be caused?

I have PPP_DEBUG enabled. Here is the trace:

~ÿ}#À!}!}"} }<}!}$}&@}#}$À#}%}&ï×ù¿}"}&} } } } }'}"}(
lcp_init: xmit_accm=0 0 0 0
pppMain: unit 0: Connecting
pppStartCB: unit 0
ppp_set_xaccm[0]: outACCM=0 0 0 0
ppp_send_config[0]: outACCM=FF FF FF FF
ppp_recv_config[0]: inACCM=0 0 0 0
lcp_lowerup: asyncmap=0 0 0 0
LCP: lowerup state 0 (LS_INITIAL) -> 2 (LS_CLOSED)
auth_reset: 0
lcp_addci: L opt=2 0
lcp_addci: L opt=5 52181044
lcp_addci: opt=7
lcp_addci: opt=8
pppWrite[0]: len=47
fsm_sdata(LCP): Sent code 1,1,20.
LCP: sending Configure-Request, id 1
LCP: open state 2 (LS_CLOSED) -> 6 (LS_REQSENT)
pppInProc[0]: got 63 bytes
pppInput[0]: LCP len=28
fsm_input(LCP):1,3,28
fsm_rconfreq(LCP): Rcvd id 3 state=6 (LS_REQSENT)
lcp_reqci: rcvd MRU 1600 PAP (C023) MAGICNUMBER (EFD7F9BF) ASYNCMAP=0
lcp_reqci:  PCOMPRESSION ACCOMPRESSION
lcp_reqci: returning CONFACK.
pppWrite[0]: len=57
fsm_sdata(LCP): Sent code 2,3,28.
[PPP_INIT] Opening ppp connection
pppInProc[0]: got 14 bytes
pppInProc[0]: got 1 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 1 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 1 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInput[0]: LCP len=20
fsm_input(LCP):2,1,20
fsm_rconfack(LCP): Rcvd id 1 state=8 (LS_ACKSENT)
lcp_acki: Ack
ppp_send_config[0]: outACCM=0 0 0 0
ppp_recv_config[0]: inACCM=0 0 0 0
link_established: 0
upap_lowerup: 0 s=0
IPCP: lowerup state 0 (LS_INITIAL) -> 2 (LS_CLOSED)
upap_authwithpeer: 0 user=none password=none s=1
pppWrite[0]: len=21
pap_sauth: Sent id 1
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 1 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 1 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 1 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 1 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 1 bytes
pppInput[0]: PAP len=39
pap_rauthack: Rcvd id 1 s=3
Remote message: TTP Com PPP - Password Verified OK
auth_withpeer_success: 0 proto=C023
pppWrite[0]: len=29
fsm_sdata(IPCP): Sent code 1,1,22.
IPCP: sending Configure-Request, id 1
IPCP: open state 2 (LS_CLOSED) -> 6 (LS_REQSENT)
pppInProc[0]: got 27 bytes
pppInProc[0]: got 1 bytes
pppInput[0]: IPCP len=22
fsm_input(IPCP):3,1,22
fsm_rconfnakrej(IPCP): Rcvd id 1 state=6 (LS_REQSENT)
local IP address 10.109.150.95
primary DNS address 138.188.101.186
secondary DNS address 138.188.101.189
pppWrite[0]: len=30
fsm_sdata(IPCP): Sent code 1,2,22.
IPCP: sending Configure-Request, id 2
pppInProc[0]: got 16 bytes
pppInput[0]: IPCP len=10
fsm_input(IPCP):1,1,10
fsm_rconfreq(IPCP): Rcvd id 1 state=6 (LS_REQSENT)
ipcp_reqci: ADDR 10.0.0.1
ipcp_reqci: returning Configure-ACK
pppWrite[0]: len=17
fsm_sdata(IPCP): Sent code 2,1,10.
pppInProc[0]: got 25 bytes
pppInProc[0]: got 2 bytes
pppInProc[0]: got 1 bytes
pppInput[0]: IPCP len=22
fsm_input(IPCP):2,2,22
fsm_rconfack(IPCP): Rcvd id 2 state=8 (LS_ACKSENT)
np_up: 0 proto=21
np_up: maxconnect=0 idle_time_limit=0
ipcp: up
sifup: unit 0: linkStatusCB=8000321 errCode=0
pppStateCallback: error code = none
pppStatusCB: PPP link reported connection established.
local  IP address 10.109.150.95
remote IP address 10.0.0.1
primary   DNS address 138.188.101.186
secondary DNS address 138.188.101.189
pppifOutput[0]: proto=0x0021
pppifOutput[0]: proto=0x0021
pppifOutput[0]: proto=0x0021
pppifOutput[0]: proto=0x0021
pppifOutput[0]: proto=0x0021
pppifOutput[0]: proto=0x0021
pppifOutput[0]: proto=0x0021
[PPP_OPEN] netErr = -5

Any suggestions and tips highly appreciated!

--
Best regards,
 Marco

_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users


reply via email to

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