]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #1569 in SNORT/snort3 from ~MASHASAN/snort3:tp_config_path to...
authorMike Stepanek (mstepane) <mstepane@cisco.com>
Tue, 9 Apr 2019 17:33:56 +0000 (13:33 -0400)
committerMike Stepanek (mstepane) <mstepane@cisco.com>
Tue, 9 Apr 2019 17:33:56 +0000 (13:33 -0400)
Squashed commit of the following:

commit da74dfd4ea9c7b2bfe51156c83cb0e4cf77ac987
Author: Masud Hasan <mashasan@cisco.com>
Date:   Tue Apr 2 09:18:00 2019 -0400

    snort2lua: Adding support for appid tp_config_path conversion

tools/snort2lua/preprocessor_states/pps_appid.cc

index 4df502e9a4871b3ac2f2dae175f3341a4f4027f7..0ba6b249c472569e3063de60a850d3942c245101 100644 (file)
@@ -137,6 +137,19 @@ bool AppId::convert(std::istringstream& data_stream)
                 tmpval = false;
             }
         }
+        else if (keyword == "tp_config_path")
+        {
+            std::string file_name;
+            if (arg_stream >> file_name)
+            {
+                tmpval = table_api.add_option("tp_appid_config", file_name);
+            }
+            else
+            {
+                data_api.failed_conversion(arg_stream,  "appid: tp_config_path <missing_arg>");
+                tmpval = false;
+            }
+        }
         else
         {
             tmpval = false;