lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] LWIP_NSC_IPV4_GATEWAY/NETMASK/SETTINGS_CHANGED should c


From: Axel Lin
Subject: Re: [lwip-devel] LWIP_NSC_IPV4_GATEWAY/NETMASK/SETTINGS_CHANGED should check if the setting is actually being changed
Date: Sun, 19 Mar 2017 18:33:59 +0800

2017-03-19 16:59 GMT+08:00 Dirk Ziegelmeier <address@hidden>:
> Please explain, what's the expected behavior? Are the 0.0.0.0 callbacks
> wrong?
> If so, did you debug why the callbacks have been called erroneously?

Hi Dirk,
I think your fix is good.
I'm just surprised I got address change to 0.0.0.0.
I think it's different issue (and sorry for the confusion).

I add debug code to traced the issue I hit:
I set the dhcp server lease time on my AP to 1 hour. to easily hit the issue.

//boot
[13:16:11:733] dhcp_bind: set to new setting netif: netmask of
interface wl set to 255.255.255.0␍␊
[13:16:11:743] netif: GW address of interface wl set to 192.168.0.1␍␊
[13:16:11:754] netif_set_ipaddr: netif address being changed␍␊
[13:16:11:754] netif: IP address of interface wl set to 192.168.0.102
....
[14:06:02:663] dhcp_bind: set to new setting netif: IP address of
interface wl set to 192.168.0.102␍␊
[14:36:03:177] dhcp_bind: set to new setting netif: IP address of
interface wl set to 192.168.0.102␍␊
[15:29:02:960] dhcp_bind: set to new setting netif: IP address of
interface wl set to 192.168.0.102␍␊
[16:19:03:425] dhcp_bind: set to new setting netif: IP address of
interface wl set to 192.168.0.102␍␊
[17:19:03:370] dhcp_release_and_stop: remove IP address from interface
netif_set_ipaddr: netif address being changed␍␊
[17:19:03:377] mdns:reason=4␍␊
[17:19:03:450] netif: IP address of interface wl set to 0.0.0.0␍␊
[17:19:03:450] netif: netmask of interface wl set to 0.0.0.0␍␊
[17:19:03:450] mdns:reason=6␍␊
[17:19:03:450] netif: GW address of interface wl set to 0.0.0.0␍␊
[17:19:03:450] mdns:reason=5␍␊
[17:19:03:450] mdns:reason=7

I'm not sure why the device no longer get a valid ip.
Then the device is unreachable.



reply via email to

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