Add method to check if a parser for an app-layer protocol
supports tx detect flags.
This is a bit of a hack for now as where we need to run
this check from we do not have the IP protocol.
SCReturnInt(r);
}
+bool AppLayerParserSupportsTxDetectFlags(AppProto alproto)
+{
+ SCEnter();
+ for (uint8_t p = 0; p < FLOW_PROTO_APPLAYER_MAX; p++) {
+ if (alp_ctx.ctxs[p][alproto].GetTxDetectFlags != NULL) {
+ SCReturnBool(true);
+ }
+ }
+ SCReturnBool(false);
+}
+
uint64_t AppLayerParserGetTxDetectFlags(uint8_t ipproto, AppProto alproto, void *tx, uint8_t dir)
{
SCEnter();
uint64_t AppLayerParserGetTxDetectFlags(uint8_t ipproto, AppProto alproto, void *tx, uint8_t dir);
void AppLayerParserSetTxDetectFlags(uint8_t ipproto, AppProto alproto, void *tx, uint8_t dir, uint64_t);
+bool AppLayerParserSupportsTxDetectFlags(AppProto alproto);
/***** General *****/