forked from OISF/suricata
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dns: provide events for recoverable parse errors
Add events for the following resource name parsing issues: - name truncated as its too long - maximum number of labels reached - infinite loop Currently these events are only registered when encountered, but recoverable. That is where we are able to return some of the name, usually in a truncated state. As name parsing has many code paths, we pass in a point to a flag fields that can be updated by the name parser, this is done in addition to the flags being set on a specific name as when logging we want to designate which fields are truncated, etc. But for alerts, we just care that something happened during the parse. It also reduces errors as it won't be forgotten to check for the flags and set the event if some new parser is written that also parses names.
- Loading branch information
Showing
3 changed files
with
142 additions
and
61 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
Oops, something went wrong.