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 28, 2024
1 parent 88c9f2a commit c17adb1
Show file tree
Hide file tree
Showing 2 changed files with 255 additions and 13 deletions.
8 changes: 8 additions & 0 deletions qlog/src/events/quic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,14 @@ pub struct TransportParametersSet {
pub initial_max_streams_uni: Option<u64>,

pub preferred_address: Option<PreferredAddress>,

pub unknown_parameters: Vec<UnknownTransportParameter>,
}

#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, Debug)]
pub struct UnknownTransportParameter {
pub id: u64,
pub value: Bytes,
}

#[serde_with::skip_serializing_none]
Expand Down
Loading

0 comments on commit c17adb1

Please sign in to comment.