From d393fb969db617ff73250754a8aea11950758a59 Mon Sep 17 00:00:00 2001 From: Luca Date: Tue, 28 Jun 2022 17:20:58 +0200 Subject: Renamed Z39.50 -> Z3950 as the '.' breaks the naming convention QUIC is a network protocol --- src/lib/ndpi_main.c | 4 ++-- src/lib/protocols/z3950.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 86da37dfa..4d361510b 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -1552,7 +1552,7 @@ static void ndpi_init_protocol_defaults(struct ndpi_detection_module_struct *ndp "Telegram", NDPI_PROTOCOL_CATEGORY_CHAT, 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 */, 1 /* app proto */, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_QUIC, + ndpi_set_proto_defaults(ndpi_str, 0 /* encrypted */, 0 /* nw proto */, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_QUIC, "QUIC", NDPI_PROTOCOL_CATEGORY_WEB, ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */, ndpi_build_default_ports(ports_b, 443, 0, 0, 0, 0) /* UDP */); @@ -1849,7 +1849,7 @@ static void ndpi_init_protocol_defaults(struct ndpi_detection_module_struct *ndp 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_Z3950, - "Z39.50", NDPI_PROTOCOL_CATEGORY_NETWORK, + "Z3950", NDPI_PROTOCOL_CATEGORY_NETWORK, ndpi_build_default_ports(ports_a, 210, 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 */, 1 /* app proto */, NDPI_PROTOCOL_FUN, NDPI_PROTOCOL_LIKEE, diff --git a/src/lib/protocols/z3950.c b/src/lib/protocols/z3950.c index 3d238ceab..8a30b52cf 100644 --- a/src/lib/protocols/z3950.c +++ b/src/lib/protocols/z3950.c @@ -124,7 +124,7 @@ static void ndpi_search_z3950(struct ndpi_detection_module_struct *ndpi_struct, void init_z3950_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) { - ndpi_set_bitmask_protocol_detection("Z39.50", + ndpi_set_bitmask_protocol_detection("Z3950", ndpi_struct, detection_bitmask, *id, NDPI_PROTOCOL_Z3950, ndpi_search_z3950, -- cgit v1.2.3