Ok(retval) => { stream_depth = retval as u32; }
Err(_) => { SCLogError!("Invalid depth value"); }
}
- AppLayerParserSetStreamDepth(IPPROTO_TCP as u8, ALPROTO_SMB, stream_depth);
}
+ AppLayerParserSetStreamDepth(IPPROTO_TCP as u8, ALPROTO_SMB, stream_depth);
let retval = conf_get("app-layer.protocols.smb.max-read-size");
if let Some(val) = retval {
match get_memval(val) {
static StreamingBufferConfig sbcfg = STREAMING_BUFFER_CONFIG_INITIALIZER;
static SuricataFileContext sfc = { &sbcfg };
-#define SMB_CONFIG_DEFAULT_STREAM_DEPTH 0
-
#ifdef UNITTESTS
static void SMBParserRegisterTests(void);
#endif