mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #2673] [MERGED] Parse unknown opcodes #3228
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#3228
Loading…
Add table
Add a link
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?
📋 Pull Request Information
Original PR: https://github.com/hickory-dns/hickory-dns/pull/2673
Author: @divergentdave
Created: 12/13/2024
Status: ✅ Merged
Merged: 12/16/2024
Merged by: @djc
Base:
main← Head:david/unknown-opcode📝 Commits (2)
8c081e2proto: allow parsing unknown opcodesfe3427aconformance: add a variant of RFC 8906 8.1.4 test📊 Changes
4 files changed (+77 additions, -20 deletions)
View changed files
📝
conformance/packages/conformance-tests/src/name_server/rfc8906/basic.rs(+27 -1)📝
conformance/packages/conformance-tests/src/resolver/dns/rfc8906/basic.rs(+31 -1)📝
crates/proto/src/op/header.rs(+1 -1)📝
crates/proto/src/op/op_code.rs(+18 -17)📄 Description
This adds an
Unknownvariant to theOpCodeenum, so that all opcodes can be parsed and represented. Previously, aNOTIMPreturn code could only be returned forNOTIFY,STATUS, and (conditionally)UPDATE, while all reserved opcodes would get no response, due to a decoding error in the header. Eliminating that decoding error allows returningNOTIMPin some cases. This is thus a partial fix for #2572. The RFC 8906 tests are still failing, due to an unrelated decoding error later on, but I added two more test variants that only exercise the unknown opcode code path.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.