The DHCPv4 server checks that an address is unused before it offers it #169
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lantea-one/ninlil#169
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
RFC 2131 §2.2 and §4.4.1 say a server SHOULD probe an address (for example with ICMP echo) before allocating it. Ninlil never probes.
What changes
IDhcpAddressConflictProbeinsrc/dotnet/src/Ninlil.Dhcp.Server.Core/Allocation/, with aSystem.Net.NetworkInformation.Pingimplementation. .NET on Linux tries a raw socket, then an unprivileged ICMP socket, then thepingtool; document what the systemd unit allows.ResolveCandidateAddressAsync, probe only fresh candidates (not reservations, sticky addresses or renewals). On a reply, quarantine the address with the existing decline path (QuarantineRow, line 555,DhcpServerOptions.DeclinedAddressQuarantineDuration) and try the next candidate. Cap the probes per DISCOVER (for example 3).src/dotnet/src/Ninlil.Dhcp.Server.Core/DhcpServerOptions.cs: addEnableAddressConflictDetection(defaulttrue) andAddressConflictProbeTimeout(default 500 ms). Update ENVIRONMENT.md.Acceptance
Allocate_WhenTheFirstCandidateAnswersAPing_OffersTheNextAndQuarantinesTheFirst.trueand 500 ms.dotnet test src/dotnet/tests/Ninlil.Dhcp.Server.Core.Tests.Source
audit-feature-parity.md§2A #14; RFC 2131 §2.2, §4.4.1.Owner decision 2026-10-31: "ping check: on, 500 ms" (Q-PN-9).