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

Check QUIC Bit that Short Header Packet set too #1404

Merged
merged 2 commits into from Sep 1, 2022

Conversation

thekuwayama
Copy link
Contributor

@thekuwayama thekuwayama commented Aug 31, 2022

Hi!
This PR would allow Connection to check Short Header Packets greasing QUIC Bit.

PlainHeader::decode() can check Long Header Packets with the QUIC Bit set to a value of 0. If EndpointConfig is not set grease_quic_bit with false, it raise PacketDecodeError::InvalidHeader("fixed bit unset"). But, in my understanding, Short Header Packets should be checked QUIC Bit too.

Thanks.

Copy link
Collaborator

@Ralith Ralith left a comment

Choose a reason for hiding this comment

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

Good catch, thanks! Confirmed by RFC 9000 §17.3.1.

@djc djc merged commit 166b7fe into quinn-rs:main Sep 1, 2022
@thekuwayama thekuwayama deleted the short-header-grease-quic-bit branch September 1, 2022 12:52
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

3 participants