Skip to content

fix(packet): preserve RDLENGTH+RDATA for unknown RR types#119

Merged
msimerson merged 2 commits into
lsongdev:masterfrom
NicTool:c3-randomness
May 25, 2026
Merged

fix(packet): preserve RDLENGTH+RDATA for unknown RR types#119
msimerson merged 2 commits into
lsongdev:masterfrom
NicTool:c3-randomness

Conversation

@msimerson
Copy link
Copy Markdown
Collaborator

@msimerson msimerson commented May 25, 2026

📑 Description

Packet.Resource.encode now writes RDLENGTH + raw resource.data when no type-specific encoder exists (and an empty RDATA block when data is absent), so packets containing unknown record types round-trip without corruption.

✅ Checks

  • My pull request adheres to the code style of this project
  • All the tests have passed

@msimerson msimerson changed the title C3 randomness fix: strengthen query randomness / anti-spoofing May 25, 2026
@lsongdev lsongdev marked this pull request as ready for review May 25, 2026 23:26
@msimerson msimerson merged commit 972e223 into lsongdev:master May 25, 2026
5 checks passed
@msimerson msimerson deleted the c3-randomness branch May 25, 2026 23:33
@msimerson msimerson changed the title fix: strengthen query randomness / anti-spoofing fix(packet): preserve RDLENGTH+RDATA for unknown RR types May 25, 2026
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