diff options
author | Darryl Sokoloski <darryl@sokoloski.ca> | 2022-12-20 14:46:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-20 20:46:06 +0100 |
commit | b8972d1b383f91dedce72b18ebbdabd5a236b719 (patch) | |
tree | ef6ac3ef84d9c70c37f4a036d13f2e146d1ccfa1 /src/lib/ndpi_main.c | |
parent | d8de8eba36e72391d49ffb087c1cd44e6b7aa70f (diff) |
Added TP-LINK Smart Home Protocol dissector. (#1841)
Signed-off-by: Darryl Sokoloski <darryl@sokoloski.ca>
Signed-off-by: Darryl Sokoloski <darryl@sokoloski.ca>
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r-- | src/lib/ndpi_main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 5f4b28e95..fa12772eb 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -2057,6 +2057,10 @@ static void ndpi_init_protocol_defaults(struct ndpi_detection_module_struct *ndp "TuyaLP", NDPI_PROTOCOL_CATEGORY_IOT_SCADA, ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */, ndpi_build_default_ports(ports_b, 6667, 0, 0, 0, 0) /* UDP */); + ndpi_set_proto_defaults(ndpi_str, 1 /* encrypted */, 0 /* nw proto */, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_TPLINK_SHP, + "TPLINK_SHP", NDPI_PROTOCOL_CATEGORY_IOT_SCADA, + ndpi_build_default_ports(ports_a, 9999, 0, 0, 0, 0) /* TCP */, + ndpi_build_default_ports(ports_b, 9999, 0, 0, 0, 0) /* UDP */); #ifdef CUSTOM_NDPI_PROTOCOLS @@ -4757,6 +4761,9 @@ static int ndpi_callback_init(struct ndpi_detection_module_struct *ndpi_str) { /* TUYA LP */ init_tuya_lp_dissector(ndpi_str, &a); + /* TPLINK_SHP */ + init_tplink_shp_dissector(ndpi_str, &a); + #ifdef CUSTOM_NDPI_PROTOCOLS #include "../../../nDPI-custom/custom_ndpi_main_init.c" #endif |