]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
snmp: set unidirectional transaction flag
authorJason Ish <jason.ish@oisf.net>
Tue, 18 Aug 2020 16:40:00 +0000 (10:40 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 7 Oct 2020 10:08:51 +0000 (12:08 +0200)
(cherry picked from commit fc7d59d92fb52a2ced979e0ff92a95bce390edfb)

rust/src/snmp/snmp.rs

index 7b8dbeb0c380bc94a653f796822c95ff1f83baa7..6ad91745d4840edf0075bda92efacdab54c90ed5 100644 (file)
@@ -614,7 +614,7 @@ pub unsafe extern "C" fn rs_register_snmp_parser() {
         get_tx_iterator    : None,
         get_tx_detect_flags: Some(rs_snmp_get_tx_detect_flags),
         set_tx_detect_flags: Some(rs_snmp_set_tx_detect_flags),
-        flags              : 0,
+        flags              : crate::core::APP_LAYER_PARSER_OPT_UNIDIR_TXS,
     };
     let ip_proto_str = CString::new("udp").unwrap();
     if AppLayerProtoDetectConfProtoDetectionEnabled(ip_proto_str.as_ptr(), parser.name) != 0 {