Squashed commit of the following:
commit
7ee3dce4ab3049449811c4bb4cc933c1c5e5ea1c
Author: Oleksii Shumeiko <oshumeik@cisco.com>
Date: Thu Jul 8 13:49:40 2021 +0300
snort2lua: set raw_data buffer for rawbytes and B flag in PCRE
Snort2 implemented the following list of "sticky" buffer rule options:
* pkt_data
+* raw_data
* file_data
* dce_stub_fdata
* dnp3_data
rule_api.add_suboption("relative");
else if (value == "rawbytes")
- rule_api.set_curr_options_buffer("pkt_data");
+ rule_api.set_curr_options_buffer("raw_data");
else
rule_api.bad_rule(data_stream, value + " - unknown modifier!!");
switch (c)
{
- case 'B': sticky_buffer = "pkt_data"; break;
+ case 'B': sticky_buffer = "raw_data"; break;
case 'U': sticky_buffer = "http_uri"; break;
case 'P': sticky_buffer = "pcre_P_option_body"; break;
case 'H': sticky_buffer = "pcre_H_option_header"; break;