Skip to content

Commit

Permalink
lib, qlog: Track and Log Unknown Transport Parameters
Browse files Browse the repository at this point in the history
Track (and make available to qlog for logging) transport parameters and
their values that this implementation does not specifically recognize.
  • Loading branch information
hawkinsw committed Oct 21, 2024
1 parent 9ea2152 commit 90c52bc
Show file tree
Hide file tree
Showing 2 changed files with 249 additions and 13 deletions.
9 changes: 9 additions & 0 deletions qlog/src/events/quic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,15 @@ pub struct TransportParametersSet {
pub initial_max_streams_uni: Option<u64>,

pub preferred_address: Option<PreferredAddress>,

pub unknown_parameters: Vec<UnknownTransportParameter>,
}

#[serde_with::skip_serializing_none]
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, Debug)]
pub struct UnknownTransportParameter {
pub id: u64,
pub value: Vec<u8>,
}

#[serde_with::skip_serializing_none]
Expand Down
Loading

0 comments on commit 90c52bc

Please sign in to comment.