Skip to content

DHCP timeout should be configurable  #1468

@ingve

Description

@ingve

The new more explicit network configuration system is awesome!

In configure.cpp, the value "5.0" is hardcoded in two places:

if(method == "dhcp")
    {
      stack.negotiate_dhcp(5.0);
    }

and

else if(method == "dhcp-with-fallback")
    {
      // [...]
      stack.negotiate_dhcp(5.0, static_cfg);
  }

Sometimes 5 seconds is not enough (getting quite a few DHCP timeouts on VMware with bridged networking). Would it be better to make this timeout configurable, either in the config.json file or as a compile-time configurable -DDHCP_TIMEOUT=... setting?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions