From: Pierre Chifflier Date: Tue, 15 May 2018 13:33:30 +0000 (+0200) Subject: Update ntp-parser to 0.2.0 X-Git-Tag: suricata-4.0.5~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f6d4882625e13842190dde6dceac7f7415a21bd;p=thirdparty%2Fsuricata.git Update ntp-parser to 0.2.0 --- 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;