Merge in SNORT/snort3 from ~VHORBATO/snort3:drs_change to master
Squashed commit of the following:
commit
2ec901b110ad16237d1e5c9f330cf8c7f8a6f23a
Author: Vitalii <vhorbato@cisco.com>
Date: Tue Jan 18 17:16:31 2022 +0200
detection: change output format of dump-rule-state
std::string action = Actions::get_string(rtn->action);
json.put("action", action.c_str());
- const char* s = rtn->enabled() ? "enabled" : "disabled";
- json.put("state", s);
+ const char* s = rtn->enabled() ? "yes" : "no";
+ json.put("enable", s);
json.close();
}