aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_main.c
diff options
context:
space:
mode:
authorVladimir Gavrilov <105977161+0xA50C1A1@users.noreply.github.com>2024-04-12 18:44:36 +0300
committerGitHub <noreply@github.com>2024-04-12 17:44:36 +0200
commitc63697205be7ff027860b03d0fcddf40503b43d6 (patch)
tree46e448a6c6b69ed3180a663495d2c1ec8b50165f /src/lib/ndpi_main.c
parent93f02ee507d050eedc88a8b9d66b20c97917e476 (diff)
Add Label Distribution Protocol support (#2385)
* Add Label Distribution Protocol support * Fix typo * Update unit test results
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r--src/lib/ndpi_main.c7
1 files changed, 7 insertions, 0 deletions
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