diff options
author | Luca <deri@ntop.org> | 2024-07-17 14:21:45 +0200 |
---|---|---|
committer | Luca <deri@ntop.org> | 2024-07-17 14:21:45 +0200 |
commit | 86b67e6687d460a0eaaaa84f4f95c47aa4b95082 (patch) | |
tree | 2b5062187c6c7ab1fc890538260512d784508959 /src | |
parent | 0a3a82680d6171a005fa944916ef551b4c3aafa7 (diff) |
Added ClickHouse protocol
Diffstat (limited to 'src')
-rw-r--r-- | src/include/ndpi_protocol_ids.h | 1 | ||||
-rw-r--r-- | src/lib/ndpi_content_match.c.inc | 3 | ||||
-rw-r--r-- | src/lib/ndpi_main.c | 4 |
3 files changed, 8 insertions, 0 deletions
diff --git a/src/include/ndpi_protocol_ids.h b/src/include/ndpi_protocol_ids.h index 8b8208204..9eb3d5a9a 100644 --- a/src/include/ndpi_protocol_ids.h +++ b/src/include/ndpi_protocol_ids.h @@ -447,6 +447,7 @@ typedef enum { NDPI_PROTOCOL_JRMI = 416, NDPI_PROTOCOL_RIPE_ATLAS = 417, NDPI_PROTOCOL_HLS = 418, + NDPI_PROTOCOL_CLICKHOUSE = 419, #ifdef CUSTOM_NDPI_PROTOCOLS #include "../../../nDPI-custom/custom_ndpi_protocol_ids.h" diff --git a/src/lib/ndpi_content_match.c.inc b/src/lib/ndpi_content_match.c.inc index 438362889..a2f14ba54 100644 --- a/src/lib/ndpi_content_match.c.inc +++ b/src/lib/ndpi_content_match.c.inc @@ -1665,6 +1665,9 @@ static ndpi_protocol_match host_match[] = { "codmwest.com", "CoD_Mobile", NDPI_PROTOCOL_COD_MOBILE, NDPI_PROTOCOL_CATEGORY_GAME, NDPI_PROTOCOL_FUN, NDPI_PROTOCOL_DEFAULT_LEVEL }, + { "clickhouse.com", "ClickHouse", NDPI_PROTOCOL_CLICKHOUSE, NDPI_PROTOCOL_CATEGORY_DATABASE, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_DEFAULT_LEVEL }, + { "clickhouse.cloud", "ClickHouse", NDPI_PROTOCOL_CLICKHOUSE, NDPI_PROTOCOL_CATEGORY_DATABASE, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_DEFAULT_LEVEL }, + #ifdef CUSTOM_NDPI_PROTOCOLS #include "../../../nDPI-custom/custom_ndpi_content_match_host_match.c.inc" #endif diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index e9911e903..87686ca10 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -2286,6 +2286,10 @@ static void ndpi_init_protocol_defaults(struct ndpi_detection_module_struct *ndp "HLS", NDPI_PROTOCOL_CATEGORY_MEDIA, 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, 0 /* encrypted */, 0 /* nw proto */, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_CLICKHOUSE, + "ClickHouse", NDPI_PROTOCOL_CATEGORY_DATABASE, + ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */, + ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */); #ifdef CUSTOM_NDPI_PROTOCOLS #include "../../../nDPI-custom/custom_ndpi_main.c" |