mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-04-29 23:49:41 +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
|
||
|---|---|---|
| .. | ||
| dns_long_domainname.pcap.out | ||
| esp.pcapng.out | ||
| ospfv2_add_new_prefix.pcap.out | ||
| pluralsight.pcap.out | ||
| quic-mvfst-27.pcapng.out | ||
| sctp.cap.out | ||
| soap.pcap.out | ||