Repository navigation
dns: add tcp_reassemble for DNS over TCP - #5315
Open
varunswaika wants to merge 1 commit into
Open
varunswaika wants to merge 1 commit into
varunswaika wants to merge 1 commit into
Conversation
TCPSession and StreamSocket dissected DNS over TCP as plain DNS, so the two-byte length prefix was read as the id. dns_resolve now uses SimpleSocket for UDP, since DNS datagrams have no length prefix. AI-Assisted: yes (Claude Opus 5.5)
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5315 +/- ##
=======================================
Coverage 81.19% 81.19%
=======================================
Files 376 376
Lines 99209 99222 +13
=======================================
+ Hits 80550 80567 +17
+ Misses 18659 18655 -4
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
DNShas notcp_reassemble, sostreamclsfalls back toDNS(data)and the RFC 1035 sect 4.2.2 length prefix is read as theid. This addsDNS.tcp_reassemble, which waits for the full message and returnsDNSTCP.dns_resolvewraps its UDP socket inStreamSocket(sock, DNS), so it now usesSimpleSocketfor UDP.fixes #4023
This message was written with the help of AI (Claude Opus 5.5).