]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Update ntp-parser to 0.2.0
authorPierre Chifflier <chifflier@wzdftpd.net>
Tue, 15 May 2018 13:33:30 +0000 (15:33 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 16 Jul 2018 11:30:49 +0000 (13:30 +0200)
rust/Cargo.toml.in
rust/src/ntp/ntp.rs

index f18373353548b519499109a3746a34064c389446..f6d6990bbec6a071273bd814ed84be1cd48041fb 100644 (file)
@@ -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 }
index 3405ec5e26d24441333c1c6dc2eb2cb172a81ba3..2c73667519721164d0554a0897d1ad0526c012a8 100644 (file)
@@ -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;