Skip to content

DHCP: randomize and validate transaction IDs - #179

Open
occamsshavingkit wants to merge 1 commit into
Wiznet:masterfrom
occamsshavingkit:occamsshavingkit/dhcp-xid-validation
Open

DHCP: randomize and validate transaction IDs#179
occamsshavingkit wants to merge 1 commit into
Wiznet:masterfrom
occamsshavingkit:occamsshavingkit/dhcp-xid-validation

Conversation

@occamsshavingkit

Copy link
Copy Markdown

Summary

Implements DHCP transaction-ID handling grounded in RFC 2131 sections 4.1 and 4.4.1.

  • Generates fresh transaction IDs for new DHCP transactions.
  • Supports caller-provided entropy without adding platform-specific policy.
  • Rejects replies whose XID does not match the active transaction before option parsing.

Validation

  • Focused test: test_dhcp_xid.c passed.
  • Branch is based on current master.
  • Changes are limited to Internet/DHCP/dhcp.c and Internet/DHCP/dhcp.h.

No matching open issue was found. Hardware/HIL validation is not included in this PR.

niansa added a commit to niansa/ioLibrary_Driver that referenced this pull request Jul 29, 2026
# Conflicts:
#	Internet/DHCP/dhcp.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant