This commit is contained in:
Diva M
2025-01-14 23:33:35 -05:00
parent ad76ba092a
commit e327770cc6
+3 -3
View File
@@ -943,7 +943,7 @@ impl AckFrequency {
/* Address Discovery https://datatracker.ietf.org/doc/draft-seemann-quic-address-discovery/ */
/// Conjuction of the information contained in the address discovery frames
/// ([`Type::OBSERVED_IPV4_ADDR`], [`Type::OBSERVED_IPV6_ADDR`]).
/// ([`FrameType::OBSERVED_IPV4_ADDR`], [`FrameType::OBSERVED_IPV6_ADDR`]).
#[derive(Debug, PartialEq, Eq, Clone)]
pub(crate) struct ObservedAddr {
/// Monotonically increasing integer within the same connection.
@@ -963,7 +963,7 @@ impl ObservedAddr {
}
}
/// Get the [`Type`] for this frame.
/// Get the [`FrameType`] for this frame.
pub(crate) fn get_type(&self) -> FrameType {
if self.ip.is_ipv6() {
FrameType::OBSERVED_IPV6_ADDR
@@ -999,7 +999,7 @@ impl ObservedAddr {
/// Reads the frame contents from the buffer.
///
/// Should only be called when the fram type has been identified as
/// [`Type::OBSERVED_IPV4_ADDR`] or [`Type::OBSERVED_IPV6_ADDR`].
/// [`FrameType::OBSERVED_IPV4_ADDR`] or [`FrameType::OBSERVED_IPV6_ADDR`].
pub(crate) fn read<R: Buf>(bytes: &mut R, is_ipv6: bool) -> coding::Result<Self> {
let seq_no = bytes.get()?;
let ip = if is_ipv6 {