exit(EXIT_FAILURE);
}
cfg_prec->randomize_range = range;
+ } else if (strcasecmp("http-body-inline", p->name) == 0) {
+ if (ConfValIsTrue(p->val)) {
+ cfg_prec->http_body_inline = 1;
+ } else if (ConfValIsFalse(p->val)) {
+ cfg_prec->http_body_inline = 0;
+ } else {
+ if (strcmp("auto", p->val) != 0) {
+ WarnInvalidConfEntry("http_body_inline", "%s", "auto");
+ }
+ if (EngineModeIsIPS()) {
+ cfg_prec->http_body_inline = 1;
+ } else {
+ cfg_prec->http_body_inline = 0;
+ }
+ }
} else {
SCLogWarning(SC_ERR_UNKNOWN_VALUE, "LIBHTP Ignoring unknown "
"default config: %s", p->name);
request-body-inspect-window: 4kb
response-body-minimal-inspect-size: 32kb
response-body-inspect-window: 4kb
+
+ # auto will use http-body-inline mode in IPS mode, yes or no set it statically
+ http-body-inline: auto
+
# Take a random value for inspection sizes around the specified value.
# This lower the risk of some evasion technics but could lead
# detection change between runs. It is set to 'yes' by default.