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.1.0-rc1~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d1c4420de2437a4751173e759d519c17994de5c;p=thirdparty%2Fsuricata.git Update ntp-parser to 0.2.0 --- 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;