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 16:24:29 +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 0x7aecbb60> <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 7A EC BB 60 7D 27 7D 22 7D 28 7D 22 63 62 7E

pppos_write[0]: len=24

ppp_start[0]: finished

CELL_PPP: PPP_PHASE_ESTABLISH - Establishing connection

Ka:wifi Keep alive short timer=170552 config=5 min

pppos_input[0]: got 120 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 0xe73a3136> <pcomp> <accomp>]

sent [LCP ConfAck id=0x0 <asyncmap 0x0> <auth chap MD5> <magic 0xe73a3136> <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 E7 3A 31 36 7D 27 7D 22 7D 28 7D 22 7D 25 95 7E

pppos_write[0]: len=29

rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x7aecbb60> <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 64 bytes

rcvd [LCP DiscReq id=0x1 magic=0xe73a3136]

rcvd [CHAP Challenge id=0x1 <f342f13e1bbcb3507ef8a9e037af02b6>, name = "UMTS_CHAP_SRVR"]

sent [CHAP Response id=0x1 <4674307cfa0d23a3313eef54bc4428fa>, name = ""]

FF 03 C2 23 02 01 00 1B 10 46 74 30 7C FA 0D 23 A3 31 3E EF 54 BC 44 28 FA 69 70 6C 69 6E 6B 94 09 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::2864:03C3:8881:A288>]

FF 03 80 57 01 01 00 0E 01 0A 28 64 03 C3 88 81 A2 88 ED 55 7E

pppos_write[0]: len=18

pppos_input[0]: got 40 bytes

rcvd [IPV6CP ConfReq id=0x0 <addr fe80::4079:1488:3C71:35BE>]

sent [IPV6CP ConfAck id=0x0 <addr fe80::4079:1488:3C71:35BE>]

FF 03 80 57 02 00 00 0E 01 0A 40 79 14 88 3C 71 35 BE 4E F1 7E

pppos_write[0]: len=18

rcvd [IPV6CP ConfNak id=0x1 <addr fe80::7C72:073B:35F6:E870>]

sent [IPV6CP ConfReq id=0x2 <addr fe80::7C72:073B:35F6:E870>]

FF 03 80 57 01 02 00 0E 01 0A 7C 72 07 3B 35 F6 E8 70 7C 6D 7E

pppos_write[0]: len=18

pppos_input[0]: got 20 bytes

rcvd [IPV6CP ConfAck id=0x2 <addr fe80::7C72:073B:35F6:E870>]

netif_ip6_addr_set: netif address being changed

netif: IPv6 address 0 of interfacep set to FE80::7C72:73B:35F6:E870/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()=2A52

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::7C72:73B:35F6:E870/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::7C72:73B:35F6:E870

CELL_PPP: Sending router socilitation

inet_chksum_pseudo(): checksumming pbuf  (has next )

inet_chksum_pseudo(): pbuf chain lwip_chksum()=E625

ppp_netif_output_ip6

57 60 00 00 00 00 10 3A FF FE 80 00 00 00 00 00 00 7C 72 07 3B 35 F6 E8 70 FF 02 00 00 00 00 00 00 00 00 00 00 00 00 00 02 85 00 DA 19 00 00 00 00 01 01 00 00 00 00 00 00 9C A2 7E

pppos_netif_output[0]: proto=0x57, len = 56

local  LL address fe80::7C72:073B:35F6:E870

remote LL address fe80::4079:1488:3C71:35BE

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()=E625

ppp_netif_output_ip6

57 60 00 00 00 00 10 3A FF FE 80 00 00 00 00 00 00 7C 72 07 3B 35 F6 E8 70 FF 02 00 00 00 00 00 00 00 00 00 00 00 00 00 02 85 00 DA 19 00 00 00 00 01 01 00 00 00 00 00 00 9C A2 7E

pppos_netif_output[0]: proto=0x57, len = 56

inet_chksum_pseudo(): checksumming pbuf  (has next )

inet_chksum_pseudo(): pbuf chain lwip_chksum()=D722

ppp_netif_output_ip6

57 60 00 00 00 00 20 3A FF FE 00 00 00 00 00 00 01 FF 71 35 BE 87 00 DD 28 00 00 00 00 FE 80 00 00 00 00 00 00 40 79 14 88 3C 71 35 BE 01 01 00 00 00 00 00 00 3F 72 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:1000:11F9:7C72:73B:35F6:E870

netif: IPv6 address 1 of interfacep set to 2605:9780:1000:11F9:7C72:73B:35F6:E870/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:1000:11F9:7C72:73B:35F6:E870

 

Edman

 

 


reply via email to

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