]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
exception-policy: rename 'reject-both' to 'rejectboth'
authorVictor Julien <vjulien@oisf.net>
Sat, 1 Nov 2025 07:57:23 +0000 (08:57 +0100)
committerVictor Julien <vjulien@oisf.net>
Tue, 4 Nov 2025 20:48:20 +0000 (20:48 +0000)
To align it with the rule action.

(cherry picked from commit ec65fd430e931e99b01aea162f88d16efab2e533)

doc/userguide/configuration/exception-policies.rst
src/util-exception-policy.c

index f051988f5072945257bfd0885c44981613a1a03a..8034366c97bf14131d0f2d70c52a99492b971417 100644 (file)
@@ -118,7 +118,7 @@ are:
 - ``drop-packet``: drop the packet.
 - ``reject``: same as ``drop-flow``, but reject the current packet as well (see
   ``reject`` action in Rule's :ref:`actions`).
-- ``reject-both``: same as ``reject``, except that it sends reject packets to both the
+- ``rejectboth``: same as ``reject``, except that it sends reject packets to both the
   source and destination addresses.
 - ``bypass``: bypass the flow. No further decoding or parsing is done. :ref:`Bypass
   <bypass>` may be offloaded.
@@ -155,7 +155,7 @@ midstream pick-ups enabled or not and the various exception policy values:
    * - Drop-packet
      - Not valid.*
      - Not valid.*
-   * - Reject / Reject-both
+   * - Reject / Rejectboth
      - Not valid.*
      - Session not tracked, flow REJECTED.
    * - Pass-flow
@@ -194,7 +194,7 @@ whole flow.
    * - Drop-packet
      - Not valid.*
      - Not valid.*
-   * - Reject / Reject-both
+   * - Reject / Rejectboth
      - Not valid.*
      - Session not tracked, flow DROPPED and REJECTED.
    * - Pass-flow
index d18aa5270629688159364ed24b0763573d583dde..f3404b54c6a8c88011d31178df0ddcec81d5d719 100644 (file)
@@ -238,7 +238,7 @@ static enum ExceptionPolicy ExceptionPolicyConfigValueParse(
         policy = EXCEPTION_POLICY_PASS_PACKET;
     } else if (strcmp(value_str, "reject") == 0) {
         policy = EXCEPTION_POLICY_REJECT;
-    } else if (strcmp(value_str, "reject-both") == 0) {
+    } else if (strcmp(value_str, "rejectboth") == 0) {
         policy = EXCEPTION_POLICY_REJECT_BOTH;
     } else if (strcmp(value_str, "ignore") == 0) { // TODO name?
         policy = EXCEPTION_POLICY_NOT_SET;