diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2022-02-20 10:20:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-20 10:20:46 +0100 |
commit | 59993e294eb20d84db1a42b59cbd0f3be03d1400 (patch) | |
tree | 047b35fd1f0b114589e698313f44e4cff9a8801c /src | |
parent | 2f5f445f7229592c9a9a108e39fa5db3dc456dce (diff) |
EthernetIP: add missing initialization (#1448)
Fix:1e1cfb89
Diffstat (limited to 'src')
-rw-r--r-- | src/include/ndpi_protocols.h | 1 | ||||
-rw-r--r-- | src/lib/ndpi_main.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/include/ndpi_protocols.h b/src/include/ndpi_protocols.h index ae72659dc..9338d5a71 100644 --- a/src/include/ndpi_protocols.h +++ b/src/include/ndpi_protocols.h @@ -220,6 +220,7 @@ void init_genshin_impact_dissector(struct ndpi_detection_module_struct *ndpi_str void init_z3950_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_avast_securedns_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_cassandra_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); +void init_ethernet_ip_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); /* ndpi_main.c */ extern u_int32_t ndpi_ip_port_hash_funct(u_int32_t ip, u_int16_t port); diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 33c291b96..825c1597b 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -4223,6 +4223,9 @@ void ndpi_set_protocol_detection_bitmask2(struct ndpi_detection_module_struct *n /* Cassandra */ init_cassandra_dissector(ndpi_str, &a, detection_bitmask); + /* EthernetIP */ + init_ethernet_ip_dissector(ndpi_str, &a, detection_bitmask); + #ifdef CUSTOM_NDPI_PROTOCOLS #include "../../../nDPI-custom/custom_ndpi_main_init.c" #endif |