From: Jason Ish Date: Tue, 18 Aug 2020 16:40:00 +0000 (-0600) Subject: snmp: set unidirectional transaction flag X-Git-Tag: suricata-5.0.4~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a39fa120efb0744eb423356dcb7293ef03f07307;p=thirdparty%2Fsuricata.git snmp: set unidirectional transaction flag (cherry picked from commit fc7d59d92fb52a2ced979e0ff92a95bce390edfb) --- diff --git a/rust/src/snmp/snmp.rs b/rust/src/snmp/snmp.rs index 7b8dbeb0c3..6ad91745d4 100644 --- a/rust/src/snmp/snmp.rs +++ b/rust/src/snmp/snmp.rs @@ -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 {