]> git.ipfire.org Git - people/ms/suricata.git/commit
rust/app-layer: provide generic implementation of iterator
authorJason Ish <jason.ish@oisf.net>
Thu, 14 Oct 2021 18:37:03 +0000 (12:37 -0600)
committerVictor Julien <vjulien@oisf.net>
Mon, 22 Nov 2021 09:20:22 +0000 (10:20 +0100)
commit049d43212ee7954dea43c5b71d8d2f184189aea5
treeeeafd0101a6975d676e881ca1786ac8bd0481a66
parent6d5f59696dda77e1e7b2c45f51413b76690da4e9
rust/app-layer: provide generic implementation of iterator

Create traits for app-layer State and Transaction that allow
a generic implementation of a transaction iterator that parser
can use when the follow the common pattern for iterating
transactions.

Also convert DNS to use the generic for testing purposes.
rust/src/applayer.rs
rust/src/dns/dns.rs