From 3f6d4882625e13842190dde6dceac7f7415a21bd Mon Sep 17 00:00:00 2001 From: Pierre Chifflier Date: Tue, 15 May 2018 15:33:30 +0200 Subject: [PATCH] Update ntp-parser to 0.2.0 --- rust/Cargo.toml.in | 2 +- rust/src/ntp/ntp.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/Cargo.toml.in b/rust/Cargo.toml.in index f183733535..f6d6990bbe 100644 --- a/rust/Cargo.toml.in +++ b/rust/Cargo.toml.in @@ -18,4 +18,4 @@ nom = "~3.0" libc = "~0.2.0" crc = "~1.4.0" -ntp-parser = { version = "^0", optional = true } +ntp-parser = { version = "0.2.0", optional = true } diff --git a/rust/src/ntp/ntp.rs b/rust/src/ntp/ntp.rs index 3405ec5e26..2c73667519 100644 --- a/rust/src/ntp/ntp.rs +++ b/rust/src/ntp/ntp.rs @@ -91,7 +91,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; -- 2.47.2