]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: track current tx_id in det_ctx
authorVictor Julien <victor@inliniac.net>
Thu, 14 Aug 2014 14:21:38 +0000 (16:21 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 15 Aug 2014 11:58:27 +0000 (13:58 +0200)
commit3b98a1ce66b4820e8170dcf16bcf2c19fe461867
tree3b24282b7a7d7fa30bebc1283a062bb9f4d869c3
parenta11478715019b07fc2c46e0fd5956298efbca74d
detect: track current tx_id in det_ctx

When using the inspection engines, track the current tx_id in the
thread storage the detect thread uses. As 0 is a valid tx_id, add
a simple bool that indicates if the tx_id field is set.
src/detect-engine-file.c
src/detect-engine-state.c
src/detect.h