Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net: DHCPv4 server improvements #1500

Merged
merged 4 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions subsys/net/lib/dhcpv4/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,32 @@ config NET_DHCPV4_SERVER_ADDR_COUNT

config NET_DHCPV4_SERVER_ADDR_LEASE_TIME
int "Lease time for IPv4 addresses assigned by the server (seconds)"
range 0 4294967295
default 86400
help
Lease time in seconds for IPv4 addresses assigned by the server.
The lease time determines when the IPv4 address lease expires if the
client does not renew it.

config NET_DHCPV4_SERVER_ADDR_DECLINE_TIME
int "The time IPv4 addresses remains blocked after conflict detection (seconds)"
range 0 4294967295
default 86400
help
In case IPv4 address becomes blocked (either because of receiving
Decline message or due to ICMP probe detecting conflict), the address
can no longer be assigned. This timeout specifies how long the address
remains in the Declined state.
Note, that the server may try to reuse the oldest declined address in
case it runs out of free addresses to assign.

config NET_DHCPV4_SERVER_ICMP_PROBE_TIMEOUT
int "Timeout for ICMP probes sent by the server (miliseconds)"
range 0 60000
default 1000
help
DHCPv4 server will probe the offered IP address (send ICMP echo
request) and wait for the time specific by this config before offering
the address. If set to 0, ICMP probing will be disabled.

endif # NET_DHCPV4_SERVER
Loading
Loading