From c63697205be7ff027860b03d0fcddf40503b43d6 Mon Sep 17 00:00:00 2001 From: Vladimir Gavrilov <105977161+0xA50C1A1@users.noreply.github.com> Date: Fri, 12 Apr 2024 18:44:36 +0300 Subject: Add Label Distribution Protocol support (#2385) * Add Label Distribution Protocol support * Fix typo * Update unit test results --- src/lib/ndpi_main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/lib/ndpi_main.c') diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 6fa36bc62..54276f7b0 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -2296,6 +2296,10 @@ static void ndpi_init_protocol_defaults(struct ndpi_detection_module_struct *ndp "TES_Online", NDPI_PROTOCOL_CATEGORY_GAME, ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */, ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */); + ndpi_set_proto_defaults(ndpi_str, 1 /* cleartext */, 0 /* nw proto */, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_LDP, + "LDP", NDPI_PROTOCOL_CATEGORY_NETWORK, + ndpi_build_default_ports(ports_a, 646, 0, 0, 0, 0) /* TCP */, + ndpi_build_default_ports(ports_b, 646, 0, 0, 0, 0) /* UDP */); #ifdef CUSTOM_NDPI_PROTOCOLS #include "../../../nDPI-custom/custom_ndpi_main.c" @@ -6173,6 +6177,9 @@ static int ndpi_callback_init(struct ndpi_detection_module_struct *ndpi_str) { /* The Elder Scrolls Online */ init_teso_dissector(ndpi_str, &a); + /* Label Distribution Protocol */ + init_ldp_dissector(ndpi_str, &a); + #ifdef CUSTOM_NDPI_PROTOCOLS #include "../../../nDPI-custom/custom_ndpi_main_init.c" #endif -- cgit v1.2.3