2017-02-20 0:34 GMT+08:00 Sylvain Rochet <[email protected]>: > Hi Axel, > > On Mon, Feb 20, 2017 at 12:24:29AM +0800, Axel Lin wrote: >> Hi, >> I got below log after ppp_connect() success: > > (...) > >> [00:14:29:361] status_cb: Connected␍␊ >> [00:14:29:361] our_ipaddr = 10.0.2.66␍␊ >> [00:14:29:361] his_ipaddr = 10.0.2.55␍␊ >> [00:14:29:361] netmask = 255.255.255.255␍␊ >> [00:14:29:361] dns1 = 10.0.2.55␍␊ >> [00:14:29:375] dns2 = 10.0.2.55␍␊ >> [00:14:29:375] local IP address 10.0.2.66␍␊ >> [00:14:29:375] remote IP address 10.0.2.55␍␊ >> [00:14:29:375] primary DNS address 10.0.2.55␍␊ >> [00:14:29:375] secondary DNS address 10.0.2.55␍␊ >> [00:14:29:388] ppp phase changed[0]: phase=10␍␊ >> [00:14:29:398] Network ready IP: 10.0.2.66␍␊ >> [00:14:29:426] // connect fails >> [00:14:29:449] pppos_netif_output[0]: proto=0x21, len = 65␍␊ >> [00:14:35:552] // connect fails, retry >> [00:14:35:592] pppos_netif_output[0]: proto=0x21, len = 65␍␊ >> [00:14:41:673] // connect fails, retry >> [00:14:41:717] pppos_netif_output[0]: proto=0x21, len = 65␍␊ >> .... >> >> Sometimes the device ping 8.8.8.8 always fails.i.e. it can not reach >> internet. >> But it's fine to ping 10.0.2.66 or 10.0.2.55. >> Above log seems does not show any error. >> Which part could be wrong or which part should I check about such issue? > > It looks like your modem is not forwarding packets. Which one it is so > we can prevent using it in our designs ? ;-)
I don't get it, I'm using Gemalto ELS31J module. I compare the successful log below: Seems some pppos_input() got different length. [00:31:47:455] ATD*99***1#␍␍␊ [00:31:47:458] CONNECT␍␊ [00:31:47:458] netif: setting default interface pp␍␊ [00:31:47:471] ppp_connect[0]: holdoff=0␍␊ [00:31:47:471] ppp phase changed[0]: phase=3␍␊ [00:31:47:471] pppos_connect: unit 0: connecting␍␊ [00:31:47:471] ppp_start[0]␍␊ [00:31:47:471] ppp phase changed[0]: phase=6␍␊ [00:31:47:486] pppos_send_config[0]: out_accm=FF FF FF FF␍␊ [00:31:47:486] ppp_send_config[0]␍␊ [00:31:47:486] pppos_recv_config[0]: in_accm=FF FF FF FF␍␊ [00:31:47:486] ppp_recv_config[0]␍␊ [00:31:47:486] ppp: auth protocols: PAP=0 CHAP=0 CHAP_MD5=0␍␊ [00:31:47:498] pppos_write[0]: len=24␍␊ [00:31:47:505] ppp_start[0]: finished␍␊ [00:31:47:647] pppos_input[0]: got 73 bytes␍␊ <<< In the failure log, I got 68 bytes. [00:31:47:665] pppos_write[0]: len=24␍␊ [00:31:47:690] pppos_input[0]: got 18 bytes␍␊ <<< In the failure log, I got 22 bytes here. [00:31:47:690] netif_set_mtu[0]: mtu=1500␍␊ [00:31:47:690] pppos_send_config[0]: out_accm=0 0 0 0␍␊ [00:31:47:699] ppp_send_config[0]␍␊ [00:31:47:699] pppos_recv_config[0]: in_accm=0 0 0 0␍␊ [00:31:47:699] ppp_recv_config[0]␍␊ [00:31:47:699] ppp phase changed[0]: phase=7␍␊ [00:31:47:712] @P7␍␍␊ [00:31:47:712] ppp phase changed[0]: phase=9␍␊ [00:31:47:712] @P9␍␍␊ [00:31:47:722] pppos_write[0]: len=32␍␊ [00:31:47:728] pppos_input[0]: got 34 bytes␍␊ << In the failure log, I got 13 bytes. [00:31:47:739] pppos_write[0]: len=12␍␊ [00:31:47:752] pppos_write[0]: len=20␍␊ << In the failure log, I got 21 bytes. [00:31:47:761] pppos_input[0]: got 27 bytes␍␊ [00:31:47:775] pppos_write[0]: len=32␍␊ [00:31:47:800] pppos_input[0]: got 33 bytes␍␊ [00:31:47:812] sifvjcomp[0]: VJ compress enable=1 slot=1 max slot=15␍␊ [00:31:47:812] sifup[0]: err_code=0␍␊ [00:31:47:818] status_cb: err_code=0␍␍␊ [00:31:47:818] status_cb: Connected␍␊ [00:31:47:818] our_ipaddr = 10.0.2.66␍␊ [00:31:47:829] his_ipaddr = 10.0.2.55␍␊ [00:31:47:829] netmask = 255.255.255.255␍␊ [00:31:47:829] dns1 = 10.0.2.55␍␊ [00:31:47:829] dns2 = 10.0.2.55␍␊ [00:31:47:840] local IP address 10.0.2.66␍␊ [00:31:47:840] remote IP address 10.0.2.55␍␊ [00:31:47:840] primary DNS address 10.0.2.55␍␊ [00:31:47:840] secondary DNS address 10.0.2.55␍ _______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
