Skip to content

Commit

Permalink
fixup! fixup! Expose typed poll interval and listen to server min pol…
Browse files Browse the repository at this point in the history
…l interval
  • Loading branch information
tdittr committed Oct 31, 2023
1 parent b2d41bb commit 1d26e89
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ntp-proto/src/packet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -973,16 +973,16 @@ impl<'a> NtpPacket<'a> {

#[cfg(feature = "ntpv5")]
pub fn is_upgrade(&self) -> bool {
match (self.header, self.draft_id()) {
matches!(
(self.header, self.draft_id()),
(
NtpHeader::V4(NtpHeaderV3V4 {
reference_timestamp: v5::UPGRADE_TIMESTAMP,
..
}),
Some(v5::DRAFT_VERSION),
) => true,
_ => false,
}
)
)
}

pub fn valid_server_response(&self, identifier: RequestIdentifier, nts_enabled: bool) -> bool {
Expand Down

0 comments on commit 1d26e89

Please sign in to comment.