From 5967621d19204947021932ea86f1e55fbe810124 Mon Sep 17 00:00:00 2001 From: Flavio Santes Date: Sun, 15 Oct 2017 02:33:56 -0400 Subject: [PATCH] dissector/mqtt: Add the MQTT protocol description MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The packet-PROTOABBREV.c template recommends to provide a short description of the protocol below the license header. Currently, this information is not present in the packet-mqtt.c dissector. This patch adds the protocol description taken from the official specification. Links to the v3.1 and v3.1.1 specifications are also provided by this patch. Change-Id: I9bb85aa3b78c8804c923f77c163904a7949f6899 Signed-off-by: Flavio Santes Reviewed-on: https://code.wireshark.org/review/23936 Reviewed-by: Stig Bjørlykke --- epan/dissectors/packet-mqtt.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/epan/dissectors/packet-mqtt.c b/epan/dissectors/packet-mqtt.c index 0ec71507c3..129d5c38f0 100644 --- a/epan/dissectors/packet-mqtt.c +++ b/epan/dissectors/packet-mqtt.c @@ -1,7 +1,5 @@ /* packet-mqtt.c * Routines for MQTT Protocol dissection - * http://mqtt.org - * This dissector dissects MQTT data transfers as per MQTT V3.1 and V3.1.1 Protocol Specification * * By Lakshmi Narayana Madala * Stig Bjorlykke @@ -25,6 +23,21 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +/* + * Protocol description: + * + * MQTT is a Client Server publish/subscribe messaging transport + * protocol. The protocol runs over TCP/IP, or over other network + * protocols that provide ordered, lossless, bi-directional + * connections. + * + * MQTT v3.1 specification: + * http://public.dhe.ibm.com/software/dw/webservices/ws-mqtt/mqtt-v3r1.html + * + * MQTT v3.1.1 specification: + * http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/ + */ + #include "config.h" #include #include