Skip to content

Commit

Permalink
support encoding packet numbers in 3 bytes
Browse files Browse the repository at this point in the history
Fixes #1424.
  • Loading branch information
frochet authored Mar 30, 2023
1 parent d028b0a commit de1e245
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions quiche/src/packet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,8 @@ pub fn pkt_num_len(pn: u64) -> Result<usize> {
1
} else if pn < u64::from(u16::MAX) {
2
} else if pn < 16_777_215u64 {
3
} else if pn < u64::from(u32::MAX) {
4
} else {
Expand Down

0 comments on commit de1e245

Please sign in to comment.