]> git.ipfire.org Git - people/ms/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 04:55:32 +0000 (06:55 +0200)
rust/src/snmp/snmp.rs

index 1171db8ea9e7e05611cbebac6735ae92d449a4e8..a712d0f3af27a3c011c1ce8c86e0b9ed35680bd8 100644 (file)
@@ -584,7 +584,7 @@ pub unsafe extern "C" fn rs_register_snmp_parser() {
         get_tx_iterator    : None,
         get_tx_data        : rs_snmp_get_tx_data,
         apply_tx_config    : None,
-        flags              : 0,
+        flags              : APP_LAYER_PARSER_OPT_UNIDIR_TXS,
         truncate           : None,
     };
     let ip_proto_str = CString::new("udp").unwrap();