]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #2185 in SNORT/snort3 from ~BBANTWAL/snort3:sort_inspectors to...
authorBhagya Tholpady (bbantwal) <bbantwal@cisco.com>
Wed, 29 Apr 2020 14:04:03 +0000 (14:04 +0000)
committerBhagya Tholpady (bbantwal) <bbantwal@cisco.com>
Wed, 29 Apr 2020 14:04:03 +0000 (14:04 +0000)
Squashed commit of the following:

commit 5ab5610b9202d21193722a4a3957d84e851a3fa5
Author: Bhagya Tholpady <bbantwal@cisco.com>
Date:   Mon Apr 27 18:49:47 2020 -0400

    managers: sort the inspector list in inspection policy using the instance name

    sort the inspector instances in inspection policy by name rather
    than type to obtain an alphabetically sorted verbose inspector
    config output.

src/managers/inspector_manager.cc

index 53d0d6319f3432701c347f52186dad06c8350bdf..45f5c51aa9a5707cf10f2bb2fc4db3315b02a3eb 100644 (file)
@@ -112,7 +112,7 @@ struct PHInstance
     ~PHInstance();
 
     static bool comp(PHInstance* a, PHInstance* b)
-    { return ( a->pp_class.api.type < b->pp_class.api.type ); }
+    { return ( a->name < b->name ); }
 
     void set_name(const char* s)
     { name = s; }