From e03a590246058813c4a1361da11cd49a83e1efb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Mon, 7 Feb 2022 10:15:12 +0100 Subject: [PATCH] json: Handle application/senml+json Add handling of application/senml+json and application/sensml+json. --- epan/dissectors/packet-json.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/epan/dissectors/packet-json.c b/epan/dissectors/packet-json.c index 066e27fbb6..c8604f203c 100644 --- a/epan/dissectors/packet-json.c +++ b/epan/dissectors/packet-json.c @@ -2118,6 +2118,8 @@ proto_reg_handoff_json(void) dissector_add_for_decode_as("udp.port", json_file_handle); dissector_add_string("media_type", "application/json", json_handle); /* RFC 4627 */ + dissector_add_string("media_type", "application/senml+json", json_handle); /* RFC 8428 */ + dissector_add_string("media_type", "application/sensml+json", json_handle); /* RFC 8428 */ dissector_add_string("media_type", "application/json-rpc", json_handle); /* JSON-RPC over HTTP */ dissector_add_string("media_type", "application/jsonrequest", json_handle); /* JSON-RPC over HTTP */ dissector_add_string("media_type", "application/dds-web+json", json_handle); /* DDS Web Integration Service over HTTP */