]> git.ipfire.org Git - thirdparty/suricata.git/commit
Introduce host table, make tag use it
authorVictor Julien <victor@inliniac.net>
Wed, 14 Mar 2012 06:56:11 +0000 (07:56 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 14 Mar 2012 06:56:11 +0000 (07:56 +0100)
commita05df345de3560c720d73e06da8567b630e40b91
tree448be89e5260b36d7aa961448783f8929de1355e
parentdb24258acf214f90e56c31440f91a2c498e71b7a
Introduce host table, make tag use it

Add a host table similar to the flow table. A hash using fine grained
locking. Flow manager for now takes care of book keeping / garbage
collecting.

Tag subsystem now uses this for host based tagging instead of the
global tag hash table. Because the latter used a global lock and the
new code uses very fine grained locking this patch should improve
scalability.
15 files changed:
src/Makefile.am
src/detect-engine-tag.c
src/detect-engine-tag.h
src/detect-tag.c
src/detect-tag.h
src/detect.h
src/flow-manager.c
src/flow.h
src/host-queue.c [new file with mode: 0644]
src/host-queue.h [new file with mode: 0644]
src/host-timeout.c [new file with mode: 0644]
src/host-timeout.h [new file with mode: 0644]
src/host.c
src/host.h
src/suricata.c