From fe007542268e0261aceb698d5f6d64384167695e Mon Sep 17 00:00:00 2001 From: Laszlo Papp Date: Wed, 24 Jan 2018 16:53:10 +0000 Subject: Openflow: Use offset 2 for tx_min/max as they are uint16_t Change-Id: I2f47e0ede2a31cfdadc69ab125a739b3deaa297e Reviewed-on: https://code.wireshark.org/review/25453 Petri-Dish: Graham Bloice Reviewed-by: Anders Broman Petri-Dish: Anders Broman Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte --- epan/dissectors/packet-openflow_v6.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'epan/dissectors/packet-openflow_v6.c') diff --git a/epan/dissectors/packet-openflow_v6.c b/epan/dissectors/packet-openflow_v6.c index 31db314af5..6433a17c96 100644 --- a/epan/dissectors/packet-openflow_v6.c +++ b/epan/dissectors/packet-openflow_v6.c @@ -2624,12 +2624,12 @@ dissect_openflow_port_desc_prop_optical_v6(tvbuff_t *tvb, packet_info *pinfo _U_ offset+=4; /* uint16_t tx_pwr_min; */ - proto_tree_add_item(tree, hf_openflow_v6_port_desc_prop_optical_tx_pwr_min, tvb, offset, 4, ENC_BIG_ENDIAN); - offset+=4; + proto_tree_add_item(tree, hf_openflow_v6_port_desc_prop_optical_tx_pwr_min, tvb, offset, 2, ENC_BIG_ENDIAN); + offset+=2; /* uint16_t tx_pwr_max; */ - proto_tree_add_item(tree, hf_openflow_v6_port_desc_prop_optical_tx_pwr_max, tvb, offset, 4, ENC_BIG_ENDIAN); - offset+=4; + proto_tree_add_item(tree, hf_openflow_v6_port_desc_prop_optical_tx_pwr_max, tvb, offset, 2, ENC_BIG_ENDIAN); + offset+=2; return offset; } -- cgit v1.2.3