mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
Code cleanup in RE_Matcher code
- Use std::string in Specific_RE_Matcher instead of char* - Change a couple of ints-as-bools to bools
This commit is contained in:
parent
abf2da781d
commit
f67f6e4507
6 changed files with 23 additions and 43 deletions
|
@ -145,7 +145,7 @@ TeredoAnalyzer::TeredoAnalyzer() : zeek::packet_analysis::Analyzer("TEREDO")
|
|||
// }
|
||||
|
||||
pattern_re = std::make_unique<zeek::detail::Specific_RE_Matcher>(zeek::detail::MATCH_EXACTLY,
|
||||
1);
|
||||
true);
|
||||
pattern_re->AddPat("^(\\x00\\x00)|(\\x00\\x01)|([\\x60-\\x6f].{7}((\\x20\\x01\\x00\\x00)).{28})"
|
||||
"|([\\x60-\\x6f].{23}((\\x20\\x01\\x00\\x00))).{12}");
|
||||
pattern_re->Compile();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue