aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mbtcp.h
diff options
context:
space:
mode:
authorThomas Wiens <th.wiens@gmx.de>2019-08-13 22:51:11 +0200
committerAnders Broman <a.broman58@gmail.com>2019-08-24 06:35:56 +0000
commit8e925238b09b48c773f1d0877ada8c30fc861ce7 (patch)
treefb20a070d5147570ad25b452df93fb938a6cfeab /epan/dissectors/packet-mbtcp.h
parent3f22907e8bba5acf44906fe5e56a89a737859e77 (diff)
Modbus: Unit and Transaction Id for request/response identification
Use Unit and Transaction Identifier to identify the correct request to a response. The Transaction Identifier is only available in Modbus TCP. Bug: 15698 Change-Id: Ic3a279ce200bee9e9274aaec66bd9dc2f1c096b9 Reviewed-on: https://code.wireshark.org/review/34274 Petri-Dish: Anders Broman <a.broman58@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-mbtcp.h')
-rw-r--r--epan/dissectors/packet-mbtcp.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/dissectors/packet-mbtcp.h b/epan/dissectors/packet-mbtcp.h
index 9c0d814bad..7e2703fa08 100644
--- a/epan/dissectors/packet-mbtcp.h
+++ b/epan/dissectors/packet-mbtcp.h
@@ -95,11 +95,19 @@
typedef struct {
guint32 fnum;
guint8 function_code;
+ guint16 mbtcp_transid;
+ guint8 unit_id;
guint16 base_address;
guint16 num_reg;
nstime_t req_time;
} modbus_request_info_t;
+typedef struct {
+ int packet_type;
+ guint16 mbtcp_transid; /* Set to zero if not available */
+ guint8 unit_id; /* Set to zero if not available */
+} modbus_data_t;
+
/* List contains request data */
typedef struct {
wmem_list_t *modbus_request_frame_data;