]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Change the profile name 'all' to 'default'
authorBhagyashree Bantwal <bbantwal@cisco.com>
Wed, 14 Jan 2015 21:32:12 +0000 (16:32 -0500)
committerBhagyashree Bantwal <bbantwal@cisco.com>
Wed, 14 Jan 2015 21:32:12 +0000 (16:32 -0500)
lua/snort_defaults.lua
src/service_inspectors/http_inspect/hi_client.cc
src/service_inspectors/http_inspect/hi_main.cc
src/service_inspectors/http_inspect/hi_module.cc
src/service_inspectors/http_inspect/hi_server.cc
src/service_inspectors/http_inspect/hi_ui_config.h

index 554ae6de7313104b7c9f605dc400e31eca4c4fbc..08f7d0a73e4a041e7793d3b5b878c04d04768f55 100644 (file)
@@ -211,9 +211,9 @@ http_methods =  -- build from default_http_methods
     'RPC_IN_DATA', 'RPC_OUT_DATA', 'RPC_ECHO_DATA'
 }
 
-http_profile_all = 
+http_profile_default = 
 {
-    profile_type = 'all',
+    profile_type = 'default',
     server_flow_depth = 300,
     client_flow_depth = 300,
     post_depth = -1,
index 51d53bcc62ab6f079cf65368282b150628a72dd4..6cded8df6d60fe8d602e26ef33bf00dbc62e5442 100644 (file)
@@ -1986,7 +1986,7 @@ const u_char *extract_http_content_length(HI_SESSION *session,
         p++;
         if (  hi_util_in_bounds(start, end, p) )
         {
-            if ( ServerConf->profile == HI_APACHE || ServerConf->profile == HI_ALL)
+            if ( ServerConf->profile == HI_APACHE || ServerConf->profile == HI_DEFAULT)
             {
                 SkipWhiteSpace(start,end,&p);
             }
@@ -2019,7 +2019,7 @@ const u_char *extract_http_content_length(HI_SESSION *session,
                                 if ( isdigit((int)*p))
                                     break;
                                 else if(isspace((int)*p) &&
-                                        (ServerConf->profile == HI_APACHE || ServerConf->profile == HI_ALL) )
+                                        (ServerConf->profile == HI_APACHE || ServerConf->profile == HI_DEFAULT) )
                                 {
                                     SkipWhiteSpace(start,end,&p);
                                 }
@@ -2085,7 +2085,7 @@ const u_char *extract_http_content_length(HI_SESSION *session,
                         }
                         else
                         {
-                            if (ServerConf->profile == HI_APACHE || ServerConf->profile == HI_ALL)
+                            if (ServerConf->profile == HI_APACHE || ServerConf->profile == HI_DEFAULT)
                             {
                                 SkipWhiteSpace(start,end,&p);
                             }
index 6977b27468b03c03259ec4e2de1dc5ea235993c7..9391281a4bec896d2902d692228d657d3b4d8953 100644 (file)
@@ -188,7 +188,7 @@ int PrintServerConf(HTTPINSPECT_CONF *ServerConf)
 
     prof = ServerConf->profile;
     LogMessage("      Server profile: %s\n",
-        prof==HI_ALL?"All":
+        prof==HI_DEFAULT?"Default":
         prof==HI_APACHE?"Apache":
         prof==HI_IIS?"IIS":
         prof==HI_IIS4?"IIS4":"IIS5");
index 14a9c10cfffd896fa16b8e0bcbdc8b10cfc0c5fb..da34abdc51ec66de2ee156fac1ec1b67eb7f33ab 100644 (file)
@@ -250,7 +250,7 @@ bool HttpInspectModule::end(const char* fqn, int, SnortConfig*)
 // http_server module
 //-------------------------------------------------------------------------
 
-#define profiles "all | apache | iis | iis_40 | iis_50"
+#define profiles "default | apache | iis | iis_40 | iis_50"
 
 #define default_methods \
     "GET POST PUT SEARCH MKCOL COPY MOVE LOCK UNLOCK NOTIFY POLL BCOPY " \
@@ -329,7 +329,7 @@ static const Parameter hi_profile_server_params[] =
     { "post_depth", Parameter::PT_INT, "-1:65535", "65495",
       "amount of POST data to inspect" },
 
-    { "profile_type", Parameter::PT_ENUM, profiles, "all",
+    { "profile_type", Parameter::PT_ENUM, profiles, "default",
       "set defaults appropriate for selected server" },
 
     { "server_flow_depth", Parameter::PT_INT, "-1:65535", "0",
index 5b206983954ced0ab72b43f051dd99a4a3f0d4bc..f25a077aaa17c9ba518f35f7edce5a098285d2ee 100644 (file)
@@ -420,7 +420,7 @@ static inline const u_char *extract_http_content_encoding(HTTPINSPECT_CONF *Serv
         p++;
         if (  hi_util_in_bounds(start, end, p) )
         {
-            if ( ServerConf->profile == HI_APACHE || ServerConf->profile == HI_ALL)
+            if ( ServerConf->profile == HI_APACHE || ServerConf->profile == HI_DEFAULT)
             {
                 SkipWhiteSpace(start,end,&p);
             }
@@ -446,7 +446,7 @@ static inline const u_char *extract_http_content_encoding(HTTPINSPECT_CONF *Serv
                             {
                                 if ( isalpha((int)*p))
                                     break;
-                                else if(isspace((int)*p) && (ServerConf->profile == HI_APACHE || ServerConf->profile == HI_ALL) )
+                                else if(isspace((int)*p) && (ServerConf->profile == HI_APACHE || ServerConf->profile == HI_DEFAULT) )
                                 {
                                     SkipWhiteSpace(start,end,&p);
                                 }
index b02e2800cb3e4ae4721ca7ccbfc51956b1c6ec52..5e1fec198827473d78633c23e841bcd0aa70691f 100644 (file)
@@ -70,7 +70,7 @@ struct HTTPINSPECT_CONF_OPT
  * and debugging information. */
 enum PROFILES
 {
-    HI_ALL,
+    HI_DEFAULT,
     HI_APACHE,
     HI_IIS,
     HI_IIS4,