diff options
author | Hal Rosenstock <hal.rosenstock@gmail.com> | 2017-10-24 17:30:56 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-11-04 07:18:05 +0000 |
commit | 9b82c6b21e02fb0a2af37ed5f0847de59b63f9d1 (patch) | |
tree | ec9183c00616de870a621129a018c8829308fadd /epan | |
parent | c04c92fbf9986931d437371bdf2522f191d496ce (diff) |
packet-infiniband: Fixed some PortInfo:CapabilityMask bit names
to be consistent with IBA volume 1 spec
IsOptionalIPDSupported
IsCommunicationManagementSupported
Change-Id: I55b29b7f291f49a9d0c3e104bda4d7d7aa78b42b
Signed-off-by: Hal Rosenstock <hal.rosenstock@gmail.com>
Reviewed-on: https://code.wireshark.org/review/24227
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-infiniband.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/epan/dissectors/packet-infiniband.c b/epan/dissectors/packet-infiniband.c index 95fc5d18eb..881147e98b 100644 --- a/epan/dissectors/packet-infiniband.c +++ b/epan/dissectors/packet-infiniband.c @@ -793,7 +793,7 @@ static int hf_infiniband_PortInfo_CapabilityMask = -1; static int hf_infiniband_PortInfo_CapabilityMask_SM = -1; static int hf_infiniband_PortInfo_CapabilityMask_NoticeSupported = -1; static int hf_infiniband_PortInfo_CapabilityMask_TrapSupported = -1; -static int hf_infiniband_PortInfo_CapabilityMask_OptionalPDSupported = -1; +static int hf_infiniband_PortInfo_CapabilityMask_OptionalIPDSupported = -1; static int hf_infiniband_PortInfo_CapabilityMask_AutomaticMigrationSupported = -1; static int hf_infiniband_PortInfo_CapabilityMask_SLMappingSupported = -1; static int hf_infiniband_PortInfo_CapabilityMask_MKeyNVRAM = -1; @@ -802,7 +802,7 @@ static int hf_infiniband_PortInfo_CapabilityMask_LEDInfoSupported = -1; static int hf_infiniband_PortInfo_CapabilityMask_SMdisabled = -1; static int hf_infiniband_PortInfo_CapabilityMask_SystemImageGUIDSupported = -1; static int hf_infiniband_PortInfo_CapabilityMask_PKeySwitchExternalPortTrapSupported = -1; -static int hf_infiniband_PortInfo_CapabilityMask_CommunicationsManagementSupported = -1; +static int hf_infiniband_PortInfo_CapabilityMask_CommunicationManagementSupported = -1; static int hf_infiniband_PortInfo_CapabilityMask_SNMPTunnelingSupported = -1; static int hf_infiniband_PortInfo_CapabilityMask_ReinitSupported = -1; static int hf_infiniband_PortInfo_CapabilityMask_DeviceManagementSupported = -1; @@ -1283,7 +1283,7 @@ static const value_string bth_opcode_tbl[] = { #define PERF 0x04 /* Performance Management */ #define BM 0x05 /* Baseboard Management (Tunneling of IB-ML commands through the IBA subnet) */ #define DEV_MGT 0x06 /* Device Management */ -#define COM_MGT 0x07 /* Communications Management */ +#define COM_MGT 0x07 /* Communication Management */ #define SNMP 0x08 /* SNMP Tunneling (tunneling of the SNMP protocol through the IBA fabric) */ #define VENDOR_1_START 0x09 /* Start of first Vendor Specific Range */ #define VENDOR_1_END 0x0F /* End of first Vendor Specific Range */ @@ -3683,7 +3683,7 @@ static void parse_CM_DRsp(proto_tree *top_tree, packet_info *pinfo, tvbuff_t *tv *offset = local_offset; } -/* Parse Communications Management +/* Parse Communication Management * IN: parentTree to add the dissection to * IN: tvb - the data buffer from wireshark * IN/OUT: The current and updated offset */ @@ -4616,7 +4616,7 @@ static int parse_PortInfo(proto_tree* parentTree, tvbuff_t* tvb, gint *offset) proto_tree_add_item(PortInfo_CapabilityMask_tree, hf_infiniband_PortInfo_CapabilityMask_SM, tvb, local_offset, 4, ENC_BIG_ENDIAN); proto_tree_add_item(PortInfo_CapabilityMask_tree, hf_infiniband_PortInfo_CapabilityMask_NoticeSupported, tvb, local_offset, 4, ENC_BIG_ENDIAN); proto_tree_add_item(PortInfo_CapabilityMask_tree, hf_infiniband_PortInfo_CapabilityMask_TrapSupported, tvb, local_offset, 4, ENC_BIG_ENDIAN); - proto_tree_add_item(PortInfo_CapabilityMask_tree, hf_infiniband_PortInfo_CapabilityMask_OptionalPDSupported, tvb, local_offset, 4, ENC_BIG_ENDIAN); + proto_tree_add_item(PortInfo_CapabilityMask_tree, hf_infiniband_PortInfo_CapabilityMask_OptionalIPDSupported, tvb, local_offset, 4, ENC_BIG_ENDIAN); proto_tree_add_item(PortInfo_CapabilityMask_tree, hf_infiniband_PortInfo_CapabilityMask_AutomaticMigrationSupported, tvb, local_offset, 4, ENC_BIG_ENDIAN); proto_tree_add_item(PortInfo_CapabilityMask_tree, hf_infiniband_PortInfo_CapabilityMask_SLMappingSupported, tvb, local_offset, 4, ENC_BIG_ENDIAN); proto_tree_add_item(PortInfo_CapabilityMask_tree, hf_infiniband_PortInfo_CapabilityMask_MKeyNVRAM, tvb, local_offset, 4, ENC_BIG_ENDIAN); @@ -4625,7 +4625,7 @@ static int parse_PortInfo(proto_tree* parentTree, tvbuff_t* tvb, gint *offset) proto_tree_add_item(PortInfo_CapabilityMask_tree, hf_infiniband_PortInfo_CapabilityMask_SMdisabled, tvb, local_offset, 4, ENC_BIG_ENDIAN); proto_tree_add_item(PortInfo_CapabilityMask_tree, hf_infiniband_PortInfo_CapabilityMask_SystemImageGUIDSupported, tvb, local_offset, 4, ENC_BIG_ENDIAN); proto_tree_add_item(PortInfo_CapabilityMask_tree, hf_infiniband_PortInfo_CapabilityMask_PKeySwitchExternalPortTrapSupported, tvb, local_offset, 4, ENC_BIG_ENDIAN); - proto_tree_add_item(PortInfo_CapabilityMask_tree, hf_infiniband_PortInfo_CapabilityMask_CommunicationsManagementSupported, tvb, local_offset, 4, ENC_BIG_ENDIAN); + proto_tree_add_item(PortInfo_CapabilityMask_tree, hf_infiniband_PortInfo_CapabilityMask_CommunicationManagementSupported, tvb, local_offset, 4, ENC_BIG_ENDIAN); proto_tree_add_item(PortInfo_CapabilityMask_tree, hf_infiniband_PortInfo_CapabilityMask_SNMPTunnelingSupported, tvb, local_offset, 4, ENC_BIG_ENDIAN); proto_tree_add_item(PortInfo_CapabilityMask_tree, hf_infiniband_PortInfo_CapabilityMask_ReinitSupported, tvb, local_offset, 4, ENC_BIG_ENDIAN); proto_tree_add_item(PortInfo_CapabilityMask_tree, hf_infiniband_PortInfo_CapabilityMask_DeviceManagementSupported, tvb, local_offset, 4, ENC_BIG_ENDIAN); @@ -7080,8 +7080,8 @@ void proto_register_infiniband(void) "TrapSupported", "infiniband.portinfo.capabilitymask.trapsupported", FT_UINT32, BASE_HEX, NULL, 0x00000008, NULL, HFILL} }, - { &hf_infiniband_PortInfo_CapabilityMask_OptionalPDSupported, { - "OptionalPDSupported", "infiniband.portinfo.capabilitymask.optionalpdsupported", + { &hf_infiniband_PortInfo_CapabilityMask_OptionalIPDSupported, { + "OptionalIPDSupported", "infiniband.portinfo.capabilitymask.optionalipdsupported", FT_UINT32, BASE_HEX, NULL, 0x00000010, NULL, HFILL} }, { &hf_infiniband_PortInfo_CapabilityMask_AutomaticMigrationSupported, { @@ -7116,8 +7116,8 @@ void proto_register_infiniband(void) "PKeySwitchExternalPortTrapSupported", "infiniband.portinfo.capabilitymask.pkeyswitchexternalporttrapsupported", FT_UINT32, BASE_HEX, NULL, 0x00001000, NULL, HFILL} }, - { &hf_infiniband_PortInfo_CapabilityMask_CommunicationsManagementSupported, { - "CommunicationsManagementSupported", "infiniband.portinfo.capabilitymask.communicationsmanagementsupported", + { &hf_infiniband_PortInfo_CapabilityMask_CommunicationManagementSupported, { + "CommunicationManagementSupported", "infiniband.portinfo.capabilitymask.communicationmanagementsupported", FT_UINT32, BASE_HEX, NULL, 0x00010000, NULL, HFILL} }, { &hf_infiniband_PortInfo_CapabilityMask_SNMPTunnelingSupported, { |