lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #54574] Comment to LWIP_DHCP_CHECK_LINK_UP might need


From: Ole Christensen
Subject: [lwip-devel] [bug #54574] Comment to LWIP_DHCP_CHECK_LINK_UP might need improvement
Date: Sun, 26 Aug 2018 13:15:23 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

URL:
  <http://savannah.nongnu.org/bugs/?54574>

                 Summary: Comment to LWIP_DHCP_CHECK_LINK_UP might need
improvement
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: ole_c
            Submitted on: Sun 26 Aug 2018 05:15:21 PM UTC
                Category: Documentation
                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: git head

    _______________________________________________________

Details:

The comment to the configuration option LWIP_DHCP_CHECK_LINK_UP in opt.h
currently says:

"LWIP_DHCP_CHECK_LINK_UP==1: dhcp_start() only really starts if the netif has
NETIF_FLAG_LINK_UP set in its flags. As this is only an optimization and netif
drivers might not set this flag, the default is off. If enabled,
netif_set_link_up() must be called to continue dhcp starting."

My network driver actually does support netif_set_link_up() and if
LWIP_DHCP_CHECK_LINK_UP is set to 0, the DHCP discovery is done twice without
waiting for the 1st response. Unfortunately this seems to confuse a router
(Fritzbox) I am currently behind. Its DHCP server always returns a different
IP if LWIP_DHCP_CHECK_LINK_UP is 0. If set to 1, the box returns the same IP
on each discovery as expected.

One might say, this is an issue of the router. True, but I think the client
*should* in any case wait for a response before issuing another discovery.

For my feeling, it is good enough to improve the comment to the configuration
option. Something like:

If the netif driver *does* support NETIF_FLAG_LINK_UP, this option should be
enabled to prevent the DHCP client from issuing a DHCP discovery without
waiting for a response. The latter might confuse poorly designed DHCP
servers.

Cheers, Ole





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?54574>

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




reply via email to

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