lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] [EXTERNAL] Re: LWIP Dual Stack - IPv4 and IPv6


From: Zayzay, Edman G
Subject: Re: [lwip-users] [EXTERNAL] Re: LWIP Dual Stack - IPv4 and IPv6
Date: Fri, 16 Jul 2021 13:46:34 +0000

Hi Sylvain,

I did increase MEMP_NUM_SYS_TIMEOUT to 20 and call sys_check_timeouts() 
periodically in since I am running without an OS and it still doesn't resolve 
the issue.

ppp_connect[0]: holdoff=0
ppp phase changed[0]: phase=3
pppos_connect: unit 0: connecting
ppp_start[0]
ppp phase changed[0]: phase=6
pppos_send_config[0]: out_accm=FF FF FF FF
ppp_send_config[0]
pppos_recv_config[0]: in_accm=FF FF FF FF
ppp_recv_config[0]
ppp: auth protocols: CHAP=1 CHAP_MD5=1
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x650ce955> <pcomp> <accomp>]
pppos_write[0]: len=24
ppp_start[0]: finished
CELL_PPP: PPP_PHASE_ESTABLISH - Establishing connection
netif_ip6_addr_set_state: netif address state being changed
netif: IPv6 address 0 of interface0 set to FE80::214:8FF:FE18:D82D/0x09
inet_chksum_pseudo(): checksumming pbuf  (has next )
inet_chksum_pseudo(): pbuf chain lwip_chksum()=783D
inet_chksum_pseudo(): checksumming pbuf  (has next )
inet_chksum_pseudo(): pbuf chain lwip_chksum()=4784
Ka:wifi Keep alive short timer=170552 config=5 min
0D 0A 43 4F 4E 4E 45 43 54 20 31 35 30 30 30 30 30 30 30 0D 0A 7E FF 7D 23 C0 
21 7D 21 7D 20 7D 20 7D 39 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 23 7D 25 C2 
23 7D 25 7D 25 7D 26 EE 7D 5D 55 A3 7D 27 7D 22 7D 28 7D 22 C9 BA 7E 7E FF 7D 
23 C0 21 7D 22 7D 21 7D 20 7D 34 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 
26 65 7D 2C E9 55 7D 27 7D 22 7D 28 7D 22 68 79 7E
pppos_input[0]: got 121 bytes
pppos_input[0]: Dropping ACCM char <13>
pppos_input[0]: Dropping ACCM char <10>
pppos_input[0]: Dropping ACCM char <13>
pppos_input[0]: Dropping ACCM char <10>
rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <auth chap MD5> <magic 0xee7d55a3> 
<pcomp> <accomp>]
sent [LCP ConfAck id=0x0 <asyncmap 0x0> <auth chap MD5> <magic 0xee7d55a3> 
<pcomp> <accomp>]
pppos_write[0]: len=29
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x650ce955> <pcomp> <accomp>]
netif_set_mtu[0]: mtu=1500
pppos_send_config[0]: out_accm=0 0 0 0
ppp_send_config[0]
pppos_recv_config[0]: in_accm=0 0 0 0
ppp_recv_config[0]
ppp phase changed[0]: phase=7
CELL_PPP: PPP_PHASE_AUTHENTICATE - Optional peer authentication
7E FF 7D 23 C0 21 7D 2B 7D 21 7D 20 7D 28 EE 7D 5D 55 A3 B0 A5 7E 7E C2 23 01 
01 00 23 10 BA 65 72 BF 02 F1 AB 34 1D 62 EE D6 52 C1 BA 8A 55 4D 54 53 5F 43 
48 41 50 5F 53 52 56 52 E2 18 7E
pppos_input[0]: got 63 bytes
rcvd [LCP DiscReq id=0x1 magic=0xee7d55a3]
rcvd [CHAP Challenge id=0x1 <ba6572bf02f1ab341d62eed652c1ba8a>, name = 
"UMTS_CHAP_SRVR"]
sent [CHAP Response id=0x1 <0ead1f1d2a8a6c3a705a40e57f98c7ae>, name = "iplink"]
pppos_write[0]: len=31
7E C2 23 03 01 00 04 C2 BC 7E
pppos_input[0]: got 10 bytes
rcvd [CHAP Success id=0x1 ""]
CHAP authentication succeeded
CHAP authentication succeeded
ppp phase changed[0]: phase=9
CELL_PPP: PPP_PHASE_NETWORK - Network-layer protocol configuration by NCP
ccp_set[0]: is_open=1, is_up=0, receive_method=0, transmit_method=0
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> 
<ms-dns2 0.0.0.0>]
pppos_write[0]: len=32
sent [IPV6CP ConfReq id=0x1 <addr fe80::60E3:C847:9B17:F03D>]
pppos_write[0]: len=18
7E 80 57 01 00 00 0E 01 0A 5C 56 5D A4 4D 3C 81 09 6E 96 7E 7E 80 57 03 01 00 
0E 01 0A 90 A8 B6 0D 1A 81 47 7D 5E C8 90 7E
pppos_input[0]: got 41 bytes
rcvd [IPV6CP ConfReq id=0x0 <addr fe80::5C56:5DA4:4D3C:8109>]
sent [IPV6CP ConfAck id=0x0 <addr fe80::5C56:5DA4:4D3C:8109>]
pppos_write[0]: len=18
rcvd [IPV6CP ConfNak id=0x1 <addr fe80::90A8:B60D:1A81:477E>]
sent [IPV6CP ConfReq id=0x2 <addr fe80::90A8:B60D:1A81:477E>]
pppos_write[0]: len=18
7E 80 57 02 02 00 0E 01 0A 90 A8 B6 0D 1A 81 47 7D 5E D5 E0 7E
pppos_input[0]: got 21 bytes
rcvd [IPV6CP ConfAck id=0x2 <addr fe80::90A8:B60D:1A81:477E>]
netif_ip6_addr_set: netif address being changed
netif: IPv6 address 0 of interfacep set to FE80::90A8:B60D:1A81:477E/0x00
netif_ip6_addr_set_state: netif address state being changed
inet_chksum_pseudo(): checksumming pbuf  (has next )
inet_chksum_pseudo(): pbuf chain lwip_chksum()=5B0F
ppp_netif_output_ip6
ppp_netif_output[0]: link not up

CELL_PPP: PPP NETIF Status change detected
netif: IPv6 address 0 of interfacep set to FE80::90A8:B60D:1A81:477E/0x30
sif6up[0]: err_code=0
   our_ipaddr  = 0.0.0.0
   his_ipaddr  = 0.0.0.0
   netmask     = 255.255.255.255
   dns1        = 0.0.0.0
   dns2        = 0.0.0.0
CELL_PPP: Our LL IPv6 Address: FE80::90A8:B60D:1A81:477E
CELL_PPP: Sending router socilitation
inet_chksum_pseudo(): checksumming pbuf  (has next )
inet_chksum_pseudo(): pbuf chain lwip_chksum()=872C
ppp_netif_output_ip6
pppos_netif_output[0]: proto=0x57, len = 56
local  LL address fe80::90A8:B60D:1A81:477E
remote LL address fe80::5C56:5DA4:4D3C:8109
ppp phase changed[0]: phase=10
CELL_PPP: PPP_PHASE_RUNNING -  Session running
7E 57 60 00 00 00 00 68 3A FF FE 80 00 00 00 00 00 00 5C 56 5D A4 4D 3C 81 09 
FE 80 00 00 00 00 00 00 90 A8 B6 0D 1A 81 47 7D 5E 86 00 7C 53 FF 40 FF FF 00 
00 00 00 00 00 00 00 01 01 00 00 00 00 00 00 05 01 00 00 00 00 05 00 03 04 40 
C0 FF FF FF FF FF FF FF FF 00 00 00 00 26 00 10 03 B0
pppos_input[0]: got 96 bytes
1A AE C6 00 00 00 00 00 00 00 00 19 05 00 00 FF FF FF FF 20 01 48 88 00 16 FF 
00 01 E1 00 0D 00 00 00 00 20 01 48 88 00 17 FF 00 01 E4 00 0D 00 00 00 00 E6 
28 7E
pppos_input[0]: got 54 bytes
ppp_input[0]: ip6 in pbuf len=144
inet_chksum_pseudo(): checksumming pbuf  (has next )
inet_chksum_pseudo(): pbuf chain lwip_chksum()=FFFF
inet_chksum_pseudo(): checksumming pbuf  (has next )
inet_chksum_pseudo(): pbuf chain lwip_cppp_netif_output_ip6
pppos_netif_output[0]: proto=0x57, len = 56
inet_chksum_pseudo(): checksumming pbuf  (has next )
inet_chksum_pseudo(): pbuf chain lwip_chksum()=9E35
ppp_netif_output_ip6
pppos_netif_output[0]: proto=0x57, len = 72
netif_ip6_addr_set_state: netif address state being changed

CELL_PPP: PPP NETIF Status change detected
inet_chksum_pseudo(): checksumming pbuf  (has next )
inet_chksum_pseudo(): pbuf chain lwip_chksum()=91B6
ppp_netif_output_ip6
pppos_netif_output[0]: proto=0x57, len = 72
CELL_PPP: Interface up. Awaiting IPv6 unicast address!
CELL_PP7E 57 60 00 00 00 00 50 3A FF
pppos_input[0]: got 10 bytes
26 00 10 03 B0 1A AE C6 00 00 00 4E FB AD 8D 40 FE 80 00 00 00 00 00 00 90 A8 
B6 0D 1A 81 47 7D 5E 03 00 97 4C 00 00 00 00 60 00 00 00 00 20 00 01 FE 80 00 
00 00 00 00 00 90 A8 B6 0D 1A 81 47 7D 5E FF 02 00 00 00 00 00 00 00 00 00 01 
FF 81 47 7D 5E 3A 00 05 02 00 00
pppos_input[0]: got 89 bytes
01 00 83 00 49 6E 00 00 00 00 FF 02 00 00 00 00 00 00 00 00 00 01 FF 81 47 7D 
5E 43 32 7E
pppos_input[0]: got 30 bytes
ppp_input[0]: ip6 in pbuf len=120
inet_chksum_pseudo(): checksumming pbuf  (has next )
inet_chksum_pseudo(): pbuf chain lwip_chksum()=FFFF

-----Original Message-----
From: lwip-users <lwip-users-bounces+edmangzayzay=eaton.com@nongnu.org> On 
Behalf Of Sylvain Rochet
Sent: Friday, July 16, 2021 7:39 AM
To: Mailing list for lwIP users <lwip-users@nongnu.org>
Subject: [EXTERNAL] Re: [lwip-users] LWIP Dual Stack - IPv4 and IPv6

Hi Edman,

On Thu, Jul 15, 2021 at 04:24:29PM +0000, Zayzay, Edman G wrote:
> Hi,
> 
> I am running LwiP 2.1.2 and have been able to successfully run IPv4 
> and IPv6 individually with PPPoS. However, whenever I enable both IPv4 
> and IPv6 on PPPoS, I am seeing only the IPV6CP ConfigReq is being 
> responded to. I do not see one IPCP ConfigReq goes out and nothing is 
> sent. I tested on the Linux and saw the Linux is sending multiple IPCP 
> ConfigReq during negotiation until the modem respond to both IPCP and 
> IPv6CP ConfigReq. My FSM_TIMEOUT is set to the default 6 seconds. When 
> the PPPoS negotiation completes, I see the IPv6 address assigned but 
> nothing is assigned for IPv4. I view of the above, Is there a way I 
> can ensure that LWip continues to send the IPCP ConfigReq until the 
> modem respond so that both IPv4 and IPv6 address are assigned?
> 
> Please see below a snippet of the debug output

That is strange, you should see IPCP retries at least, could you try adding 
more timers by setting a large value to MEMP_NUM_SYS_TIMEOUT ?

Sylvain

reply via email to

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