lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] LWIP Dual Stack - IPv4 and IPv6


From: Zayzay, Edman G
Subject: [lwip-users] LWIP Dual Stack - IPv4 and IPv6
Date: Thu, 15 Jul 2021 14:04:46 +0000

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

 

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 0x53795d1b> <pcomp> <accomp>]
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 34 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 26 53 79 5D 7D 3B 7D 27 7D 22 7D 28 7D 22 7D 31 73 7E
pppos_write[0]: len=24
ppp_start[0]: finished
CELL_PPP: PPP_PHASE_ESTABLISH - Establishing connection
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 0xe96ab124> <pcomp> <accomp>]
sent [LCP ConfAck id=0x0 <asyncmap 0x0> <auth chap MD5> <magic 0xe96ab124> <pcomp> <accomp>]
FF 7D 23 C0 21 7D 22 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 E9 6A B1 24 7D 27 7D 22 7D 28 7D 22 AD 70 7E
pppos_write[0]: len=29
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x53795d1b> <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
pppos_input[0]: got 63 bytes
rcvd [LCP DiscReq id=0x1 magic=0xe96ab124]
rcvd [CHAP Challenge id=0x1 <7ee40973dd32d59861d6fadafe51c427>, name = "UMTS_CHAP_SRVR"]
sent [CHAP Response id=0x1 <fafad9c0c95bfa83b911003c84e9be56>, name = ""]
FF 03 C2 23 02 01 00 1B 10 FA FA D9 C0 C9 5B FA 83 B9 11 00 3C 84 E9 BE 56 69 70 6C 69 6E 6B D8 F2 7E
pppos_write[0]: len=31
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>]
FF 03 80 21 01 01 00 1C 02 06 00 2D 0F 01 03 06 00 00 00 00 81 06 00 00 00 00 83 06 00 00 00 00 55 15 7E
pppos_write[0]: len=32
sent [IPV6CP ConfReq id=0x1 <addr fe80::B0BF:D218:6101:9D1B>]
FF 03 80 57 01 01 00 0E 01 0A B0 BF D2 18 61 01 9D 1B D5 41 7E
pppos_write[0]: len=18
pppos_input[0]: got 40 bytes
rcvd [IPV6CP ConfReq id=0x0 <addr fe80::DC28:403A:E650:FB65>]
sent [IPV6CP ConfAck id=0x0 <addr fe80::DC28:403A:E650:FB65>]
FF 03 80 57 02 00 00 0E 01 0A DC 28 40 3A E6 50 FB 65 B8 EA 7E
pppos_write[0]: len=18
rcvd [IPV6CP ConfNak id=0x1 <addr fe80::7999:A8E8:E641:CC1A>]
sent [IPV6CP ConfReq id=0x2 <addr fe80::7999:A8E8:E641:CC1A>]
FF 03 80 57 01 02 00 0E 01 0A 79 99 A8 E8 E6 41 CC 1A 4A A2 7E
pppos_write[0]: len=18
pppos_input[0]: got 20 bytes
rcvd [IPV6CP ConfAck id=0x2 <addr fe80::7999:A8E8:E641:CC1A>]
netif_ip6_addr_set: netif address being changed
netif: IPv6 address 0 of interfacep set to FE80::7999:A8E8:E641:CC1A/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()=1418
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::7999:A8E8:E641:CC1A/0x30

CELL_PPP: PPP NETIF Link Interface UP
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::7999:A8E8:E641:CC1A
CELL_PPP: Sending router socilitation
inet_chksum_pseudo(): checksumming pbuf  (has next )
inet_chksum_pseudo(): pbuf chain lwip_chksum()=B058
ppp_netif_output_ip6
57 60 00 00 00 00 10 3A FF FE 80 00 00 00 00 00 00 79 99 A8 E8 E6 41 CC 1A FF 02 00 00 00 00 00 00 00 00 00 00 00 00 00 02 85 00 A7 4F 00 00 00 00 01 01 00 00 00 00 00 00 49 35 7E
pppos_netif_output[0]: proto=0x57, len = 56
local  LL address fe80::7999:A8E8:E641:CC1A
remote LL address fe80::DC28:403A:E650:FB65
ppp phase changed[0]: phase=10
CELL_PPP: PPP_PHASE_RUNNING -  Session running
pppos_input[0]: got 149 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_chksum()=B058
ppp_netif_output_ip6
57 60 00 00 00 00 10 3A FF FE 80 00 00 00 00 00 00 79 99 A8 E8 E6 41 CC 1A FF 02 00 00 00 00 00 00 00 00 00 00 00 00 00 02 85 00 A7 4F 00 00 00 00 01 01 00 00 00 00 00 00 49 35 7E
pppos_netif_output[0]: proto=0x57, len = 56
inet_chksum_pseudo(): checksumming pbuf  (has next )
inet_chksum_pseudo(): pbuf chain lwip_chksum()=1152
ppp_netif_output_ip6
57 60 00 00 00 00 20 3A FF FE 80 00 00 00 00 00 00 79 99 A8 E8 E6 41 CC 1A FF 02 00 00 00 00 00 00 00 00 00 01 FF 50 FB 65 87 00 AD EE 00 00 00 00 FE 80 00 00 00 00 00 00 DC 28 40 3A E6 50 FB 65 01 01 00 00 00 00 00 00 09 E2 7E
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
CELL_PPP: Interface up. Awaiting IPv6 unicast address!
CELL_PPP: Unicast IPv6 Address: 2605:9780:1020:netif: IPv6 address 1 of interfacep set to 2605:9780:1020:125F:7999:A8E8:E641:CC1A/0x10
pppos_input[0]: got 149 bytes
ppp_input[0]: ip6 in pbuf len=144
inet_chksum_pseudo(): checksumming pbuf  (has next )
inet_chksum_pseudo(): pbuf chain lwip_chksum()=FFFF
netif_ip6_addr_set_state: netif address state being changed

CELL_PPP: PPP NETIF Status change detected
CELL_PPP: Unicast IPv6 Address: 2605:9780:1020:125F:7999:A8E8:E641:CC1A
netif: IPv6 address 1 of interfacep set to 2605:9780:1020:125F:7999:A8E8:E641:CC1A/0x30
 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


Edman

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Attachment: image002.emz
Description: image002.emz


reply via email to

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