Vitaly Lavrov
c418b7110b
ahoсorasick. Code review. Part 2. ( #1236 )
...
Simplified the process of adding lines to AC_AUTOMATA_t.
Use the ndpi_string_to_automa() function to add patterns with domain names.
For other cases can use ndpi_add_string_value_to_automa().
ac_automata_feature(ac_automa, AC_FEATURE_LC) allows adding
and compare data in a case insensitive manner. For mandatory pattern comparison
from the end of the line, the "ac_pattern.rep.at_end=1" flag is used.
This eliminated unnecessary conversions to lowercase and adding "$" for
end-of-line matching in domain name patterns.
ac_match_handler() has been renamed ac_domain_match_handler() and has been greatly simplified.
ac_domain_match_handler() looks for the template with the highest domain level.
For special cases it is possible to manually specify the domain level.
Added test for checking ambiguous domain names like:
- short.weixin.qq.com is QQ, not Wechat
- instagram.faae1-1.fna.fbcdn.net is Instagram, not Facebook
If you specify a NULL handler when creating the AC_AUTOMATA_t structure,
then a pattern with the maximum length that satisfies the search conditions will be found
(exact match, from the beginning of the string, from the end of the string, or a substring).
Added debugging for ac_automata_search.
To do this, you need to enable debugging globally using ac_automata_enable_debug(1) and
enable debugging in the AC_AUTOMATA_t structure using ac_automata_name("name", AC_FEATURE_DEBUG).
The search will display "name" and a list of matching patterns.
Running "AHO_DEBUG=1 ndpiReader ..." will show the lines that were searched for templates
and which templates were found.
The ac_automata_dump() prototype has been changed. Now it outputs data to a file.
If it is specified as NULL, then the output will be directed to stdout.
If you need to get data as a string, then use open_memstream().
Added the ability to run individual tests via the do.sh script
2021-07-12 17:39:43 +02:00
..
2021-05-18 21:05:47 +02:00
2020-07-30 00:06:46 +02:00
2021-05-13 20:00:27 +02:00
2021-05-18 21:05:47 +02:00
2020-07-30 00:06:46 +02:00
2020-07-30 00:06:46 +02:00
2021-05-13 20:00:27 +02:00
2021-05-13 20:00:27 +02:00
2021-05-13 20:00:27 +02:00
2020-07-30 00:06:46 +02:00
2021-05-13 20:00:27 +02:00
2021-03-23 11:46:12 +01:00
2020-07-30 00:06:46 +02:00
2021-07-08 20:05:50 +02:00
2020-11-09 16:23:01 +01:00
2020-07-30 00:06:46 +02:00
2021-07-08 20:05:50 +02:00
2021-07-08 20:05:50 +02:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2020-03-23 10:06:16 +01:00
2020-07-30 00:06:46 +02:00
2020-07-30 00:06:46 +02:00
2020-11-27 18:51:56 +01:00
2021-07-08 20:05:50 +02:00
2021-07-08 20:05:50 +02:00
2021-07-08 20:05:50 +02:00
2021-07-08 20:05:50 +02:00
2020-11-27 18:51:56 +01:00
2020-07-30 00:06:46 +02:00
2021-05-13 20:51:11 +02:00
2020-11-27 18:51:56 +01:00
2020-10-22 18:39:13 +02:00
2020-12-08 15:48:53 +01:00
2020-07-30 00:06:46 +02:00
2020-12-30 12:12:33 +01:00
2020-11-27 18:51:56 +01:00
2021-07-12 17:39:43 +02:00
2021-05-13 20:00:27 +02:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2021-03-03 19:30:01 +01:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2021-01-07 10:56:39 +01:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2020-07-30 00:06:46 +02:00
2020-07-30 00:06:46 +02:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2021-05-13 20:00:27 +02:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2021-07-08 20:05:50 +02:00
2021-05-17 20:55:06 +02:00
2021-05-13 20:00:27 +02:00
2020-11-27 18:51:56 +01:00
2021-05-18 21:05:47 +02:00
2021-07-08 20:05:50 +02:00
2021-07-08 20:05:50 +02:00
2021-07-08 20:05:50 +02:00
2021-05-18 21:05:47 +02:00
2020-11-27 18:51:56 +01:00
2021-04-18 21:37:51 +02:00
2021-04-25 10:06:22 +02:00
2020-11-27 18:51:56 +01:00
2020-07-30 00:06:46 +02:00
2021-05-18 21:05:47 +02:00
2021-01-07 10:55:23 +01:00
2020-07-30 00:06:46 +02:00
2021-05-18 21:05:47 +02:00
2021-04-20 14:12:16 +02:00
2021-05-18 21:05:47 +02:00
2020-07-30 00:06:46 +02:00
2021-05-18 21:05:47 +02:00
2020-11-27 18:51:56 +01:00
2021-02-10 15:22:20 +01:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2021-02-03 11:48:53 +01:00
2021-07-08 20:05:50 +02:00
2020-07-30 00:06:46 +02:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2021-07-08 20:05:50 +02:00
2020-07-30 00:06:46 +02:00
2021-05-13 20:00:27 +02:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2020-08-23 13:32:36 +02:00
2021-05-18 21:05:47 +02:00
2020-11-03 16:16:02 +01:00
2020-07-30 00:06:46 +02:00
2020-07-30 00:06:46 +02:00
2020-07-30 00:06:46 +02:00
2020-08-21 07:17:34 +02:00
2020-07-30 00:06:46 +02:00
2021-07-06 18:57:52 +02:00
2020-11-27 18:51:56 +01:00
2021-03-03 00:41:07 +01:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2020-07-30 00:06:46 +02:00
2020-07-30 00:06:46 +02:00
2021-05-18 21:05:47 +02:00
2021-05-13 20:00:27 +02:00
2020-07-30 00:06:46 +02:00
2020-07-30 00:06:46 +02:00
2020-07-30 00:06:46 +02:00
2021-05-18 21:05:47 +02:00
2020-11-27 18:51:56 +01:00
2020-07-30 00:06:46 +02:00
2021-05-18 21:05:47 +02:00
2020-11-27 18:51:56 +01:00
2021-05-13 20:00:27 +02:00
2021-07-08 20:05:50 +02:00
2020-11-27 18:51:56 +01:00
2021-01-07 10:55:23 +01:00
2020-12-30 12:12:33 +01:00
2021-06-24 18:30:34 +02:00
2021-06-24 18:30:34 +02:00
2021-05-18 21:05:47 +02:00
2021-01-07 10:55:23 +01:00
2021-01-07 10:55:23 +01:00
2021-01-07 10:55:23 +01:00
2021-01-07 10:55:23 +01:00
2021-01-07 10:55:23 +01:00
2020-12-30 12:12:33 +01:00
2020-12-30 12:12:33 +01:00
2020-12-30 12:12:33 +01:00
2021-05-13 20:00:27 +02:00
2020-12-30 12:12:33 +01:00
2020-12-30 12:12:33 +01:00
2021-05-13 20:00:27 +02:00
2021-05-18 21:05:47 +02:00
2020-11-27 18:51:56 +01:00
2020-12-30 12:12:33 +01:00
2021-03-02 21:15:02 +01:00
2020-12-30 12:12:33 +01:00
2021-05-18 21:05:47 +02:00
2020-11-27 18:51:56 +01:00
2021-05-18 21:05:47 +02:00
2021-02-05 22:22:33 +01:00
2021-02-05 22:22:33 +01:00
2021-05-18 21:05:47 +02:00
2021-07-07 09:55:36 +02:00
2020-07-30 00:06:46 +02:00
2020-07-30 00:06:46 +02:00
2021-05-18 21:05:47 +02:00
2021-06-21 21:59:15 +02:00
2021-05-19 21:28:33 +02:00
2021-05-19 21:28:33 +02:00
2020-11-27 18:51:56 +01:00
2021-06-02 21:47:01 +02:00
2021-06-02 21:47:01 +02:00
2021-05-18 21:05:47 +02:00
2021-06-02 21:47:01 +02:00
2020-08-12 11:08:28 +02:00
2021-05-18 21:05:47 +02:00
2021-07-08 20:05:50 +02:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2020-11-27 18:51:56 +01:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2021-07-08 20:05:50 +02:00
2020-07-30 00:06:46 +02:00
2021-07-08 20:05:50 +02:00
2021-07-08 20:05:50 +02:00
2020-09-09 21:57:31 +02:00
2021-05-18 21:05:47 +02:00
2020-07-30 00:06:46 +02:00
2020-09-24 23:26:03 +02:00
2020-11-27 18:51:56 +01:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2021-05-13 20:00:27 +02:00
2021-05-13 20:00:27 +02:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2021-05-13 20:00:27 +02:00
2020-07-30 00:06:46 +02:00
2021-01-20 09:53:30 +01:00
2021-05-17 20:55:06 +02:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2021-05-19 21:28:33 +02:00
2021-07-08 20:05:50 +02:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00
2020-07-30 00:06:46 +02:00
2021-05-19 21:28:33 +02:00
2021-05-18 21:05:47 +02:00
2021-06-21 21:59:15 +02:00
2021-02-26 00:42:15 +01:00
2020-07-30 00:06:46 +02:00
2021-07-08 20:05:50 +02:00
2021-05-17 20:55:06 +02:00
2021-03-03 00:57:56 +01:00
2021-05-19 21:28:33 +02:00
2021-07-05 09:41:35 +02:00
2020-07-30 00:06:46 +02:00
2021-05-18 21:05:47 +02:00
2021-05-18 21:05:47 +02:00