Implement Aho-Corasick algorithm

This commit is contained in:
Vadim Vetrov
2025-02-02 19:08:47 +03:00
parent d9c360910b
commit d225e673c7
7 changed files with 390 additions and 2 deletions

View File

@@ -68,6 +68,7 @@ typedef __s16 int_least16_t; /* integer of >= 16 bits */
#define free kfree
#define malloc(size) kmalloc((size), GFP_KERNEL)
#define realloc(pt, size) krealloc((pt), (size), GFP_KERNEL)
#define calloc(n, size) kcalloc((n), (size), GFP_KERNEL)
#define ip6_hdr ipv6hdr