Project

General

Profile

Actions

Optimization #5434

open

app-layer: fix AppLayerParserGetTx (and friends) param confusion posibilities

Added by Victor Julien over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
Effort:
Difficulty:
Label:

Description

Avoid future #5408 by passing the Flow to AppLayerParserGetTx and similar API calls.

Something like:

void *AppLayerParserGetTx(const Flow *f, AppProto alproto, void *alstate, uint64_t tx_id);

Perhaps we can also take alstate from the Flow, but this needs a good review to see how the functions are called.

alproto is often a constant, so we should probably keep it that way.

No data to display

Actions

Also available in: Atom PDF