[bug #55121] Provide application callback for dhcp reboot with unchanged address

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[bug #55121] Provide application callback for dhcp reboot with unchanged address

Simon Goldschmidt
URL:
  <https://savannah.nongnu.org/bugs/?55121>

                 Summary: Provide application callback for dhcp reboot with
unchanged address
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: erlkoenig
            Submitted on: Wed 28 Nov 2018 09:12:31 AM UTC
                Category: DHCP
                Severity: 3 - Normal
              Item Group: Feature Request
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: 2.1.1

    _______________________________________________________

Details:

As mentioned on the mailing list
<http://lists.nongnu.org/archive/html/lwip-users/2018-11/msg00070.html>, lwIP
should inform the application about a successful DHCP reboot even if the
assigned address did not change. Currently, there does not appear to be a
consistent way to get a notification when the link becomes ready for TCP or
UDP, i.e. when a valid IP configuration was (re-)acquired. This would be
useful if the application needs to use TCP/UDP as sson as possible, including
after a reconnect. Therefore, some kind of callback for "IP ready" would be
useful.




    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?55121>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

[bug #55121] Provide application callback for dhcp reboot with unchanged address

Simon Goldschmidt
Update of bug #55121 (project lwip):

                  Status:                    None => Fixed                  
             Assigned to:                    None => goldsimon              
             Open/Closed:                    Open => Closed                

    _______________________________________________________

Follow-up Comment #1:

Added LWIP_NSC_IPV4_ADDR_VALID as reason for netif ext callback.

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?55121>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

Re: [bug #55121] Provide application callback for dhcp reboot with unchanged address

Axel Lin
Simon Goldschmidt <[hidden email]> 於 2020年1月13日 週一 上午3:31寫道:

>
> Update of bug #55121 (project lwip):
>
>                   Status:                    None => Fixed
>              Assigned to:                    None => goldsimon
>              Open/Closed:                    Open => Closed
>
>     _______________________________________________________
>
> Follow-up Comment #1:
>
> Added LWIP_NSC_IPV4_ADDR_VALID as reason for netif ext callback.
unittest fails with above change:

$ ./lwip_unittests
Running suite(s): IPv4
 IPv6
 UDP
 TCP
 TCP_OOS
 DEF
 MEM
 NETIF
 PBUF
 TIMERS
 ETHARP
 DHCP
 MDNS
 MQTT
 SOCKETS
99%: Checks: 110, Failures: 1, Errors: 0
lwip/test/unit/core/test_netif.c:84:F:NETIF:test_netif_extcallbacks:0:
Assertion 'expected_reasons == reason' failed

_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel