Skip to content
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

Improve CAA rdata display #1794

Merged
merged 5 commits into from Oct 29, 2022
Merged

Conversation

wuerges
Copy link
Contributor

@wuerges wuerges commented Oct 11, 2022

This PR improves the CAA RData Display trait.

It adds the examples from the RFC 6844 as test cases and fixes the fmt::Display for the Value struct.

  • Shows the true issuer_critical flag as 128 instead of 1.
    • Ideally, the flag should have been stored as a u8.
  • Fixes how the ; separator is handled.
  • Shows Value::Unknown as a string, if it is a valid UTF8 string.

@wuerges wuerges requested review from djc and darnuria and removed request for djc and darnuria October 14, 2022 16:01
@bluejekyll
Copy link
Member

@djc, I'm going to let you own this one, I haven't been following the conversation.

@wuerges wuerges requested review from djc and removed request for darnuria October 17, 2022 17:14
Copy link
Collaborator

@djc djc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for writing all the tests!

crates/proto/src/rr/rdata/caa.rs Outdated Show resolved Hide resolved
@wuerges wuerges requested a review from djc October 26, 2022 15:52
@bluejekyll
Copy link
Member

@djc, all tests are passing, if you think this is ready, go ahead and rebase into main...

@djc djc merged commit 295cad9 into hickory-dns:main Oct 29, 2022
@djc
Copy link
Collaborator

djc commented Oct 29, 2022

Nice, thanks for working on this!

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.

None yet

4 participants