|
|
|
@ -1630,17 +1630,20 @@ int AppLayerProtoDetectConfProtoDetectionEnabled(const char *ipproto,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (strcasecmp(node->val, "yes") == 0) {
|
|
|
|
if (node->val) {
|
|
|
|
goto enabled;
|
|
|
|
if (ConfValIsTrue(node->val)) {
|
|
|
|
} else if (strcasecmp(node->val, "no") == 0) {
|
|
|
|
goto enabled;
|
|
|
|
goto disabled;
|
|
|
|
} else if (ConfValIsFalse(node->val)) {
|
|
|
|
} else if (strcasecmp(node->val, "detection-only") == 0) {
|
|
|
|
goto disabled;
|
|
|
|
goto enabled;
|
|
|
|
} else if (strcasecmp(node->val, "detection-only") == 0) {
|
|
|
|
} else {
|
|
|
|
goto enabled;
|
|
|
|
SCLogError(SC_ERR_FATAL, "Invalid value found for %s.", param);
|
|
|
|
}
|
|
|
|
exit(EXIT_FAILURE);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Invalid or null value. */
|
|
|
|
|
|
|
|
SCLogError(SC_ERR_FATAL, "Invalid value found for %s.", param);
|
|
|
|
|
|
|
|
exit(EXIT_FAILURE);
|
|
|
|
|
|
|
|
|
|
|
|
disabled:
|
|
|
|
disabled:
|
|
|
|
enabled = 0;
|
|
|
|
enabled = 0;
|
|
|
|
enabled:
|
|
|
|
enabled:
|
|
|
|
|