forked from OISF/suricata
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
detect: unify functions for multi-buffer
Ticket: 6575 Multi buffers keywords now use a single registration function DetectAppLayerMultiRegister with a GetBuffer argument. This GetBuffer function pointer is similar to the ones used by single-buffer keyword, except that it takes an additional parameter which is the index of the buffer to get. Under the hood, an anonymous union between these 2 functions pointers types is used. In the end, this deduplicates code, especially the calls to DetectEngineContentInspection
- Loading branch information
1 parent
55bc5f2
commit ce16a56
Showing
21 changed files
with
366 additions
and
1,600 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.