"num | !num" },
{ "relative", Parameter::PT_IMPLIED, nullptr, nullptr,
- "num | !num" },
+ "offset from cursor instead of start of buffer" },
{ nullptr, Parameter::PT_MAX, nullptr, nullptr, nullptr }
};
get_parse_location(file_name, file_line);
if (file_line )
- LogMessage("ERROR: %s:%d %s\n", file_name, file_line, buf);
+ ErrorMessage("ERROR: %s:%d %s\n", file_name, file_line, buf);
else
- LogMessage("ERROR: %s\n", buf);
+ ErrorMessage("ERROR: %s\n", buf);
parse_errors++;
}
bool add_rule_option(std::string keyword, std::string val);
// add a rule option (keyword and suboption)
bool add_rule_option_before_selected(std::string keyword, std::string val = std::string());
+ // FIXIT-L J this function should definitely be removed
// selects the rule option with the given name. MUST BE CALLED BEFORE ADDING A SUBOPTION.
bool select_option(std::string keyword);
// clear the selected option.
rule_content.cc
rule_file_data.cc
rule_http_encode.cc
+ rule_isdataat.cc
rule_metadata.cc
rule_pcre.cc
rule_react.cc
rule_content.cc \
rule_file_data.cc \
rule_http_encode.cc \
+rule_isdataat.cc \
rule_metadata.cc \
rule_pcre.cc \
rule_react.cc \
rule_api.add_rule_option("tag", type);
rule_api.select_option("tag");
+ if (packets > 0)
+ rule_api.add_suboption("packets", std::to_string(packets));
+
if (seconds > 0)
rule_api.add_suboption("seconds", std::to_string(seconds));
if (bytes > 0)
rule_api.add_suboption("bytes", std::to_string(bytes));
- if (packets > 0)
- rule_api.add_suboption("packets", std::to_string(packets));
- }
+ rule_api.unselect_option();
+ }
}
-
return set_next_rule_state(data_stream);
}
const ConvertMap* base64_data_map = &rule_base64_data;
-/************************************
- *********** ISDATAAT **************
- ************************************/
-
-static const std::string isdataat = "isdataat";
-static const ConvertMap rule_isdataat =
-{
- isdataat,
- unchanged_rule_ctor<&isdataat>,
-};
-
-const ConvertMap* isdataat_map = &rule_isdataat;
-
/************************************
************* ASN1 ***************
************************************/