Rename request-body-limit to request_body_limit to remain consistant with other options. Keep old notation around for compatibility.

remotes/origin/master-1.1.x
Victor Julien 16 years ago
parent 0d6d0ae371
commit a3303fcf9d

@ -1056,7 +1056,10 @@ static void HTPConfigure(void)
} }
} }
} else if (strcasecmp("request-body-limit", p->name) == 0) { /* VJ the non underscore version was a typo but keeping it for
* compatibility with existing installs */
} else if (strcasecmp("request-body-limit", p->name) == 0 ||
strcasecmp("request_body_limit", p->name) == 0) {
/* limit */ /* limit */
TAILQ_FOREACH(pval, &p->head, next) { TAILQ_FOREACH(pval, &p->head, next) {
SCLogDebug("LIBHTP default: %s=%s", SCLogDebug("LIBHTP default: %s=%s",
@ -1072,7 +1075,7 @@ static void HTPConfigure(void)
} }
else { else {
SCLogWarning(SC_ERR_UNKNOWN_VALUE, SCLogWarning(SC_ERR_UNKNOWN_VALUE,
"LIBHTP malformed request-body-limit " "LIBHTP malformed request_body_limit "
"\"%s\", using default %u", pval->val, "\"%s\", using default %u", pval->val,
HTP_CONFIG_DEFAULT_REQUEST_BODY_LIMIT); HTP_CONFIG_DEFAULT_REQUEST_BODY_LIMIT);
htprec->request_body_limit = HTP_CONFIG_DEFAULT_REQUEST_BODY_LIMIT; htprec->request_body_limit = HTP_CONFIG_DEFAULT_REQUEST_BODY_LIMIT;

@ -160,9 +160,6 @@ engine-analysis:
# might end up taking too much time in the content inspection code. # might end up taking too much time in the content inspection code.
# If the argument specified is 0, the engine uses an internally defined # If the argument specified is 0, the engine uses an internally defined
# default limit. On not specifying a value, we use no limits on the recursion. # default limit. On not specifying a value, we use no limits on the recursion.
#
# The option http-client-body-buffer-limit, is used to specify the buffer
# limit for http request body we inspect.
detect-engine: detect-engine:
- profile: medium - profile: medium
- custom-values: - custom-values:
@ -632,13 +629,13 @@ asn1_max_frames: 256
# #
# default-config: Used when no server-config matches # default-config: Used when no server-config matches
# personality: List of personalities used by default # personality: List of personalities used by default
# request-body-limit: Limit reassembly of request body for inspection # request_body_limit: Limit reassembly of request body for inspection
# by http_client_body & pcre /P option. # by http_client_body & pcre /P option.
# #
# server-config: List of server configurations to use if address matches # server-config: List of server configurations to use if address matches
# address: List of ip addresses or networks for this block # address: List of ip addresses or networks for this block
# personalitiy: List of personalities used by this block # personalitiy: List of personalities used by this block
# request-body-limit: Limit reassembly of request body for inspection # request_body_limit: Limit reassembly of request body for inspection
# by http_client_body & pcre /P option. # by http_client_body & pcre /P option.
# #
# Currently Available Personalities: # Currently Available Personalities:
@ -658,21 +655,21 @@ libhtp:
default-config: default-config:
personality: IDS personality: IDS
request-body-limit: 3072 request_body_limit: 3072
server-config: server-config:
- apache: - apache:
address: [192.168.1.0/24, 127.0.0.0/8, "::1"] address: [192.168.1.0/24, 127.0.0.0/8, "::1"]
personality: Apache_2_2 personality: Apache_2_2
request-body-limit: 4096 request_body_limit: 4096
- iis7: - iis7:
address: address:
- 192.168.0.0/24 - 192.168.0.0/24
- 192.168.10.0/24 - 192.168.10.0/24
personality: IIS_7_0 personality: IIS_7_0
request-body-limit: 4096 request_body_limit: 4096
# rule profiling settings. Only effective if Suricata has been built with the # rule profiling settings. Only effective if Suricata has been built with the
# the --enable-profiling configure flag. # the --enable-profiling configure flag.

Loading…
Cancel
Save