mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Using RadixTree instead of list to storage IPs
Used by the operator @ipMatch and variants, this structure storage all the IPs addresses for later comparison. Last version was using RadixTree only if the set of IPs was specified from files. IPs specified as parameters, was using a chained list. Chained lists may affect the performance, since lookups in worst case will be O(n). RadixTrees could provide better results depending on the amount of elements and its contents.
This commit is contained in:
@@ -148,14 +148,10 @@ extern DSOLOCAL int status_engine_state;
|
||||
extern DSOLOCAL unsigned long int conn_read_state_limit;
|
||||
extern DSOLOCAL TreeRoot *conn_read_state_whitelist;
|
||||
extern DSOLOCAL TreeRoot *conn_read_state_suspicious_list;
|
||||
extern DSOLOCAL msre_ipmatch *conn_read_state_whitelist_param;
|
||||
extern DSOLOCAL msre_ipmatch *conn_read_state_suspicious_list_param;
|
||||
|
||||
extern DSOLOCAL unsigned long int conn_write_state_limit;
|
||||
extern DSOLOCAL TreeRoot *conn_write_state_whitelist;
|
||||
extern DSOLOCAL TreeRoot *conn_write_state_suspicious_list;
|
||||
extern DSOLOCAL msre_ipmatch *conn_write_state_whitelist_param;
|
||||
extern DSOLOCAL msre_ipmatch *conn_write_state_suspicious_list_param;
|
||||
|
||||
extern DSOLOCAL unsigned long int unicode_codepage;
|
||||
|
||||
|
Reference in New Issue
Block a user