-
Notifications
You must be signed in to change notification settings - Fork 425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Catalog response code #1207
Catalog response code #1207
Conversation
a60a7b1
to
78233ff
Compare
Codecov Report
@@ Coverage Diff @@
## main #1207 +/- ##
==========================================
- Coverage 85.62% 85.61% -0.01%
==========================================
Files 125 125
Lines 13840 13923 +83
==========================================
+ Hits 11850 11920 +70
- Misses 1990 2003 +13 |
Did you look into combining this with a fix for proto's |
This was meant as a quick fix before I can take another look at #1203. The best way, for now, is probably to silently create the EDNS section whenever necessary. |
78233ff
to
f3f3efe
Compare
Some ResponseCodes have high bits which require EDNS to encode them. This commit updates Message::set_response_code and MessageResponseBuiler::error_msg to silently create a EDNS section if required and sets the high bits there. This also adds a warning to Header::set_response_code that this function cannot set the high bits. Closes hickory-dns#1203 Closes hickory-dns#1207
What's the status on this change? |
@bluejekyll This 1 line change correctly sets the response code in the case of This code remains correct also with #1265 applied, but this PR could then be reverted if wanted. |
Some ResponseCodes have high bits which require EDNS to encode them. This commit updates Message::set_response_code and MessageResponseBuiler::error_msg to silently create a EDNS section if required and sets the high bits there. This also adds a warning to Header::set_response_code that this function cannot set the high bits. Closes hickory-dns#1203 Closes hickory-dns#1207
Some ResponseCodes have high bits which require EDNS to encode them. This commit updates Message::set_response_code and MessageResponseBuiler::error_msg to silently create a EDNS section if required and sets the high bits there. This also adds a warning to Header::set_response_code that this function cannot set the high bits. Closes hickory-dns#1203 Closes hickory-dns#1207
I didn't see the updates on this. Sorry for the delayed merging and thanks for the PR! |
This fixes how
Catalog
sets theBADVERS
response code.