From: Mike Stepanek (mstepane) Date: Wed, 26 Jan 2022 13:38:03 +0000 (+0000) Subject: Pull request #3242: detection: change output format of dump-rule-state X-Git-Tag: 3.1.22.0~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c37a8b0a7727ae8d14d9f1ecf9574eaab959585;p=thirdparty%2Fsnort3.git Pull request #3242: detection: change output format of dump-rule-state Merge in SNORT/snort3 from ~VHORBATO/snort3:drs_change to master Squashed commit of the following: commit 2ec901b110ad16237d1e5c9f330cf8c7f8a6f23a Author: Vitalii Date: Tue Jan 18 17:16:31 2022 +0200 detection: change output format of dump-rule-state --- diff --git a/src/detection/signature.cc b/src/detection/signature.cc index eb8e39656..2ba2f3d33 100644 --- a/src/detection/signature.cc +++ b/src/detection/signature.cc @@ -480,8 +480,8 @@ void dump_rule_state(const SnortConfig* sc) 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(); }