Files
nDPI/tests/cfgs/default/pcap
Ivan Nardi 21da53d3a0 ahocorasick: improve matching with subdomains (#2331)
The basic idea is to have the following logic:
* pattern "DOMAIN" matches the domain itself (i.e exact match) *and* any
subdomains (i.e. "ANYTHING.DOMAIN")
* pattern "DOMAIN." matches *also* any strings for which is a prefix
[please, note that this kind of match is handy but it is quite
dangerous...]
* pattern "-DOMAIN" matches *also* any strings for which is a postfix

Examples:
* pattern "wikipedia.it":
  * "wikipiedia.it" -> OK
  * "foo.wikipedia.it -> OK
  * "foowikipedia.it -> NO MATCH
  * "wikipedia.it.com -> NO MATCH
* pattern "wikipedia.":
  * "wikipedia.it" -> OK
  * "foo.wikipedia.it -> OK
  * "foowikipedia.it -> NO MATCH
  * "wikipedia.it.com -> OK
* pattern "-wikipedia.it":
  * "wikipedia.it" -> NO MATCH
  * "foo.wikipedia.it -> NO MATCH
  * "0001-wikipedia.it -> OK
  * "foo.0001-wikipedia.it -> OK

Bottom line:
* exact match
* prefix with "." (always, implicit)
* prefix with "-" (only if esplicitly set)
* postfix with "." (only if esplicitly set)

That means that the patterns cannot start with '.' anymore.

Close #2330
2024-03-06 19:25:59 +01:00
..
2023-04-11 20:26:27 +02:00
2024-02-29 08:19:00 +01:00
2023-10-23 13:45:56 +02:00
2024-01-04 13:22:23 +01:00
2023-11-27 13:10:50 +01:00
2024-01-08 17:04:12 +01:00
2023-10-02 18:10:47 +02:00
2024-01-02 20:57:05 +01:00
2024-01-12 12:14:59 +01:00
2024-01-25 11:12:08 +01:00
2023-04-21 11:30:10 +02:00
2023-12-06 10:24:26 +01:00
2024-01-08 17:04:12 +01:00
2024-01-25 20:26:18 +01:00
2024-01-27 21:19:34 +01:00
2023-04-11 10:14:18 +02:00
2023-11-27 07:17:39 +01:00
2023-11-30 09:09:40 +01:00
2023-11-21 16:56:46 +01:00
2023-07-21 03:42:36 +02:00
2024-01-21 12:17:34 +01:00

Place here test pcaps used for regressions testing