diff --git a/doc/userguide/firewall/firewall-design.rst b/doc/userguide/firewall/firewall-design.rst index 36951962f8..b795e6bb51 100644 --- a/doc/userguide/firewall/firewall-design.rst +++ b/doc/userguide/firewall/firewall-design.rst @@ -62,7 +62,7 @@ Application layer tables ~~~~~~~~~~~~~~~~~~~~~~~~ If applayer is available, rules from the following tables apply. The tables for the -application layer are per app layer protocol and per protocol state. e.g. ``http:request_line``. +application layer are per app layer protocol and per protocol state. e.g. ``http1:request_line``. .. table:: diff --git a/doc/userguide/firewall/firewall-example.rst b/doc/userguide/firewall/firewall-example.rst index 002de6da7e..a4f6049c86 100644 --- a/doc/userguide/firewall/firewall-example.rst +++ b/doc/userguide/firewall/firewall-example.rst @@ -67,7 +67,7 @@ In the example below: the config auto accepts various hooks, leaving just ``http firewall: policies: - http: + http1: request-started: - "accept:hook" request-line: diff --git a/src/detect-parse.c b/src/detect-parse.c index a0af3fdd99..06c5578773 100644 --- a/src/detect-parse.c +++ b/src/detect-parse.c @@ -4176,7 +4176,7 @@ static int DoParseAppSubStatePolicy(const char *prefix, const AppProto app_proto nname[i] = '-'; } - const char *app_name = AppProtoToString(app_proto); + const char *app_name = AppProtoToStringRaw(app_proto); int r = snprintf(policy_name, sizeof(policy_name), "%s.%s.%s.%s", prefix, app_name, sub_state_name, nname); SCLogDebug("policy_name %s", policy_name); @@ -4245,7 +4245,7 @@ static int DoParseAppPolicy(const char *prefix, const AppProto app_proto, const nname[i] = '-'; } - const char *app_name = AppProtoToString(app_proto); + const char *app_name = AppProtoToStringRaw(app_proto); int r = snprintf(policy_name, sizeof(policy_name), "%s.%s.%s", prefix, app_name, nname); SCFree(nname); if (r < 0 || (size_t)r >= sizeof(policy_name)) {