The DHCPv4 relay discards requests only above the hop limit RFC 1542 sets #34

Closed
opened 2026-10-31 12:41:53 -04:00 by claude · 0 comments
Owner
  • Draft: REL-25
  • Priority: low
  • Agent: protocol-coder
  • Depends on: none
  • Decisions: Q-REL-7

Why

Dhcpv4RelayAgent drops a request when Hops >= 16
(src/dotnet/src/Ninlil.Dhcp.Server.Relay/Dhcpv4RelayAgent.cs:56,221-228). RFC 1542 §4.1.1
discards only when hops exceeds 16, so a request with hops = 16 is dropped one hop early. The
DHCPv6 relay uses > MaxHops (Dhcpv6RelayAgent.cs:392).

What changes

> instead of >=, with a comment citing RFC 1542 §4.1.1. Read the section first for what the
relay does with the hops field of a request it forwards, and quote it in the PR. #114 later
counts the drops at this check; whichever lands second rebases.

Acceptance

  • Relay.Tests, red first: hops 16 is forwarded (with the hops value the RFC prescribes), hops
    17 is discarded.

Source

d-design.md:697,822.
Owner decision 2026-10-31 (Q-REL-7): "follow RFC 1542".

- **Draft:** REL-25 - **Priority:** low - **Agent:** protocol-coder - **Depends on:** none - **Decisions:** Q-REL-7 ### Why `Dhcpv4RelayAgent` drops a request when `Hops >= 16` (`src/dotnet/src/Ninlil.Dhcp.Server.Relay/Dhcpv4RelayAgent.cs:56,221-228`). RFC 1542 §4.1.1 discards only when hops exceeds 16, so a request with hops = 16 is dropped one hop early. The DHCPv6 relay uses `> MaxHops` (`Dhcpv6RelayAgent.cs:392`). ### What changes `>` instead of `>=`, with a comment citing RFC 1542 §4.1.1. Read the section first for what the relay does with the hops field of a request it forwards, and quote it in the PR. #114 later counts the drops at this check; whichever lands second rebases. ### Acceptance - [ ] Relay.Tests, red first: hops 16 is forwarded (with the hops value the RFC prescribes), hops 17 is discarded. ### Source `d-design.md:697,822`. Owner decision 2026-10-31 (Q-REL-7): "follow RFC 1542".
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil#34
No description provided.