diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2023-11-01 22:08:43 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2023-11-01 22:08:43 +0100 |
commit | 2062c99f0161c91d98e33cba9b847223be41a68b (patch) | |
tree | 27b353c8e0b9b5aacc6cdfcb11540ae1f28c60f5 /src/lib/ndpi_main.c | |
parent | e8e4b9e8fff7a71e2770ff5a38e92506b508c72f (diff) |
Add generic capnproto dissector.add/capnproto
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
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 8f7cf7435..c227dcff4 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -2175,6 +2175,10 @@ static void ndpi_init_protocol_defaults(struct ndpi_detection_module_struct *ndp "ETHEREUM", NDPI_PROTOCOL_CATEGORY_CRYPTO_CURRENCY, ndpi_build_default_ports(ports_a, 30303, 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_SAFE, NDPI_PROTOCOL_CAPNPROTO, + "CapnProto", NDPI_PROTOCOL_CATEGORY_NETWORK, + 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" @@ -5434,6 +5438,9 @@ static int ndpi_callback_init(struct ndpi_detection_module_struct *ndpi_str) { /* ETHEREUM */ init_ethereum_dissector(ndpi_str, &a); + /* Cap'n Proto */ + init_capnproto_dissector(ndpi_str, &a); + #ifdef CUSTOM_NDPI_PROTOCOLS #include "../../../nDPI-custom/custom_ndpi_main_init.c" #endif |