diff --git a/src/app-layer-register.c b/src/app-layer-register.c index 2f21709e3b..52bb46602d 100644 --- a/src/app-layer-register.c +++ b/src/app-layer-register.c @@ -162,6 +162,11 @@ int AppLayerRegisterParser(const struct AppLayerParser *p, AppProto alproto) p->StateGetFiles); } + if (p->GetTxIterator) { + AppLayerParserRegisterGetTxIterator(p->ip_proto, alproto, + p->GetTxIterator); + } + return 0; } diff --git a/src/app-layer-register.h b/src/app-layer-register.h index 872dca7a92..c7bb7d4e39 100644 --- a/src/app-layer-register.h +++ b/src/app-layer-register.h @@ -65,6 +65,10 @@ typedef struct AppLayerParser { int (*SetTxMpmIDs)(void *tx, uint64_t); FileContainer *(*StateGetFiles)(void *, uint8_t); + + AppLayerGetTxIterTuple (*GetTxIterator)(const uint8_t ipproto, + const AppProto alproto, void *alstate, uint64_t min_tx_id, + uint64_t max_tx_id, AppLayerGetTxIterState *istate); } AppLayerParser; /**