Openflow: fix some item lengths

This commit is contained in:
Martin Mathieson 2020-10-23 09:16:31 +01:00 committed by Martin Mathieson
parent 2663d49559
commit e42cc6716e
3 changed files with 7 additions and 7 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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,