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 23, 2024
1 parent 88c9f2a commit 746c9cb
Show file tree
Hide file tree
Showing 2 changed files with 240 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 746c9cb

Please sign in to comment.