diff --git a/rust/Cargo.toml.in b/rust/Cargo.toml.in index 263b715dd0..bfc8bd9b51 100644 --- a/rust/Cargo.toml.in +++ b/rust/Cargo.toml.in @@ -20,5 +20,5 @@ crc = "~1.7.0" der-parser = "0.5.2" kerberos-parser = "0.1.0" -ntp-parser = "^0" +ntp-parser = "0.2.0" ipsec-parser = "~0.3.0" diff --git a/rust/src/ntp/ntp.rs b/rust/src/ntp/ntp.rs index eb03cc3d6c..b1b9fa752a 100644 --- a/rust/src/ntp/ntp.rs +++ b/rust/src/ntp/ntp.rs @@ -89,7 +89,7 @@ impl NTPState { match parse_ntp(i) { IResult::Done(_,ref msg) => { // SCLogDebug!("parse_ntp: {:?}",msg); - if msg.mode == 1 || msg.mode == 3 { + if msg.mode == NtpMode::SymmetricActive || msg.mode == NtpMode::Client { let mut tx = self.new_tx(); // use the reference id as identifier tx.xid = msg.ref_id;