mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-11 10:58:22 +00:00
We use `registr_dissector()` instead of
`ndpi_set_bitmask_protocol_detection()`.
Every file in `src/lib/protocols/*.c` is a dissector.
Every dissector can handle multiple protocols.
The real goal is this small change:
```
struct call_function_struct {
- NDPI_PROTOCOL_BITMASK detection_bitmask;
```
i.e. getting rid of another protocol bitmask: this is mandatory to try
to fix #2136 (see also e845e8205b68752c997d05224d8b2fd45acde714)
As a nice side effect, we remove a bitmask comparison in the hot function
`check_ndpi_detection_func()`
TODO: change logging configuration from per-protocol to per-dissector
|
||
|---|---|---|
| .. | ||
| cfgs | ||
| dga | ||
| performance | ||
| unit | ||
| do-dga.sh | ||
| do-unit.sh | ||
| do.sh.in | ||
| Makefile.am | ||
| ossfuzz.sh | ||
| pcap | ||
| README.md | ||
| result | ||
See also https://github.com/baderj/domain_generation_algorithms for a collection of malware DGAs