sip: disable by default in 5.0

pull/4210/head
Jason Ish 7 years ago committed by Victor Julien
parent fdbc2fe49c
commit a45a2fa1fc

@ -27,6 +27,7 @@ use core::{AppProto,Flow,ALPROTO_UNKNOWN,sc_detect_engine_state_free};
use parser::*;
use log::*;
use sip::parser::*;
use conf;
#[repr(u32)]
pub enum SIPEvent {
@ -420,6 +421,12 @@ pub unsafe extern "C" fn rs_sip_register_parser() {
get_tx_iterator : 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);

@ -1043,8 +1043,9 @@ app-layer:
dhcp:
enabled: yes
# SIP, disabled by default.
sip:
enabled: yes
#enabled: no
# Limit for the maximum number of asn1 frames to decode (default 256)
asn1-max-frames: 256

Loading…
Cancel
Save