The DHCPv4 relay discards requests only above the hop limit RFC 1542 sets #298
No reviewers
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 milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lantea-one/ninlil!298
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/34-relay-hop-limit"
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?
The DHCPv4 relay discards a request only when its hops field exceeds 16, following owner decision Q-REL-7: follow RFC 1542. Before, it discarded at 16, one hop early.
RFC 1542 §4.1.1 (checked against the RFC text):
Dhcpv4RelayAgentchecksrequest.Hops > MaxHops, with a comment quoting the rule. The summaries and the log message say "exceeds".>.Tests:
RequestAtTheHopLimit_IsForwardedWithHopsIncremented(hops 16 → upstream sees 17) was red before the fix.RequestAboveTheHopLimit_IsDroppedRatherThanForwarded(hops 17) guards the upper side.Ninlil.Dhcp.Server.Relay.Testspasses 36 of 36, three runs, on loopback with OS-assigned ports.Closes #34
🤖 Generated with Claude Code
https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK