Package: libapache-mod-evasive / 2.4.0-3

Metadata

Package Version Patches format
libapache-mod-evasive 2.4.0-3 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
applied upstream/0001 Drop outdated hashtable entries.patch | (download)

mod_evasive24.c | 27 24 + 3 - 0 !
1 file changed, 24 insertions(+), 3 deletions(-)

 drop outdated hashtable entries

Drop IP entries that had no hits in more than 6 hours.

applied upstream/0002 Grow hashtable on congestion.patch | (download)

mod_evasive24.c | 96 93 + 3 - 0 !
1 file changed, 93 insertions(+), 3 deletions(-)

 grow hashtable on congestion

Avoid lookup slowdown when the number of stored items approaches the
number of buckets in the hashtable by dynamically increasing its size.

applied upstream/0003 Update mod_evasive24.c.patch | (download)

mod_evasive24.c | 7 5 + 2 - 0 !
1 file changed, 5 insertions(+), 2 deletions(-)

 update mod_evasive24.c
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Fix two warnings during compilation:

mod_evasive24.c: In function 'access_checker':
mod_evasive24.c:547:38: warning: format '%ld' expects argument of type 'long int', but argument 3 has type '__pid_t' {aka 'int'} [-Wformat=]
  547 |                     fprintf(file, "%ld\n", getpid());
      |                                    ~~^     ~~~~~~~~
      |                                      |     |
      |                                      |     __pid_t {aka int}
      |                                      long int
      |                                    %d
mod_evasive24.c:564:25: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result]
  564 |                         system(filename);
      |                         ^~~~~~~~~~~~~~~~


applied upstream/0004 Quote value in log message.patch | (download)

mod_evasive24.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 quote value in log message

The reason can consist of multiple words, e.g. `URI blocklist`, so quote
it to comply with the usual format and not break field extraction during
log analysis.

0005 Use djb2 for string hashing.patch | (download)

mod_evasive24.c | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 use djb2 for string hashing

Use a well-established string hashing function instead of a custom one.

0006 Additional checks for client family in dual stack en.patch | (download)

mod_evasive24.c | 22 18 + 4 - 0 !
1 file changed, 18 insertions(+), 4 deletions(-)

 additional checks for client family in dual stack environments