]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
sip: enable by default
authorJason Ish <jason.ish@oisf.net>
Tue, 2 Jun 2020 16:08:32 +0000 (10:08 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 3 Jun 2020 11:36:55 +0000 (13:36 +0200)
Redmine issue:
https://redmine.openinfosecfoundation.org/issues/3256

rust/src/sip/sip.rs
suricata.yaml.in

index cda829a49f7457974d6c621b84feb809b05d55c9..f3d36570903e8b422fbf5aaded8a1a066c09ae77 100755 (executable)
@@ -20,7 +20,6 @@
 extern crate nom;
 
 use crate::applayer::{self, *};
-use crate::conf;
 use crate::core;
 use crate::core::{sc_detect_engine_state_free, AppProto, Flow, ALPROTO_UNKNOWN};
 use crate::log::*;
@@ -417,12 +416,6 @@ pub unsafe extern "C" fn rs_sip_register_parser() {
         set_tx_detect_flags: None,
     };
 
-    /* For 5.0 we want this disabled by default, so check that it
-     * has been explicitly enabled. */
-    if !conf::conf_get_bool("app-layer.protocols.sip.enabled") {
-        return;
-    }
-
     let ip_proto_str = CString::new("udp").unwrap();
     if AppLayerProtoDetectConfProtoDetectionEnabled(ip_proto_str.as_ptr(), parser.name) != 0 {
         let alproto = AppLayerRegisterProtocolDetection(&parser, 1);
index c4a6d1a9567cf8b057200462aa0bbc801f5528a1..16cfa150de653b3811b628aa7423c72a4b17c9eb 100644 (file)
@@ -265,7 +265,7 @@ outputs:
         - krb5
         - snmp
         - rfb
-        #- sip
+        - sip
         - dhcp:
             enabled: yes
             # When extended mode is on, all DHCP messages are logged
@@ -949,7 +949,6 @@ app-layer:
     dhcp:
       enabled: yes
 
-    # SIP, disabled by default.
     sip:
       #enabled: no