SCReturn;
}
-int AppLayerParserHasDecoderEvents(const Flow *f,
- void *alstate, AppLayerParserState *pstate,
- uint8_t flags)
+bool AppLayerParserHasDecoderEvents(const Flow *f,
+ void *alstate, AppLayerParserState *pstate,
+ const uint8_t flags)
{
SCEnter();
/* if we have reached here, we don't have events */
not_present:
- SCReturnInt(0);
+ return false;
present:
- SCReturnInt(1);
+ return true;
}
/** \brief simpler way to globally test if a alproto is registered
int AppLayerParserParse(ThreadVars *tv, AppLayerParserThreadCtx *tctx, Flow *f, AppProto alproto,
uint8_t flags, uint8_t *input, uint32_t input_len);
void AppLayerParserSetEOF(AppLayerParserState *pstate);
-int AppLayerParserHasDecoderEvents(const Flow *f, void *alstate, AppLayerParserState *pstate,
- uint8_t flags);
+bool AppLayerParserHasDecoderEvents(const Flow *f, void *alstate, AppLayerParserState *pstate,
+ const uint8_t flags);
int AppLayerParserIsTxAware(AppProto alproto);
int AppLayerParserProtocolIsTxAware(uint8_t ipproto, AppProto alproto);
int AppLayerParserProtocolIsTxEventAware(uint8_t ipproto, AppProto alproto);
*/
void
PacketCreateMask(Packet *p, SignatureMask *mask, AppProto alproto,
- bool has_state, int app_decoder_events)
+ bool has_state, bool app_decoder_events)
{
if (!(p->flags & PKT_NOPAYLOAD_INSPECTION) && p->payload_len > 0) {
SCLogDebug("packet has payload");
#define __DETECT_ENGINE_BUILD_H__
void PacketCreateMask(Packet *p, SignatureMask *mask, AppProto alproto,
- bool has_state, int app_decoder_events);
+ bool has_state, bool app_decoder_events);
int SignatureIsFilestoring(const Signature *);
int SignatureIsFilemagicInspecting(const Signature *);
const Signature *s = NULL;
const Signature *next_s = NULL;
int state_alert = 0;
- int app_decoder_events = 0;
+ bool app_decoder_events = false;
bool has_state = false; /* do we have an alstate to work with? */
SCEnter();