diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2024-07-03 15:52:20 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2024-07-03 16:10:44 +0200 |
commit | c8eaddd157e6348eef9729dc0201bce40f09d928 (patch) | |
tree | 34fbc7e6a44e4a218ccc2e8989992c653ee85af6 /src/lib/ndpi_main.c | |
parent | dab8d3056ec4571a0343bd7fc3cdce9c4d944719 (diff) |
Add (Generic) JSON dissectoradd/generic-json-dissector
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 f2162e005..d1750716c 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -2282,6 +2282,10 @@ static void ndpi_init_protocol_defaults(struct ndpi_detection_module_struct *ndp "RipeAtlas", 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 */); + ndpi_set_proto_defaults(ndpi_str, 1 /* cleartext */, 0 /* nw proto */, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_JSON, + "JSON", 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" @@ -6181,6 +6185,9 @@ static int ndpi_callback_init(struct ndpi_detection_module_struct *ndpi_str) { /* (Magellan) Ripe Atlas */ init_ripe_atlas_dissector(ndpi_str, &a); + /* Generic JSON */ + init_json_dissector(ndpi_str, &a); + #ifdef CUSTOM_NDPI_PROTOCOLS #include "../../../nDPI-custom/custom_ndpi_main_init.c" #endif |