From 09e38c383f1659074a9812c4eec96c7542530781 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Thu, 3 Jul 2025 09:59:07 +0200 Subject: Added EasyWeather protocol dissector Signed-off-by: Toni Uhlig --- src/lib/ndpi_main.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/lib/ndpi_main.c') diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 2b8619032..7c346732e 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -2897,6 +2897,11 @@ static void init_protocol_defaults(struct ndpi_detection_module_struct *ndpi_str ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */, ndpi_build_default_ports(ports_b, 3222, 0, 0, 0, 0) /* UDP */, 0); + ndpi_set_proto_defaults(ndpi_str, 1 /* cleartext */, 0 /* nw proto */, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_EASYWEATHER, + "EasyWeather", NDPI_PROTOCOL_CATEGORY_NETWORK, NDPI_PROTOCOL_QOE_CATEGORY_UNSPECIFIED, + ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */, + ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */, + 0); /* Remove */ ndpi_set_proto_defaults(ndpi_str, 1 /* cleartext */, 0 /* nw proto */, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_FREE, @@ -7208,6 +7213,9 @@ static int dissectors_init(struct ndpi_detection_module_struct *ndpi_str) { /* Gateway Load Balancing Protocol */ init_glbp_dissector(ndpi_str); + /* EasyWeather Wifi Protocol */ + init_easyweather_dissector(ndpi_str); + #ifdef CUSTOM_NDPI_PROTOCOLS #include "../../../nDPI-custom/custom_ndpi_main_init.c" #endif -- cgit v1.2.3