nflog: warn if buffer-size is larger than max-size

If buffer-size is larger than max size, give a warning and adjust
buffer-size to max-size.
pull/978/head
Victor Julien 11 years ago
parent 462f9de134
commit 26c0915375

@ -132,6 +132,12 @@ void *ParseNflogConfig(const char *group)
return NULL;
}
if (nflogconf->nlbufsiz > nflogconf->nlbufsiz_max) {
SCLogWarning(SC_ERR_INVALID_ARGUMENT, "buffer-size value larger "
"than max-size value, adjusting buffer-size");
nflogconf->nlbufsiz = nflogconf->nlbufsiz_max;
}
boolval = ConfGetChildValueIntWithDefault(group_root, group_default,
"qthreshold", &qthreshold);

Loading…
Cancel
Save