json: Add for decode-as udp.port
authorStig Bjørlykke <stig@bjorlykke.org>
Thu, 8 Feb 2018 08:29:42 +0000 (09:29 +0100)
committerStig Bjørlykke <stig@bjorlykke.org>
Thu, 8 Feb 2018 09:54:09 +0000 (09:54 +0000)
Change-Id: Ibd03cd64aa8de7fee8ad3cc7b7cc61e0370399ff
Reviewed-on: https://code.wireshark.org/review/25681
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
epan/dissectors/packet-json.c

index 7aae1d03c6cf3093487ed156c293e8ef1f55b88c..57bbed0e923a1425daf2c0026a4f66cd658550a4 100644 (file)
@@ -833,6 +833,8 @@ proto_reg_handoff_json(void)
        heur_dissector_add("db-lsp", dissect_json_heur, "JSON over DB-LSP", "json_db_lsp", proto_json, HEURISTIC_ENABLE);
        dissector_add_uint("wtap_encap", WTAP_ENCAP_JSON, json_file_handle);
 
+       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/json-rpc", json_handle); /* JSON-RPC over HTTP */
        dissector_add_string("media_type", "application/jsonrequest", json_handle); /* JSON-RPC over HTTP */