diff --git a/doc/userguide/configuration/exception-policies.rst b/doc/userguide/configuration/exception-policies.rst index f051988f50..8034366c97 100644 --- a/doc/userguide/configuration/exception-policies.rst +++ b/doc/userguide/configuration/exception-policies.rst @@ -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 ` 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 diff --git a/src/util-exception-policy.c b/src/util-exception-policy.c index d18aa52706..f3404b54c6 100644 --- a/src/util-exception-policy.c +++ b/src/util-exception-policy.c @@ -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;