aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorThomas Wiens <th.wiens@gmx.de>2015-10-19 23:41:57 +0200
committerAnders Broman <a.broman58@gmail.com>2015-10-20 03:21:58 +0000
commita86acb2ac7493430d5a506f6bbe5969098fc19f6 (patch)
tree1e8a725453b1b1d176c0b1bab0570490fdf4765c /plugins
parenta4d2b0306ea887cc80017637187debc2e6e67f30 (diff)
Profinet: Add Watchdog Factor data field in IOCRBlockReq.
The Watchdog Factor was displayed as Data Hold Factor, which was wrong. Attribute type of the Watchdog Factor is also Unsigned16. Change-Id: Ic5f32b9b322c225361be50b1f4a3180638a0c88b Reviewed-on: https://code.wireshark.org/review/11161 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/profinet/packet-dcerpc-pn-io.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/profinet/packet-dcerpc-pn-io.c b/plugins/profinet/packet-dcerpc-pn-io.c
index e3f910c69f..3016b4e3f8 100644
--- a/plugins/profinet/packet-dcerpc-pn-io.c
+++ b/plugins/profinet/packet-dcerpc-pn-io.c
@@ -153,6 +153,7 @@ static int hf_pn_io_frame_data_properties_FastForwardingMulticastMACAdd = -1;
static int hf_pn_io_frame_data_properties_FragmentMode = -1;
static int hf_pn_io_frame_data_properties_reserved_1 = -1;
static int hf_pn_io_frame_data_properties_reserved_2 = -1;
+static int hf_pn_io_watchdog_factor = -1;
static int hf_pn_io_data_hold_factor = -1;
static int hf_pn_io_iocr_tag_header = -1;
static int hf_pn_io_iocr_multicast_mac_add = -1;
@@ -7176,7 +7177,7 @@ dissect_IOCRBlockReq_block(tvbuff_t *tvb, int offset,
offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep,
hf_pn_io_frame_send_offset, &u32FrameSendOffset);
offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep,
- hf_pn_io_data_hold_factor, &u16WatchdogFactor);
+ hf_pn_io_watchdog_factor, &u16WatchdogFactor);
offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep,
hf_pn_io_data_hold_factor, &u16DataHoldFactor);
offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep,
@@ -10185,6 +10186,11 @@ proto_register_pn_io (void)
FT_UINT32, BASE_HEX, NULL, 0xFFFF0000,
NULL, HFILL }
},
+ { &hf_pn_io_watchdog_factor,
+ { "WatchdogFactor", "pn_io.watchdog_factor",
+ FT_UINT16, BASE_DEC, NULL, 0x0,
+ NULL, HFILL }
+ },
{ &hf_pn_io_data_hold_factor,
{ "DataHoldFactor", "pn_io.data_hold_factor",
FT_UINT16, BASE_DEC, NULL, 0x0,