diff options
author | Martin Mathieson <martin.mathieson@keysight.com> | 2020-10-23 09:16:31 +0100 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2020-10-23 10:05:55 +0000 |
commit | e42cc6716e5bbd9cd7595608e52d0c87a46243d3 (patch) | |
tree | f7ff0cf104cbd98252823cdf94a3abdcecae009c | |
parent | 2663d49559426819cb5054a74f23abca75462dd6 (diff) |
Openflow: fix some item lengths
-rw-r--r-- | epan/dissectors/packet-openflow_v4.c | 2 | ||||
-rw-r--r-- | epan/dissectors/packet-openflow_v5.c | 6 | ||||
-rw-r--r-- | epan/dissectors/packet-openflow_v6.c | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/epan/dissectors/packet-openflow_v4.c b/epan/dissectors/packet-openflow_v4.c index 1b79989da8..1efa748cdf 100644 --- a/epan/dissectors/packet-openflow_v4.c +++ b/epan/dissectors/packet-openflow_v4.c @@ -7297,7 +7297,7 @@ proto_register_openflow_v4(void) }, { &hf_openflow_v4_metermod_command, { "Command", "openflow_v4.metermod.command", - FT_UINT8, BASE_DEC, VALS(openflow_v4_metermod_command_values), 0x0, + FT_UINT16, BASE_DEC, VALS(openflow_v4_metermod_command_values), 0x0, NULL, HFILL } }, { &hf_openflow_v4_metermod_flags, diff --git a/epan/dissectors/packet-openflow_v5.c b/epan/dissectors/packet-openflow_v5.c index c73991d45b..b64289c9a1 100644 --- a/epan/dissectors/packet-openflow_v5.c +++ b/epan/dissectors/packet-openflow_v5.c @@ -4060,7 +4060,7 @@ dissect_openflow_flow_stats_v5(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree offset+=2; /* uint16_t importance; */ - proto_tree_add_item(stats_tree, hf_openflow_v5_flow_stats_importance, tvb, offset, 4, ENC_BIG_ENDIAN); + proto_tree_add_item(stats_tree, hf_openflow_v5_flow_stats_importance, tvb, offset, 2, ENC_BIG_ENDIAN); offset+=2; /* uint8_t pad2[2]; */ @@ -9362,7 +9362,7 @@ proto_register_openflow_v5(void) }, { &hf_openflow_v5_metermod_command, { "Command", "openflow_v5.metermod.command", - FT_UINT8, BASE_DEC, VALS(openflow_v5_metermod_command_values), 0x0, + FT_UINT16, BASE_DEC, VALS(openflow_v5_metermod_command_values), 0x0, NULL, HFILL } }, { &hf_openflow_v5_metermod_flags, @@ -9432,7 +9432,7 @@ proto_register_openflow_v5(void) }, { &hf_openflow_v5_bundle_control_type, { "Type", "openflow_v5.bundle_control.type", - FT_UINT8, BASE_HEX, VALS(openflow_v5_bundle_control_type_values), 0x0, + FT_UINT16, BASE_HEX, VALS(openflow_v5_bundle_control_type_values), 0x0, NULL, HFILL } }, { &hf_openflow_v5_bundle_control_flags, diff --git a/epan/dissectors/packet-openflow_v6.c b/epan/dissectors/packet-openflow_v6.c index ec7a6a968e..5cdf7e3251 100644 --- a/epan/dissectors/packet-openflow_v6.c +++ b/epan/dissectors/packet-openflow_v6.c @@ -4553,7 +4553,7 @@ dissect_openflow_flow_desc_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree offset+=2; /* uint16_t importance; */ - proto_tree_add_item(desc_tree, hf_openflow_v6_flow_desc_importance, tvb, offset, 4, ENC_BIG_ENDIAN); + proto_tree_add_item(desc_tree, hf_openflow_v6_flow_desc_importance, tvb, offset, 2, ENC_BIG_ENDIAN); offset+=2; /* uint64_t cookie; */ @@ -10109,7 +10109,7 @@ proto_register_openflow_v6(void) }, { &hf_openflow_v6_metermod_command, { "Command", "openflow_v6.metermod.command", - FT_UINT8, BASE_DEC, VALS(openflow_v6_metermod_command_values), 0x0, + FT_UINT16, BASE_DEC, VALS(openflow_v6_metermod_command_values), 0x0, NULL, HFILL } }, { &hf_openflow_v6_metermod_flags, @@ -10179,7 +10179,7 @@ proto_register_openflow_v6(void) }, { &hf_openflow_v6_bundle_control_type, { "Type", "openflow_v6.bundle_control.type", - FT_UINT8, BASE_HEX, VALS(openflow_v6_bundle_control_type_values), 0x0, + FT_UINT16, BASE_HEX, VALS(openflow_v6_bundle_control_type_values), 0x0, NULL, HFILL } }, { &hf_openflow_v6_bundle_control_flags, |