|
|
537ca1 |
diff --git a/epan/dissectors/CMakeLists.txt b/epan/dissectors/CMakeLists.txt
|
|
|
537ca1 |
index 11d2c89cd0..3c313d2c5e 100644
|
|
|
537ca1 |
--- a/epan/dissectors/CMakeLists.txt
|
|
|
537ca1 |
+++ b/epan/dissectors/CMakeLists.txt
|
|
|
537ca1 |
@@ -1745,7 +1745,7 @@ set(DISSECTOR_SRC
|
|
|
537ca1 |
${CMAKE_CURRENT_SOURCE_DIR}/packet-smb-direct.c
|
|
|
537ca1 |
${CMAKE_CURRENT_SOURCE_DIR}/packet-smb.c
|
|
|
537ca1 |
${CMAKE_CURRENT_SOURCE_DIR}/packet-smb2.c
|
|
|
537ca1 |
- ${CMAKE_CURRENT_SOURCE_DIR}/packet-smcr.c
|
|
|
537ca1 |
+ ${CMAKE_CURRENT_SOURCE_DIR}/packet-smc.c
|
|
|
537ca1 |
${CMAKE_CURRENT_SOURCE_DIR}/packet-sml.c
|
|
|
537ca1 |
${CMAKE_CURRENT_SOURCE_DIR}/packet-smp.c
|
|
|
537ca1 |
${CMAKE_CURRENT_SOURCE_DIR}/packet-smpp.c
|
|
|
537ca1 |
diff --git a/epan/dissectors/packet-smcr.c b/epan/dissectors/packet-smc.c
|
|
|
537ca1 |
similarity index 56%
|
|
|
537ca1 |
rename from epan/dissectors/packet-smcr.c
|
|
|
537ca1 |
rename to epan/dissectors/packet-smc.c
|
|
|
537ca1 |
index 7096d1b0b0..bbfa9c07ef 100644
|
|
|
537ca1 |
--- a/epan/dissectors/packet-smcr.c
|
|
|
537ca1 |
+++ b/epan/dissectors/packet-smc.c
|
|
|
537ca1 |
@@ -1,7 +1,8 @@
|
|
|
537ca1 |
-/* packet-smcr.c
|
|
|
537ca1 |
- * SMC-R dissector for wireshark
|
|
|
537ca1 |
+/* packet-smc.c
|
|
|
537ca1 |
+ * SMC dissector for wireshark
|
|
|
537ca1 |
* By Joe Fowler <fowlerja@us.ibm.com>
|
|
|
537ca1 |
- * (c) Copyright IBM Corporation 2014
|
|
|
537ca1 |
+ * By Guvenc Gulce <guvenc@linux.ibm.com>
|
|
|
537ca1 |
+ * (c) Copyright IBM Corporation 2014,2020
|
|
|
537ca1 |
* LICENSE: GNU General Public License, version 2, or (at your option) any
|
|
|
537ca1 |
* version. http://opensource.org/licenses/gpl-2.0.php
|
|
|
537ca1 |
*
|
|
|
537ca1 |
@@ -13,6 +14,7 @@
|
|
|
537ca1 |
*
|
|
|
537ca1 |
* Please refer to the following specs for protocol:
|
|
|
537ca1 |
* - ietf - draft-fox-tcpm-shared-memory-rdma-05
|
|
|
537ca1 |
+ * - https://www.ibm.com/support/pages/node/6326337
|
|
|
537ca1 |
*/
|
|
|
537ca1 |
|
|
|
537ca1 |
#include "config.h"
|
|
|
537ca1 |
@@ -20,25 +22,33 @@
|
|
|
537ca1 |
#include <epan/packet.h>
|
|
|
537ca1 |
|
|
|
537ca1 |
#include "packet-tcp.h"
|
|
|
537ca1 |
+#include <stdbool.h>
|
|
|
537ca1 |
|
|
|
537ca1 |
-#define SMCR_TCP_MIN_HEADER_LENGTH 7
|
|
|
537ca1 |
-#define CLC_MSG_START_OFFSET 7
|
|
|
537ca1 |
+#define SMC_TCP_MIN_HEADER_LENGTH 7
|
|
|
537ca1 |
+#define CLC_MSG_START_OFFSET 5
|
|
|
537ca1 |
#define LLC_MSG_START_OFFSET 3
|
|
|
537ca1 |
#define RMBE_CTRL_START_OFFSET 2
|
|
|
537ca1 |
#define MAC_ADDR_LEN 6
|
|
|
537ca1 |
+#define SMC_V2 2
|
|
|
537ca1 |
#define GID_LEN 16
|
|
|
537ca1 |
#define PEERID_LEN 8
|
|
|
537ca1 |
+#define DIAG_INFO_LEN 4
|
|
|
537ca1 |
+#define EID_LEN 32
|
|
|
537ca1 |
+#define ISM_GID_LEN 8
|
|
|
537ca1 |
+#define ISM_CHID_LEN 2
|
|
|
537ca1 |
#define IPV4_SUBNET_MASK_LEN 4
|
|
|
537ca1 |
-#define IPV6_PREFIX_LEN 4
|
|
|
537ca1 |
+#define IPV6_PREFIX_LEN 16
|
|
|
537ca1 |
#define ONE_BYTE_RESERVED 1
|
|
|
537ca1 |
#define TWO_BYTE_RESERVED 2
|
|
|
537ca1 |
#define QP_LEN 3
|
|
|
537ca1 |
#define RKEY_LEN 4
|
|
|
537ca1 |
#define VIRTUAL_ADDR_LEN 8
|
|
|
537ca1 |
#define FLAG_BYTE_LEN 1
|
|
|
537ca1 |
+#define LENGTH_BYTE_LEN 2
|
|
|
537ca1 |
#define SEQNO_LEN 2
|
|
|
537ca1 |
#define CURSOR_LEN 4
|
|
|
537ca1 |
#define ALERT_TOKEN_LEN 4
|
|
|
537ca1 |
+#define DMB_TOKEN_LEN 8
|
|
|
537ca1 |
#define PSN_LEN 3
|
|
|
537ca1 |
#define CONN_INDEX_LEN 1
|
|
|
537ca1 |
#define SMCR_MSG_BYTE_0 0
|
|
|
537ca1 |
@@ -52,6 +62,7 @@
|
|
|
537ca1 |
#define LLC_CMD_RSP_OFFSET 3
|
|
|
537ca1 |
#define ACCEPT_CONFIRM_QP_OFFSET 38
|
|
|
537ca1 |
#define SMCR_CLC_ID 0xe2d4c3d9 /*EBCDIC 'SMCR' */
|
|
|
537ca1 |
+#define SMCD_CLC_ID 0xe2d4c3c4 /*EBCDIC 'SMCD' */
|
|
|
537ca1 |
#define SMC_CLC_V1 0x10
|
|
|
537ca1 |
#define SMC_CLC_SMC_R 0x01
|
|
|
537ca1 |
|
|
|
537ca1 |
@@ -66,6 +77,52 @@ typedef enum {
|
|
|
537ca1 |
SMC_CLC_DECLINE = 4
|
|
|
537ca1 |
} clc_message;
|
|
|
537ca1 |
|
|
|
537ca1 |
+typedef enum {
|
|
|
537ca1 |
+ SMC_CLC_SMCR = 0,
|
|
|
537ca1 |
+ SMC_CLC_SMCD = 1,
|
|
|
537ca1 |
+ SMC_CLC_NONE = 2,
|
|
|
537ca1 |
+ SMC_CLC_BOTH = 3,
|
|
|
537ca1 |
+} clc_type_message;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+typedef enum {
|
|
|
537ca1 |
+ SMC_CLC_OS_ZOS = 1,
|
|
|
537ca1 |
+ SMC_CLC_OS_LINUX = 2,
|
|
|
537ca1 |
+ SMC_CLC_OS_AIX = 3,
|
|
|
537ca1 |
+ SMC_CLC_OS_UNKOWN = 15,
|
|
|
537ca1 |
+} clc_os_message;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+static const value_string smc_clc_os_message_txt[] = {
|
|
|
537ca1 |
+ { SMC_CLC_OS_ZOS, "z/OS" },
|
|
|
537ca1 |
+ { SMC_CLC_OS_LINUX, "Linux" },
|
|
|
537ca1 |
+ { SMC_CLC_OS_AIX, "AIX" },
|
|
|
537ca1 |
+ { SMC_CLC_OS_UNKOWN, "Unknown" },
|
|
|
537ca1 |
+ { 0, NULL }
|
|
|
537ca1 |
+};
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+static const value_string smc_clc_type_message_txt[] = {
|
|
|
537ca1 |
+ { SMC_CLC_SMCR, "SMC-R" },
|
|
|
537ca1 |
+ { SMC_CLC_SMCD, "SMC-D" },
|
|
|
537ca1 |
+ { SMC_CLC_NONE, "NONE" },
|
|
|
537ca1 |
+ { SMC_CLC_BOTH, "SMC-R/SMC-D" },
|
|
|
537ca1 |
+ { 0, NULL }
|
|
|
537ca1 |
+};
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+static const value_string smcv2_clc_col_info_message_txt[] = {
|
|
|
537ca1 |
+ { SMC_CLC_SMCR, "[SMC-R-Proposal]" },
|
|
|
537ca1 |
+ { SMC_CLC_SMCD, "[SMC-Dv2-Proposal]" },
|
|
|
537ca1 |
+ { SMC_CLC_NONE, "[NONE]" },
|
|
|
537ca1 |
+ { SMC_CLC_BOTH, "[SMC-Dv2/SMC-R-Proposal]" },
|
|
|
537ca1 |
+ { 0, NULL }
|
|
|
537ca1 |
+};
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+static const value_string smc_clc_col_info_message_txt[] = {
|
|
|
537ca1 |
+ { SMC_CLC_SMCR, "[SMC-R-Proposal]" },
|
|
|
537ca1 |
+ { SMC_CLC_SMCD, "[SMC-D-Proposal]" },
|
|
|
537ca1 |
+ { SMC_CLC_NONE, "[NONE]" },
|
|
|
537ca1 |
+ { SMC_CLC_BOTH, "[SMC-D/SMC-R-Proposal]" },
|
|
|
537ca1 |
+ { 0, NULL }
|
|
|
537ca1 |
+};
|
|
|
537ca1 |
|
|
|
537ca1 |
static const value_string smcr_clc_message_txt[] = {
|
|
|
537ca1 |
{ SMC_CLC_PROPOSAL, "Proposal" },
|
|
|
537ca1 |
@@ -104,22 +161,35 @@ static const value_string smcr_llc_message_txt[] = {
|
|
|
537ca1 |
{ 0, NULL }
|
|
|
537ca1 |
};
|
|
|
537ca1 |
|
|
|
537ca1 |
-static int proto_smcr = -1;
|
|
|
537ca1 |
+static int proto_smc = -1;
|
|
|
537ca1 |
static int ett_smcr = -1;
|
|
|
537ca1 |
static int hf_smcr_clc_msg = -1;
|
|
|
537ca1 |
static int hf_smcr_llc_msg = -1;
|
|
|
537ca1 |
|
|
|
537ca1 |
-/* SMC-R Proposal */
|
|
|
537ca1 |
+/* SMC Proposal for both SMC-D and SMC-R */
|
|
|
537ca1 |
static int ett_proposal_flag = -1;
|
|
|
537ca1 |
+static int ett_proposal_ext_flag2 = -1;
|
|
|
537ca1 |
+static int hf_proposal_smc_version_release_number = -1;
|
|
|
537ca1 |
+static int hf_proposal_smc_version_seid = -1;
|
|
|
537ca1 |
static int hf_proposal_smc_version = -1;
|
|
|
537ca1 |
-static int hf_smcr_proposal_flags = -1;
|
|
|
537ca1 |
-static int hf_smcr_proposal_client_peer_id = -1;
|
|
|
537ca1 |
-static int hf_smcr_proposal_client_preferred_gid = -1;
|
|
|
537ca1 |
-static int hf_smcr_proposal_client_preferred_mac = -1;
|
|
|
537ca1 |
-static int hf_smcr_proposal_outgoing_interface_subnet_mask = -1;
|
|
|
537ca1 |
-static int hf_smcr_proposal_outgoing_subnet_mask_signifcant_bits = -1;
|
|
|
537ca1 |
-static int hf_smcr_proposal_ipv6_prefix = -1;
|
|
|
537ca1 |
-static int hf_smcr_proposal_ipv6_prefix_length = -1;
|
|
|
537ca1 |
+static int hf_proposal_smc_type = -1;
|
|
|
537ca1 |
+static int hf_proposal_smc_v2_type = -1;
|
|
|
537ca1 |
+static int hf_smc_length = -1;
|
|
|
537ca1 |
+static int hf_smc_proposal_smc_chid = -1;
|
|
|
537ca1 |
+static int hf_smc_proposal_flags = -1;
|
|
|
537ca1 |
+static int hf_smc_proposal_eid = -1;
|
|
|
537ca1 |
+static int hf_smc_proposal_system_eid = -1;
|
|
|
537ca1 |
+static int hf_smc_proposal_ext_flags = -1;
|
|
|
537ca1 |
+static int hf_smc_proposal_client_peer_id = -1;
|
|
|
537ca1 |
+static int hf_smc_proposal_ism_gid = -1;
|
|
|
537ca1 |
+static int hf_smc_proposal_client_preferred_gid = -1;
|
|
|
537ca1 |
+static int hf_smc_proposal_client_preferred_mac = -1;
|
|
|
537ca1 |
+static int hf_smc_proposal_outgoing_interface_subnet_mask = -1;
|
|
|
537ca1 |
+static int hf_smc_proposal_rocev2_gid_ipv4_addr = -1;
|
|
|
537ca1 |
+static int hf_smc_proposal_rocev2_gid_ipv6_addr = -1;
|
|
|
537ca1 |
+static int hf_smc_proposal_outgoing_subnet_mask_signifcant_bits = -1;
|
|
|
537ca1 |
+static int hf_smc_proposal_ipv6_prefix = -1;
|
|
|
537ca1 |
+static int hf_smc_proposal_ipv6_prefix_length = -1;
|
|
|
537ca1 |
|
|
|
537ca1 |
/* SMC-R Accept */
|
|
|
537ca1 |
static int ett_accept_flag = -1;
|
|
|
537ca1 |
@@ -158,10 +228,57 @@ static int hf_confirm_smc_version = -1;
|
|
|
537ca1 |
static int hf_confirm_rmb_buffer_size = -1;
|
|
|
537ca1 |
static int hf_confirm_qp_mtu_value = -1;
|
|
|
537ca1 |
|
|
|
537ca1 |
+/* SMC-D Accept */
|
|
|
537ca1 |
+static int hf_accept_smc_type = -1;
|
|
|
537ca1 |
+static int ett_smcd_accept_flag = -1;
|
|
|
537ca1 |
+static int ett_smcd_accept_fce_flag = -1;
|
|
|
537ca1 |
+static int ett_smcd_accept_flag2 = -1;
|
|
|
537ca1 |
+static int hf_smcd_accept_smc_version = -1;
|
|
|
537ca1 |
+static int hf_accept_os_type = -1;
|
|
|
537ca1 |
+static int hf_accept_smc_version_release_number = -1;
|
|
|
537ca1 |
+static int hf_smcd_accept_first_contact = -1;
|
|
|
537ca1 |
+static int hf_accept_dmb_buffer_size = -1;
|
|
|
537ca1 |
+static int hf_smcd_accept_flags = -1;
|
|
|
537ca1 |
+static int hf_smcd_accept_fce_flags = -1;
|
|
|
537ca1 |
+static int hf_smcd_accept_flags2 = -1;
|
|
|
537ca1 |
+static int hf_smcd_accept_server_peer_id = -1;
|
|
|
537ca1 |
+static int hf_smcd_accept_dmbe_conn_index = -1;
|
|
|
537ca1 |
+static int hf_smcd_accept_dmb_token = -1;
|
|
|
537ca1 |
+static int hf_smcd_accept_server_link_id = -1;
|
|
|
537ca1 |
+static int hf_smcd_accept_smc_chid = -1;
|
|
|
537ca1 |
+static int hf_smcd_accept_eid = -1;
|
|
|
537ca1 |
+static int hf_smcd_accept_peer_name = -1;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+/* SMC-D Confirm */
|
|
|
537ca1 |
+static int hf_confirm_smc_type = -1;
|
|
|
537ca1 |
+static int ett_smcd_confirm_flag = -1;
|
|
|
537ca1 |
+static int ett_smcd_confirm_fce_flag = -1;
|
|
|
537ca1 |
+static int ett_smcd_confirm_flag2 = -1;
|
|
|
537ca1 |
+static int hf_smcd_confirm_smc_version = -1;
|
|
|
537ca1 |
+static int hf_confirm_os_type = -1;
|
|
|
537ca1 |
+static int hf_smcd_confirm_flags = -1;
|
|
|
537ca1 |
+static int hf_smcd_confirm_flags2 = -1;
|
|
|
537ca1 |
+static int hf_smcd_confirm_first_contact = -1;
|
|
|
537ca1 |
+static int hf_smcd_confirm_client_peer_id = -1;
|
|
|
537ca1 |
+static int hf_smcd_confirm_dmb_token = -1;
|
|
|
537ca1 |
+static int hf_smcd_confirm_dmbe_conn_index = -1;
|
|
|
537ca1 |
+static int hf_smcd_confirm_client_link_id = -1;
|
|
|
537ca1 |
+static int hf_confirm_smc_version_release_number = -1;
|
|
|
537ca1 |
+static int hf_smcd_confirm_dmb_buffer_size = -1;
|
|
|
537ca1 |
+static int hf_smcd_confirm_smc_chid = -1;
|
|
|
537ca1 |
+static int hf_smcd_confirm_eid = -1;
|
|
|
537ca1 |
+static int hf_smcd_confirm_peer_name = -1;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
/* SMC-R Decline */
|
|
|
537ca1 |
-static int hf_smcr_decline_flags = -1;
|
|
|
537ca1 |
-static int hf_smcr_decline_peer_id = -1;
|
|
|
537ca1 |
-static int hf_smcr_decline_diag_info = -1;
|
|
|
537ca1 |
+static int ett_decline_flag = -1;
|
|
|
537ca1 |
+static int ett_decline_flag2 = -1;
|
|
|
537ca1 |
+static int hf_smc_decline_flags = -1;
|
|
|
537ca1 |
+static int hf_smc_decline_flags2 = -1;
|
|
|
537ca1 |
+static int hf_smc_decline_peer_id = -1;
|
|
|
537ca1 |
+static int hf_smc_decline_diag_info = -1;
|
|
|
537ca1 |
+static int hf_decline_os_type = -1;
|
|
|
537ca1 |
+static int hf_decline_smc_version = -1;
|
|
|
537ca1 |
+static int hf_decline_out_of_sync = -1;
|
|
|
537ca1 |
|
|
|
537ca1 |
/* SMC-R Confirm Link*/
|
|
|
537ca1 |
static int ett_confirm_link_flag = -1;
|
|
|
537ca1 |
@@ -256,55 +373,300 @@ static int hf_smcr_rmbe_ctrl_peer_abnormal_close = -1;
|
|
|
537ca1 |
|
|
|
537ca1 |
void proto_register_smcr(void);
|
|
|
537ca1 |
void proto_reg_handoff_smcr(void);
|
|
|
537ca1 |
-static dissector_handle_t smcr_tcp_handle;
|
|
|
537ca1 |
+static dissector_handle_t smc_tcp_handle;
|
|
|
537ca1 |
|
|
|
537ca1 |
static void
|
|
|
537ca1 |
-disect_smcr_proposal(tvbuff_t *tvb, proto_tree *tree)
|
|
|
537ca1 |
+disect_smc_proposal(tvbuff_t *tvb, proto_tree *tree, bool is_ipv6)
|
|
|
537ca1 |
{
|
|
|
537ca1 |
- guint offset;
|
|
|
537ca1 |
- guint16 mask_offset;
|
|
|
537ca1 |
- guint8 ipv6_prefix_count;
|
|
|
537ca1 |
+ guint offset, suboffset;
|
|
|
537ca1 |
+ guint16 mask_offset, v2_ext_offset;
|
|
|
537ca1 |
+ guint16 v2_ext_pos = 0, smcd_v2_ext_offset = 0;
|
|
|
537ca1 |
+ guint16 smcd_v2_ext_pos = 0;
|
|
|
537ca1 |
+ guint8 ipv6_prefix_count, smc_version;
|
|
|
537ca1 |
+ guint8 smc_type, num_of_gids = 0, num_of_eids = 0;
|
|
|
537ca1 |
+ guint8 smc_type_v1 = 0, smc_type_v2 = 0;
|
|
|
537ca1 |
+ bool is_smc_v2, is_smcdv1, is_smcdv2;
|
|
|
537ca1 |
proto_item *proposal_flag_item;
|
|
|
537ca1 |
proto_tree *proposal_flag_tree;
|
|
|
537ca1 |
|
|
|
537ca1 |
+
|
|
|
537ca1 |
offset = CLC_MSG_START_OFFSET;
|
|
|
537ca1 |
- proposal_flag_item = proto_tree_add_item(tree, hf_smcr_proposal_flags, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_length, tvb, offset,
|
|
|
537ca1 |
+ LENGTH_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ offset += LENGTH_BYTE_LEN;
|
|
|
537ca1 |
+ proposal_flag_item = proto_tree_add_item(tree, hf_smc_proposal_flags, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
proposal_flag_tree = proto_item_add_subtree(proposal_flag_item, ett_proposal_flag);
|
|
|
537ca1 |
proto_tree_add_item(proposal_flag_tree, hf_proposal_smc_version, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ smc_version = tvb_get_guint8(tvb, offset);
|
|
|
537ca1 |
+ smc_type = tvb_get_guint8(tvb, offset);
|
|
|
537ca1 |
+ smc_version = ((smc_version >> 4) & 0x0F);
|
|
|
537ca1 |
+ is_smc_v2 = (smc_version >= SMC_V2);
|
|
|
537ca1 |
+ smc_type_v2 = ((smc_type >> 2) & 0x03);
|
|
|
537ca1 |
+ smc_type_v1 = (smc_type & 0x03);
|
|
|
537ca1 |
+ is_smcdv1 = ((smc_type_v1 == SMC_CLC_SMCD) || (smc_type_v1 == SMC_CLC_BOTH));
|
|
|
537ca1 |
+ is_smcdv2 = ((smc_type_v2 == SMC_CLC_SMCD) || (smc_type_v2 == SMC_CLC_BOTH));
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ if (is_smc_v2)
|
|
|
537ca1 |
+ proto_tree_add_item(proposal_flag_tree, hf_proposal_smc_v2_type, tvb,
|
|
|
537ca1 |
+ offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ proto_tree_add_item(proposal_flag_tree, hf_proposal_smc_type, tvb,
|
|
|
537ca1 |
+ offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+
|
|
|
537ca1 |
offset += FLAG_BYTE_LEN;
|
|
|
537ca1 |
- proto_tree_add_item(tree, hf_smcr_proposal_client_peer_id, tvb, offset,
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_proposal_client_peer_id, tvb, offset,
|
|
|
537ca1 |
PEERID_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
offset += PEERID_LEN;
|
|
|
537ca1 |
- proto_tree_add_item(tree, hf_smcr_proposal_client_preferred_gid, tvb,
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_proposal_client_preferred_gid, tvb,
|
|
|
537ca1 |
offset, GID_LEN, ENC_NA);
|
|
|
537ca1 |
offset += GID_LEN;
|
|
|
537ca1 |
- proto_tree_add_item(tree, hf_smcr_proposal_client_preferred_mac, tvb,
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_proposal_client_preferred_mac, tvb,
|
|
|
537ca1 |
offset, MAC_ADDR_LEN, ENC_NA);
|
|
|
537ca1 |
offset += MAC_ADDR_LEN;
|
|
|
537ca1 |
mask_offset = tvb_get_ntohs(tvb, offset);
|
|
|
537ca1 |
- offset += 2 + mask_offset;
|
|
|
537ca1 |
- proto_tree_add_item(tree, hf_smcr_proposal_outgoing_interface_subnet_mask, tvb,
|
|
|
537ca1 |
- offset, IPV4_SUBNET_MASK_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ if (mask_offset != 0) {
|
|
|
537ca1 |
+ suboffset = offset;
|
|
|
537ca1 |
+ suboffset += TWO_BYTE_RESERVED;
|
|
|
537ca1 |
+ if (is_smcdv1 || is_smcdv2) {
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_proposal_ism_gid, tvb,
|
|
|
537ca1 |
+ suboffset, ISM_GID_LEN, ENC_NA);
|
|
|
537ca1 |
+ }
|
|
|
537ca1 |
+ suboffset += ISM_GID_LEN;
|
|
|
537ca1 |
+ if (is_smc_v2) {
|
|
|
537ca1 |
+ if (is_smcdv2) {
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_proposal_smc_chid, tvb, suboffset,
|
|
|
537ca1 |
+ LENGTH_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ }
|
|
|
537ca1 |
+ suboffset += LENGTH_BYTE_LEN;
|
|
|
537ca1 |
+ v2_ext_offset = tvb_get_ntohs(tvb, suboffset);
|
|
|
537ca1 |
+ v2_ext_pos = suboffset + TWO_BYTE_RESERVED + v2_ext_offset;
|
|
|
537ca1 |
+ }
|
|
|
537ca1 |
+ }
|
|
|
537ca1 |
+ offset += TWO_BYTE_RESERVED + mask_offset;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_proposal_outgoing_interface_subnet_mask, tvb,
|
|
|
537ca1 |
+ offset, IPV4_SUBNET_MASK_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
offset += IPV4_SUBNET_MASK_LEN;
|
|
|
537ca1 |
- proto_tree_add_item(tree, hf_smcr_proposal_outgoing_subnet_mask_signifcant_bits, tvb,
|
|
|
537ca1 |
- offset, 1, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_proposal_outgoing_subnet_mask_signifcant_bits, tvb,
|
|
|
537ca1 |
+ offset, 1, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
offset += 1;
|
|
|
537ca1 |
/* Bump past reserved bytes */
|
|
|
537ca1 |
offset += TWO_BYTE_RESERVED;
|
|
|
537ca1 |
ipv6_prefix_count = tvb_get_guint8(tvb, offset);
|
|
|
537ca1 |
- offset += 2;
|
|
|
537ca1 |
+ offset += 1;
|
|
|
537ca1 |
|
|
|
537ca1 |
while (ipv6_prefix_count != 0) {
|
|
|
537ca1 |
- proto_tree_add_item(tree, hf_smcr_proposal_ipv6_prefix, tvb,
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_proposal_ipv6_prefix, tvb,
|
|
|
537ca1 |
offset, IPV6_PREFIX_LEN, ENC_NA);
|
|
|
537ca1 |
offset += IPV6_PREFIX_LEN;
|
|
|
537ca1 |
- proto_tree_add_item(tree, hf_smcr_proposal_ipv6_prefix_length, tvb,
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_proposal_ipv6_prefix_length, tvb,
|
|
|
537ca1 |
offset, 1, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
offset += 1;
|
|
|
537ca1 |
ipv6_prefix_count--;
|
|
|
537ca1 |
}
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ if (v2_ext_pos >= offset) {
|
|
|
537ca1 |
+ offset = v2_ext_pos;
|
|
|
537ca1 |
+ num_of_eids = tvb_get_guint8(tvb, offset);
|
|
|
537ca1 |
+ offset += FLAG_BYTE_LEN;
|
|
|
537ca1 |
+ num_of_gids = tvb_get_guint8(tvb, offset);
|
|
|
537ca1 |
+ offset += FLAG_BYTE_LEN;
|
|
|
537ca1 |
+ /*Skip reserved flag 1*/
|
|
|
537ca1 |
+ offset += 1;
|
|
|
537ca1 |
+ proposal_flag_item = proto_tree_add_item(tree, hf_smc_proposal_ext_flags, tvb,
|
|
|
537ca1 |
+ offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ proposal_flag_tree = proto_item_add_subtree(proposal_flag_item, ett_proposal_ext_flag2);
|
|
|
537ca1 |
+ proto_tree_add_item(proposal_flag_tree, hf_proposal_smc_version_release_number,
|
|
|
537ca1 |
+ tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ proto_tree_add_item(proposal_flag_tree, hf_proposal_smc_version_seid, tvb,
|
|
|
537ca1 |
+ offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ offset += FLAG_BYTE_LEN;
|
|
|
537ca1 |
+ /*Skip not used 2 bytes*/
|
|
|
537ca1 |
+ offset += 2;
|
|
|
537ca1 |
+ smcd_v2_ext_offset = tvb_get_ntohs(tvb, offset);
|
|
|
537ca1 |
+ offset += 2;
|
|
|
537ca1 |
+ smcd_v2_ext_pos = offset + smcd_v2_ext_offset;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ if (is_ipv6) {
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_proposal_rocev2_gid_ipv6_addr, tvb,
|
|
|
537ca1 |
+ offset, GID_LEN, ENC_NA);
|
|
|
537ca1 |
+ offset += GID_LEN;
|
|
|
537ca1 |
+ }
|
|
|
537ca1 |
+ else {
|
|
|
537ca1 |
+ offset += 12;
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_proposal_rocev2_gid_ipv4_addr, tvb,
|
|
|
537ca1 |
+ offset, IPV4_SUBNET_MASK_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ offset += IPV4_SUBNET_MASK_LEN;
|
|
|
537ca1 |
+ }
|
|
|
537ca1 |
+ /*Skip reserved 16 bytes*/
|
|
|
537ca1 |
+ offset += 16;
|
|
|
537ca1 |
+ while (num_of_eids != 0) {
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_proposal_eid, tvb,
|
|
|
537ca1 |
+ offset, EID_LEN, ENC_ASCII | ENC_NA);
|
|
|
537ca1 |
+ offset += EID_LEN;
|
|
|
537ca1 |
+ num_of_eids--;
|
|
|
537ca1 |
+ }
|
|
|
537ca1 |
+ if (smcd_v2_ext_pos >= offset) {
|
|
|
537ca1 |
+ offset = smcd_v2_ext_pos;
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_proposal_system_eid, tvb,
|
|
|
537ca1 |
+ offset, EID_LEN, ENC_ASCII | ENC_NA);
|
|
|
537ca1 |
+ offset += EID_LEN;
|
|
|
537ca1 |
+ /*Skip reserved 16 bytes*/
|
|
|
537ca1 |
+ offset += 16;
|
|
|
537ca1 |
+ while (num_of_gids != 0) {
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_proposal_ism_gid, tvb,
|
|
|
537ca1 |
+ offset, ISM_GID_LEN, ENC_NA);
|
|
|
537ca1 |
+ offset += ISM_GID_LEN;
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_proposal_smc_chid, tvb, offset,
|
|
|
537ca1 |
+ ISM_CHID_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ offset += ISM_CHID_LEN;
|
|
|
537ca1 |
+ num_of_gids--;
|
|
|
537ca1 |
+ }
|
|
|
537ca1 |
+ }
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ }
|
|
|
537ca1 |
+}
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+static void
|
|
|
537ca1 |
+disect_smcd_accept(tvbuff_t* tvb, proto_tree* tree)
|
|
|
537ca1 |
+{
|
|
|
537ca1 |
+ guint offset;
|
|
|
537ca1 |
+ proto_item* accept_flag_item;
|
|
|
537ca1 |
+ proto_tree* accept_flag_tree;
|
|
|
537ca1 |
+ proto_item* accept_flag2_item;
|
|
|
537ca1 |
+ proto_tree* accept_flag2_tree;
|
|
|
537ca1 |
+ guint8 smc_version, first_contact = 0;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ offset = CLC_MSG_START_OFFSET;
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_length, tvb, offset,
|
|
|
537ca1 |
+ LENGTH_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ offset += LENGTH_BYTE_LEN;
|
|
|
537ca1 |
+ accept_flag_item = proto_tree_add_item(tree, hf_smcd_accept_flags, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ accept_flag_tree = proto_item_add_subtree(accept_flag_item, ett_smcd_accept_flag);
|
|
|
537ca1 |
+ proto_tree_add_item(accept_flag_tree, hf_smcd_accept_smc_version, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ proto_tree_add_item(accept_flag_tree, hf_smcd_accept_first_contact, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ proto_tree_add_item(accept_flag_tree, hf_accept_smc_type, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ smc_version = tvb_get_guint8(tvb, offset);
|
|
|
537ca1 |
+ first_contact = tvb_get_guint8(tvb, offset);
|
|
|
537ca1 |
+ smc_version = ((smc_version >> 4) & 0x0F);
|
|
|
537ca1 |
+ first_contact = ((first_contact >> 3) & 0x01);
|
|
|
537ca1 |
+ offset += FLAG_BYTE_LEN;
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smcd_accept_server_peer_id, tvb, offset,
|
|
|
537ca1 |
+ PEERID_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ offset += PEERID_LEN;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smcd_accept_dmb_token, tvb,
|
|
|
537ca1 |
+ offset, DMB_TOKEN_LEN, ENC_NA);
|
|
|
537ca1 |
+ offset += DMB_TOKEN_LEN;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smcd_accept_dmbe_conn_index, tvb,
|
|
|
537ca1 |
+ offset, CONN_INDEX_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ offset += CONN_INDEX_LEN;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ accept_flag2_item = proto_tree_add_item(tree, hf_smcd_accept_flags2, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ accept_flag2_tree = proto_item_add_subtree(accept_flag2_item, ett_smcd_accept_flag2);
|
|
|
537ca1 |
+ proto_tree_add_item(accept_flag2_tree, hf_accept_dmb_buffer_size, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ offset += FLAG_BYTE_LEN;
|
|
|
537ca1 |
+ offset += TWO_BYTE_RESERVED;
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smcd_accept_server_link_id, tvb,
|
|
|
537ca1 |
+ offset, ALERT_TOKEN_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ offset += ALERT_TOKEN_LEN;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ if (smc_version >= SMC_V2) {
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smcd_accept_smc_chid, tvb, offset,
|
|
|
537ca1 |
+ LENGTH_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ offset += LENGTH_BYTE_LEN;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smcd_accept_eid, tvb, offset, 32, ENC_ASCII | ENC_NA);
|
|
|
537ca1 |
+ offset += 32;
|
|
|
537ca1 |
+ /* Reserved bytes */
|
|
|
537ca1 |
+ offset += 8;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ if (first_contact) {
|
|
|
537ca1 |
+ offset += ONE_BYTE_RESERVED;
|
|
|
537ca1 |
+ accept_flag_item = proto_tree_add_item(tree, hf_smcd_accept_fce_flags, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ accept_flag_tree = proto_item_add_subtree(accept_flag_item, ett_smcd_accept_fce_flag);
|
|
|
537ca1 |
+ proto_tree_add_item(accept_flag_tree, hf_accept_os_type, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ proto_tree_add_item(accept_flag_tree, hf_accept_smc_version_release_number, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ offset += FLAG_BYTE_LEN;
|
|
|
537ca1 |
+ offset += TWO_BYTE_RESERVED;
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smcd_accept_peer_name, tvb, offset, 32, ENC_ASCII | ENC_NA);
|
|
|
537ca1 |
+ offset += 32;
|
|
|
537ca1 |
+ }
|
|
|
537ca1 |
+ }
|
|
|
537ca1 |
+}
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+static void
|
|
|
537ca1 |
+disect_smcd_confirm(tvbuff_t* tvb, proto_tree* tree)
|
|
|
537ca1 |
+{
|
|
|
537ca1 |
+ guint offset;
|
|
|
537ca1 |
+ proto_item* confirm_flag_item;
|
|
|
537ca1 |
+ proto_tree* confirm_flag_tree;
|
|
|
537ca1 |
+ proto_item* confirm_flag2_item;
|
|
|
537ca1 |
+ proto_tree* confirm_flag2_tree;
|
|
|
537ca1 |
+ guint8 smc_version, first_contact = 0;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ offset = CLC_MSG_START_OFFSET;
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_length, tvb, offset,
|
|
|
537ca1 |
+ LENGTH_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ offset += LENGTH_BYTE_LEN;
|
|
|
537ca1 |
+ confirm_flag_item = proto_tree_add_item(tree, hf_smcd_confirm_flags, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ confirm_flag_tree = proto_item_add_subtree(confirm_flag_item, ett_smcd_confirm_flag);
|
|
|
537ca1 |
+ proto_tree_add_item(confirm_flag_tree, hf_smcd_confirm_smc_version, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ proto_tree_add_item(confirm_flag_tree, hf_smcd_confirm_first_contact, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ proto_tree_add_item(confirm_flag_tree, hf_confirm_smc_type, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ smc_version = tvb_get_guint8(tvb, offset);
|
|
|
537ca1 |
+ first_contact = tvb_get_guint8(tvb, offset);
|
|
|
537ca1 |
+ smc_version = ((smc_version >> 4) & 0x0F);
|
|
|
537ca1 |
+ first_contact = ((first_contact >> 3) & 0x01);
|
|
|
537ca1 |
+ offset += FLAG_BYTE_LEN;
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smcd_confirm_client_peer_id, tvb, offset,
|
|
|
537ca1 |
+ PEERID_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ offset += PEERID_LEN;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smcd_confirm_dmb_token, tvb,
|
|
|
537ca1 |
+ offset, DMB_TOKEN_LEN, ENC_NA);
|
|
|
537ca1 |
+ offset += DMB_TOKEN_LEN;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smcd_confirm_dmbe_conn_index, tvb,
|
|
|
537ca1 |
+ offset, CONN_INDEX_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ offset += CONN_INDEX_LEN;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ confirm_flag2_item = proto_tree_add_item(tree, hf_smcd_confirm_flags2, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ confirm_flag2_tree = proto_item_add_subtree(confirm_flag2_item, ett_smcd_confirm_flag2);
|
|
|
537ca1 |
+ proto_tree_add_item(confirm_flag2_tree, hf_smcd_confirm_dmb_buffer_size, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ offset += FLAG_BYTE_LEN;
|
|
|
537ca1 |
+ offset += TWO_BYTE_RESERVED;
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smcd_confirm_client_link_id, tvb,
|
|
|
537ca1 |
+ offset, ALERT_TOKEN_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ offset += ALERT_TOKEN_LEN;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ if (smc_version >= SMC_V2) {
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smcd_confirm_smc_chid, tvb, offset,
|
|
|
537ca1 |
+ LENGTH_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ offset += LENGTH_BYTE_LEN;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smcd_confirm_eid, tvb, offset, 32, ENC_ASCII | ENC_NA);
|
|
|
537ca1 |
+ offset += 32;
|
|
|
537ca1 |
+ /* Reserved bytes */
|
|
|
537ca1 |
+ offset += 8;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ if (first_contact) {
|
|
|
537ca1 |
+ offset += ONE_BYTE_RESERVED;
|
|
|
537ca1 |
+ confirm_flag_item = proto_tree_add_item(tree, hf_smcd_accept_fce_flags, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ confirm_flag_tree = proto_item_add_subtree(confirm_flag_item, ett_smcd_confirm_fce_flag);
|
|
|
537ca1 |
+ proto_tree_add_item(confirm_flag_tree, hf_confirm_os_type, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ proto_tree_add_item(confirm_flag_tree, hf_confirm_smc_version_release_number, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ offset += FLAG_BYTE_LEN;
|
|
|
537ca1 |
+ offset += TWO_BYTE_RESERVED;
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smcd_confirm_peer_name, tvb, offset, 32, ENC_ASCII | ENC_NA);
|
|
|
537ca1 |
+ offset += 32;
|
|
|
537ca1 |
+ }
|
|
|
537ca1 |
+ }
|
|
|
537ca1 |
}
|
|
|
537ca1 |
|
|
|
537ca1 |
+
|
|
|
537ca1 |
static void
|
|
|
537ca1 |
disect_smcr_accept(tvbuff_t *tvb, proto_tree *tree)
|
|
|
537ca1 |
{
|
|
|
537ca1 |
@@ -315,6 +677,9 @@ disect_smcr_accept(tvbuff_t *tvb, proto_tree *tree)
|
|
|
537ca1 |
proto_tree *accept_flag2_tree;
|
|
|
537ca1 |
|
|
|
537ca1 |
offset = CLC_MSG_START_OFFSET;
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_length, tvb, offset,
|
|
|
537ca1 |
+ LENGTH_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ offset += LENGTH_BYTE_LEN;
|
|
|
537ca1 |
accept_flag_item = proto_tree_add_item(tree, hf_smcr_accept_flags, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
accept_flag_tree = proto_item_add_subtree(accept_flag_item, ett_accept_flag);
|
|
|
537ca1 |
proto_tree_add_item(accept_flag_tree, hf_accept_smc_version, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
@@ -367,6 +732,9 @@ disect_smcr_confirm(tvbuff_t *tvb, proto_tree *tree)
|
|
|
537ca1 |
proto_tree *confirm_flag2_tree;
|
|
|
537ca1 |
|
|
|
537ca1 |
offset = CLC_MSG_START_OFFSET;
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_length, tvb, offset,
|
|
|
537ca1 |
+ LENGTH_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ offset += LENGTH_BYTE_LEN;
|
|
|
537ca1 |
confirm_flag_item = proto_tree_add_item(tree, hf_smcr_confirm_flags, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
confirm_flag_tree = proto_item_add_subtree(confirm_flag_item, ett_confirm_flag);
|
|
|
537ca1 |
proto_tree_add_item(confirm_flag_tree, hf_confirm_smc_version, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
@@ -411,17 +779,41 @@ disect_smcr_confirm(tvbuff_t *tvb, proto_tree *tree)
|
|
|
537ca1 |
static void
|
|
|
537ca1 |
disect_smcr_decline(tvbuff_t *tvb, proto_tree *tree)
|
|
|
537ca1 |
{
|
|
|
537ca1 |
- guint offset;
|
|
|
537ca1 |
+ proto_item* decline_flag_item;
|
|
|
537ca1 |
+ proto_tree* decline_flag_tree;
|
|
|
537ca1 |
+ proto_item* decline_flag2_item;
|
|
|
537ca1 |
+ proto_tree* decline_flag2_tree;
|
|
|
537ca1 |
+ guint offset, smc_version;
|
|
|
537ca1 |
|
|
|
537ca1 |
offset = CLC_MSG_START_OFFSET;
|
|
|
537ca1 |
- proto_tree_add_item(tree, hf_smcr_decline_flags, tvb, offset,
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_length, tvb, offset,
|
|
|
537ca1 |
+ LENGTH_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ offset += LENGTH_BYTE_LEN;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ decline_flag_item = proto_tree_add_item(tree, hf_smc_decline_flags, tvb, offset,
|
|
|
537ca1 |
+ FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ decline_flag_tree = proto_item_add_subtree(decline_flag_item, ett_decline_flag);
|
|
|
537ca1 |
+ proto_tree_add_item(decline_flag_tree, hf_decline_smc_version, tvb, offset,
|
|
|
537ca1 |
+ FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ proto_tree_add_item(decline_flag_tree, hf_decline_out_of_sync, tvb, offset,
|
|
|
537ca1 |
FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ smc_version = tvb_get_guint8(tvb, offset);
|
|
|
537ca1 |
+ smc_version = ((smc_version >> 4) & 0x0F);
|
|
|
537ca1 |
+
|
|
|
537ca1 |
offset += FLAG_BYTE_LEN;
|
|
|
537ca1 |
- proto_tree_add_item(tree, hf_smcr_decline_peer_id, tvb, offset,
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_decline_peer_id, tvb, offset,
|
|
|
537ca1 |
PEERID_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
offset += PEERID_LEN;
|
|
|
537ca1 |
- proto_tree_add_item(tree, hf_smcr_decline_diag_info, tvb, offset,
|
|
|
537ca1 |
- 4, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_decline_diag_info, tvb, offset,
|
|
|
537ca1 |
+ DIAG_INFO_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ offset += DIAG_INFO_LEN;
|
|
|
537ca1 |
+ if (smc_version >= SMC_V2) {
|
|
|
537ca1 |
+ decline_flag2_item = proto_tree_add_item(tree, hf_smc_decline_flags2, tvb, offset,
|
|
|
537ca1 |
+ FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ decline_flag2_tree = proto_item_add_subtree(decline_flag2_item, ett_decline_flag2);
|
|
|
537ca1 |
+ proto_tree_add_item(decline_flag2_tree, hf_decline_os_type, tvb, offset,
|
|
|
537ca1 |
+ FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
+ }
|
|
|
537ca1 |
}
|
|
|
537ca1 |
|
|
|
537ca1 |
static void
|
|
|
537ca1 |
@@ -730,50 +1122,126 @@ disect_smcr_rmbe_ctrl(tvbuff_t *tvb, proto_tree *tree)
|
|
|
537ca1 |
tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
}
|
|
|
537ca1 |
|
|
|
537ca1 |
+static guint8 get_mixed_type(guint8 v1_type, guint8 v2_type)
|
|
|
537ca1 |
+{
|
|
|
537ca1 |
+ if (v1_type == SMC_CLC_BOTH)
|
|
|
537ca1 |
+ return v1_type;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ if (v1_type == SMC_CLC_NONE)
|
|
|
537ca1 |
+ return v2_type;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ if (((v2_type == SMC_CLC_SMCD) && (v1_type == SMC_CLC_SMCR)) ||
|
|
|
537ca1 |
+ ((v2_type == SMC_CLC_SMCR) && (v1_type == SMC_CLC_SMCD)))
|
|
|
537ca1 |
+ return SMC_CLC_BOTH;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ return v2_type;
|
|
|
537ca1 |
+}
|
|
|
537ca1 |
+
|
|
|
537ca1 |
static int
|
|
|
537ca1 |
-dissect_smcr_tcp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
|
|
|
537ca1 |
+dissect_smc_tcp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
|
|
|
537ca1 |
void *data _U_)
|
|
|
537ca1 |
{
|
|
|
537ca1 |
gint offset;
|
|
|
537ca1 |
guint16 msg_len;
|
|
|
537ca1 |
+ guint8 smc_type, smc_v2_type = 0, smc_v1_type = 0, smc_version = 0;
|
|
|
537ca1 |
+ guint8 mixed_type;
|
|
|
537ca1 |
clc_message clc_msgid;
|
|
|
537ca1 |
proto_item *ti;
|
|
|
537ca1 |
- proto_tree *smcr_tree;
|
|
|
537ca1 |
+ proto_tree *smc_tree;
|
|
|
537ca1 |
+ bool is_ipv6, is_smc_v2, is_smcd = false;
|
|
|
537ca1 |
|
|
|
537ca1 |
- col_set_str(pinfo->cinfo, COL_PROTOCOL, "SMC-R");
|
|
|
537ca1 |
msg_len = tvb_get_ntohs(tvb, CLC_MSG_LEN_OFFSET);
|
|
|
537ca1 |
offset = 4;
|
|
|
537ca1 |
- clc_msgid = (clc_message) tvb_get_guint8(tvb, offset);
|
|
|
537ca1 |
- col_prepend_fstr(pinfo->cinfo, COL_INFO, "[SMC-R-%s],",
|
|
|
537ca1 |
- val_to_str_const((guint32)clc_msgid,
|
|
|
537ca1 |
- smcr_clc_message_txt, "Unknown Command"));
|
|
|
537ca1 |
+ clc_msgid = (clc_message)tvb_get_guint8(tvb, offset);
|
|
|
537ca1 |
|
|
|
537ca1 |
- if ((clc_msgid == SMC_CLC_ACCEPT) ||
|
|
|
537ca1 |
- (clc_msgid == SMC_CLC_CONFIRMATION)) {
|
|
|
537ca1 |
+ smc_version = tvb_get_guint8(tvb, offset + 3);
|
|
|
537ca1 |
+ smc_version = ((smc_version >> 4) & 0x0F);
|
|
|
537ca1 |
+ smc_type = tvb_get_guint8(tvb, offset + 3);
|
|
|
537ca1 |
+ is_smc_v2 = (smc_version >= SMC_V2);
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ if (is_smc_v2 && (clc_msgid == SMC_CLC_PROPOSAL)) {
|
|
|
537ca1 |
+ smc_v1_type = (smc_type & 0x03);
|
|
|
537ca1 |
+ smc_v2_type = ((smc_type >> 2) & 0x03);
|
|
|
537ca1 |
+ }
|
|
|
537ca1 |
+ else if (clc_msgid != SMC_CLC_DECLINE) {
|
|
|
537ca1 |
+ smc_v2_type = (smc_type & 0x03);
|
|
|
537ca1 |
+ smc_v1_type = (smc_type & 0x03);
|
|
|
537ca1 |
+ }
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ is_ipv6 = (pinfo->src.type == AT_IPv6);
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ if (is_smc_v2)
|
|
|
537ca1 |
+ col_set_str(pinfo->cinfo, COL_PROTOCOL, "SMCv2");
|
|
|
537ca1 |
+ else
|
|
|
537ca1 |
+ col_set_str(pinfo->cinfo, COL_PROTOCOL, "SMC");
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ if (clc_msgid == SMC_CLC_PROPOSAL) {
|
|
|
537ca1 |
+ if (is_smc_v2 && (smc_v2_type != SMC_CLC_NONE)) {
|
|
|
537ca1 |
+ mixed_type = get_mixed_type(smc_v1_type, smc_v2_type);
|
|
|
537ca1 |
+ col_prepend_fstr(pinfo->cinfo, COL_INFO, "%s,",
|
|
|
537ca1 |
+ val_to_str_const((guint32)mixed_type,
|
|
|
537ca1 |
+ smcv2_clc_col_info_message_txt, "Unknown Command"));
|
|
|
537ca1 |
+ } else {
|
|
|
537ca1 |
+ col_prepend_fstr(pinfo->cinfo, COL_INFO, "%s,",
|
|
|
537ca1 |
+ val_to_str_const((guint32)smc_v1_type,
|
|
|
537ca1 |
+ smc_clc_col_info_message_txt, "Unknown Command"));
|
|
|
537ca1 |
+ }
|
|
|
537ca1 |
+ } else if ((smc_v2_type == SMC_CLC_SMCR) && ((clc_msgid == SMC_CLC_ACCEPT) ||
|
|
|
537ca1 |
+ (clc_msgid == SMC_CLC_CONFIRMATION))) {
|
|
|
537ca1 |
+ col_prepend_fstr(pinfo->cinfo, COL_INFO, "[SMC-R-%s],",
|
|
|
537ca1 |
+ val_to_str_const((guint32)clc_msgid,
|
|
|
537ca1 |
+ smcr_clc_message_txt, "Unknown Command"));
|
|
|
537ca1 |
col_append_fstr(pinfo->cinfo, COL_INFO, " QP=0x%06x",
|
|
|
537ca1 |
tvb_get_ntoh24(tvb, ACCEPT_CONFIRM_QP_OFFSET));
|
|
|
537ca1 |
}
|
|
|
537ca1 |
+ else if ((smc_v2_type == SMC_CLC_SMCD) && ((clc_msgid == SMC_CLC_ACCEPT) ||
|
|
|
537ca1 |
+ (clc_msgid == SMC_CLC_CONFIRMATION))) {
|
|
|
537ca1 |
+ is_smcd = true;
|
|
|
537ca1 |
+ if (is_smc_v2)
|
|
|
537ca1 |
+ col_prepend_fstr(pinfo->cinfo, COL_INFO, "[SMC-Dv2-%s],",
|
|
|
537ca1 |
+ val_to_str_const((guint32)clc_msgid,
|
|
|
537ca1 |
+ smcr_clc_message_txt, "Unknown Command"));
|
|
|
537ca1 |
+ else
|
|
|
537ca1 |
+ col_prepend_fstr(pinfo->cinfo, COL_INFO, "[SMC-D-%s],",
|
|
|
537ca1 |
+ val_to_str_const((guint32)clc_msgid,
|
|
|
537ca1 |
+ smcr_clc_message_txt, "Unknown Command"));
|
|
|
537ca1 |
+ }
|
|
|
537ca1 |
+ else {
|
|
|
537ca1 |
+ if (is_smc_v2)
|
|
|
537ca1 |
+ col_prepend_fstr(pinfo->cinfo, COL_INFO, "[SMCv2-%s],",
|
|
|
537ca1 |
+ val_to_str_const((guint32)clc_msgid,
|
|
|
537ca1 |
+ smcr_clc_message_txt, "Unknown Command"));
|
|
|
537ca1 |
+ else
|
|
|
537ca1 |
+ col_prepend_fstr(pinfo->cinfo, COL_INFO, "[SMC-%s],",
|
|
|
537ca1 |
+ val_to_str_const((guint32)clc_msgid,
|
|
|
537ca1 |
+ smcr_clc_message_txt, "Unknown Command"));
|
|
|
537ca1 |
+ }
|
|
|
537ca1 |
|
|
|
537ca1 |
if (!tree)
|
|
|
537ca1 |
return tvb_reported_length(tvb);
|
|
|
537ca1 |
|
|
|
537ca1 |
- ti = proto_tree_add_item(tree, proto_smcr, tvb, 0, msg_len, ENC_NA);
|
|
|
537ca1 |
- smcr_tree = proto_item_add_subtree(ti, ett_smcr);
|
|
|
537ca1 |
- proto_tree_add_item(smcr_tree, hf_smcr_clc_msg, tvb, offset, 1,
|
|
|
537ca1 |
+ ti = proto_tree_add_item(tree, proto_smc, tvb, 0, msg_len, ENC_NA);
|
|
|
537ca1 |
+ smc_tree = proto_item_add_subtree(ti, ett_smcr);
|
|
|
537ca1 |
+ proto_tree_add_item(smc_tree, hf_smcr_clc_msg, tvb, offset, 1,
|
|
|
537ca1 |
ENC_BIG_ENDIAN);
|
|
|
537ca1 |
-
|
|
|
537ca1 |
switch (clc_msgid) {
|
|
|
537ca1 |
case SMC_CLC_PROPOSAL:
|
|
|
537ca1 |
- disect_smcr_proposal(tvb, smcr_tree);
|
|
|
537ca1 |
+ disect_smc_proposal(tvb, smc_tree, is_ipv6);
|
|
|
537ca1 |
break;
|
|
|
537ca1 |
case SMC_CLC_ACCEPT:
|
|
|
537ca1 |
- disect_smcr_accept(tvb, smcr_tree);
|
|
|
537ca1 |
+ if (is_smcd)
|
|
|
537ca1 |
+ disect_smcd_accept(tvb, smc_tree);
|
|
|
537ca1 |
+ else
|
|
|
537ca1 |
+ disect_smcr_accept(tvb, smc_tree);
|
|
|
537ca1 |
break;
|
|
|
537ca1 |
case SMC_CLC_CONFIRMATION:
|
|
|
537ca1 |
- disect_smcr_confirm(tvb, smcr_tree);
|
|
|
537ca1 |
+ if (is_smcd)
|
|
|
537ca1 |
+ disect_smcd_confirm(tvb, smc_tree);
|
|
|
537ca1 |
+ else
|
|
|
537ca1 |
+ disect_smcr_confirm(tvb, smc_tree);
|
|
|
537ca1 |
break;
|
|
|
537ca1 |
case SMC_CLC_DECLINE:
|
|
|
537ca1 |
- disect_smcr_decline(tvb, smcr_tree);
|
|
|
537ca1 |
+ disect_smcr_decline(tvb, smc_tree);
|
|
|
537ca1 |
break;
|
|
|
537ca1 |
default:
|
|
|
537ca1 |
/* Unknown Command */
|
|
|
537ca1 |
@@ -802,7 +1270,7 @@ dissect_smcr_infiniband(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi
|
|
|
537ca1 |
(tvb_get_guint8(tvb, LLC_CMD_RSP_OFFSET) & LLC_FLAG_RESP))
|
|
|
537ca1 |
col_append_str(pinfo->cinfo, COL_INFO, "(Resp)");
|
|
|
537ca1 |
|
|
|
537ca1 |
- ti = proto_tree_add_item(tree, proto_smcr, tvb, 0, msg_len, ENC_NA);
|
|
|
537ca1 |
+ ti = proto_tree_add_item(tree, proto_smc, tvb, 0, msg_len, ENC_NA);
|
|
|
537ca1 |
smcr_tree = proto_item_add_subtree(ti, ett_smcr);
|
|
|
537ca1 |
proto_tree_add_item(smcr_tree, hf_smcr_llc_msg, tvb, 0, 1,
|
|
|
537ca1 |
ENC_BIG_ENDIAN);
|
|
|
537ca1 |
@@ -861,24 +1329,27 @@ get_smcr_pdu_length(packet_info *pinfo _U_, tvbuff_t *tvb, int offset, void *dat
|
|
|
537ca1 |
}
|
|
|
537ca1 |
|
|
|
537ca1 |
static int
|
|
|
537ca1 |
-dissect_smcr_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
|
|
|
537ca1 |
+dissect_smc_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
|
|
|
537ca1 |
void *data)
|
|
|
537ca1 |
{
|
|
|
537ca1 |
- tcp_dissect_pdus(tvb, pinfo, tree, TRUE, SMCR_TCP_MIN_HEADER_LENGTH,
|
|
|
537ca1 |
- get_smcr_pdu_length, dissect_smcr_tcp_pdu, data);
|
|
|
537ca1 |
+ tcp_dissect_pdus(tvb, pinfo, tree, TRUE, SMC_TCP_MIN_HEADER_LENGTH,
|
|
|
537ca1 |
+ get_smcr_pdu_length, dissect_smc_tcp_pdu, data);
|
|
|
537ca1 |
return tvb_reported_length(tvb);
|
|
|
537ca1 |
}
|
|
|
537ca1 |
|
|
|
537ca1 |
static gboolean
|
|
|
537ca1 |
-dissect_smcr_tcp_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
|
|
|
537ca1 |
+dissect_smc_tcp_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
|
|
|
537ca1 |
void *data)
|
|
|
537ca1 |
{
|
|
|
537ca1 |
if (tvb_captured_length(tvb) < 4) {
|
|
|
537ca1 |
return FALSE;
|
|
|
537ca1 |
}
|
|
|
537ca1 |
|
|
|
537ca1 |
- if (tvb_get_ntohl(tvb, CLC_MSG_BYTE_0) != SMCR_CLC_ID) return FALSE;
|
|
|
537ca1 |
- dissect_smcr_tcp(tvb, pinfo, tree, data);
|
|
|
537ca1 |
+ if ((tvb_get_ntohl(tvb, CLC_MSG_BYTE_0) != SMCR_CLC_ID) &&
|
|
|
537ca1 |
+ (tvb_get_ntohl(tvb, CLC_MSG_BYTE_0) != SMCD_CLC_ID))
|
|
|
537ca1 |
+ return FALSE;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ dissect_smc_tcp(tvb, pinfo, tree, data);
|
|
|
537ca1 |
return TRUE;
|
|
|
537ca1 |
}
|
|
|
537ca1 |
|
|
|
537ca1 |
@@ -921,479 +1392,688 @@ proto_register_smcr(void)
|
|
|
537ca1 |
/* Setup list of header fields */
|
|
|
537ca1 |
static hf_register_info hf[] = {
|
|
|
537ca1 |
{ &hf_smcr_clc_msg, {
|
|
|
537ca1 |
- "CLC Message", "smcr.clc_msg",
|
|
|
537ca1 |
+ "CLC Message", "smc.clc_msg",
|
|
|
537ca1 |
FT_UINT8, BASE_DEC, VALS(smcr_clc_message_txt), 0x0,
|
|
|
537ca1 |
NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_llc_msg, {
|
|
|
537ca1 |
- "LLC Message", "smcr.llc_msg",
|
|
|
537ca1 |
+ "LLC Message", "smc.llc_msg",
|
|
|
537ca1 |
FT_UINT8, BASE_DEC, VALS(smcr_llc_message_txt), 0x0,
|
|
|
537ca1 |
NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
+ { &hf_proposal_smc_version_release_number, {
|
|
|
537ca1 |
+ "SMC Version Release Number", "smc.proposal.smc.version.relnum",
|
|
|
537ca1 |
+ FT_UINT8, BASE_DEC, NULL, 0xF0, NULL, HFILL }},
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_proposal_smc_version_seid, {
|
|
|
537ca1 |
+ "SEID Indicator", "smc.proposal.smc.seid",
|
|
|
537ca1 |
+ FT_BOOLEAN, 8, NULL, 0x01, NULL, HFILL } },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
{ &hf_proposal_smc_version, {
|
|
|
537ca1 |
- "SMC Version", "smcr.proposal.smc.version",
|
|
|
537ca1 |
+ "SMC Version", "smc.proposal.smc.version",
|
|
|
537ca1 |
FT_UINT8, BASE_DEC, NULL, 0xF0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
+ { &hf_proposal_smc_type, {
|
|
|
537ca1 |
+ "SMC(v1) Type", "smc.proposal.smc.type",
|
|
|
537ca1 |
+ FT_UINT8, BASE_DEC, VALS(smc_clc_type_message_txt),
|
|
|
537ca1 |
+ 0x03, NULL, HFILL}},
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_accept_smc_type, {
|
|
|
537ca1 |
+ "SMC Type", "smc.accept.smc.type",
|
|
|
537ca1 |
+ FT_UINT8, BASE_DEC, VALS(smc_clc_type_message_txt),
|
|
|
537ca1 |
+ 0x03, NULL, HFILL}},
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_confirm_smc_type, {
|
|
|
537ca1 |
+ "SMC Type", "smc.confirm.smc.type",
|
|
|
537ca1 |
+ FT_UINT8, BASE_DEC, VALS(smc_clc_type_message_txt),
|
|
|
537ca1 |
+ 0x03, NULL, HFILL}},
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_proposal_smc_v2_type, {
|
|
|
537ca1 |
+ "SMC(v2) Type", "smc.proposal.smcv2.type",
|
|
|
537ca1 |
+ FT_UINT8, BASE_DEC, VALS(smc_clc_type_message_txt),
|
|
|
537ca1 |
+ 0x0C, NULL, HFILL}},
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smc_proposal_smc_chid, {
|
|
|
537ca1 |
+ "ISM CHID", "smc.proposal.smc.chid",
|
|
|
537ca1 |
+ FT_UINT16, BASE_HEX, NULL, 0x00, NULL, HFILL}},
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smc_length, {
|
|
|
537ca1 |
+ "SMC Length", "smc.length",
|
|
|
537ca1 |
+ FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL}},
|
|
|
537ca1 |
+
|
|
|
537ca1 |
{ &hf_accept_smc_version, {
|
|
|
537ca1 |
- "SMC Version", "smcr.proposal.smc.version",
|
|
|
537ca1 |
+ "SMC Version", "smc.proposal.smc.version",
|
|
|
537ca1 |
+ FT_UINT8, BASE_DEC, NULL, 0xF0, NULL, HFILL}},
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smcd_accept_smc_version, {
|
|
|
537ca1 |
+ "SMC Version", "smc.proposal.smc.version",
|
|
|
537ca1 |
+ FT_UINT8, BASE_DEC, NULL, 0xF0, NULL, HFILL}},
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smcd_confirm_smc_version, {
|
|
|
537ca1 |
+ "SMC Version", "smc.proposal.smc.version",
|
|
|
537ca1 |
FT_UINT8, BASE_DEC, NULL, 0xF0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_accept_first_contact, {
|
|
|
537ca1 |
- "First Contact", "smcr.proposal.first.contact",
|
|
|
537ca1 |
+ "First Contact", "smc.proposal.first.contact",
|
|
|
537ca1 |
FT_BOOLEAN, 8, NULL, 0x08, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_confirm_smc_version, {
|
|
|
537ca1 |
- "SMC Version", "smcr.proposal.smc.version",
|
|
|
537ca1 |
+ "SMC Version", "smc.proposal.smc.version",
|
|
|
537ca1 |
FT_UINT8, BASE_DEC, NULL, 0xF0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_accept_rmb_buffer_size, {
|
|
|
537ca1 |
"Server RMB Buffers Size (Compressed Notation)",
|
|
|
537ca1 |
- "smcr.accept.rmb.buffer.size",
|
|
|
537ca1 |
+ "smc.accept.rmb.buffer.size",
|
|
|
537ca1 |
FT_UINT8, BASE_DEC, NULL, 0xF0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_accept_qp_mtu_value, {
|
|
|
537ca1 |
"QP MTU Value (enumerated value)",
|
|
|
537ca1 |
- "smcr.accept.qp.mtu.value",
|
|
|
537ca1 |
+ "smc.accept.qp.mtu.value",
|
|
|
537ca1 |
FT_UINT8, BASE_DEC, NULL, 0x0F, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_confirm_rmb_buffer_size, {
|
|
|
537ca1 |
"Client RMB Buffers Size (Compressed Notation)",
|
|
|
537ca1 |
- "smcr.confirm.rmb.buffer.size",
|
|
|
537ca1 |
+ "smc.confirm.rmb.buffer.size",
|
|
|
537ca1 |
FT_UINT8, BASE_DEC, NULL, 0xF0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_confirm_qp_mtu_value, {
|
|
|
537ca1 |
"QP MTU Value (enumerated value)",
|
|
|
537ca1 |
- "smcr.confirm.qp.mtu.value",
|
|
|
537ca1 |
+ "smc.confirm.qp.mtu.value",
|
|
|
537ca1 |
FT_UINT8, BASE_DEC, NULL, 0x0F, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
- { &hf_smcr_proposal_flags, {
|
|
|
537ca1 |
- "Flags", "smcr.proposal.flags",
|
|
|
537ca1 |
+ { &hf_smc_proposal_flags, {
|
|
|
537ca1 |
+ "Flags", "smc.proposal.flags",
|
|
|
537ca1 |
+ FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smc_proposal_ext_flags, {
|
|
|
537ca1 |
+ "Flag 2", "smc.proposal.extflags.2",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_accept_flags, {
|
|
|
537ca1 |
- "Flags", "smcr.accept.flags",
|
|
|
537ca1 |
+ "Flags", "smc.accept.flags",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_accept_flags2, {
|
|
|
537ca1 |
- "Flags 2", "smcr.accept.flags.2",
|
|
|
537ca1 |
+ "Flags 2", "smc.accept.flags.2",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_flags, {
|
|
|
537ca1 |
- "Flags", "smcr.confirm.flags",
|
|
|
537ca1 |
+ "Flags", "smc.confirm.flags",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
- { &hf_smcr_decline_flags, {
|
|
|
537ca1 |
- "Flags", "smcr.decline.flags",
|
|
|
537ca1 |
+ { &hf_decline_smc_version, {
|
|
|
537ca1 |
+ "SMC Version", "smc.decline.smc.version",
|
|
|
537ca1 |
+ FT_UINT8, BASE_DEC, NULL, 0xF0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_decline_out_of_sync, {
|
|
|
537ca1 |
+ "Out of Sync", "smc.decline.osync",
|
|
|
537ca1 |
+ FT_BOOLEAN, 8, NULL, 0x08, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smc_decline_flags2, {
|
|
|
537ca1 |
+ "Flags 2", "smc.decline.flags2",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
+ { &hf_smc_decline_flags, {
|
|
|
537ca1 |
+ "Flags", "smc.decline.flags",
|
|
|
537ca1 |
+ FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
{ &hf_smcr_confirm_flags2, {
|
|
|
537ca1 |
- "Flags 2", "smcr.confirm.flags.2",
|
|
|
537ca1 |
+ "Flags 2", "smc.confirm.flags.2",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
- { &hf_smcr_proposal_client_peer_id, {
|
|
|
537ca1 |
- "Sender (Client) Peer ID", "smcr.proposal.sender.client.peer.id",
|
|
|
537ca1 |
+ { &hf_smc_proposal_client_peer_id, {
|
|
|
537ca1 |
+ "Sender (Client) Peer ID", "smc.proposal.sender.client.peer.id",
|
|
|
537ca1 |
+ FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smc_proposal_ism_gid, {
|
|
|
537ca1 |
+ "ISM GID", "smc.proposal.ism.gid",
|
|
|
537ca1 |
FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
- { &hf_smcr_proposal_client_preferred_gid, {
|
|
|
537ca1 |
- "Client Preferred GID", "smcr.proposal.client.preferred.gid",
|
|
|
537ca1 |
+ { &hf_smc_proposal_client_preferred_gid, {
|
|
|
537ca1 |
+ "Client Preferred GID", "smc.proposal.client.preferred.gid",
|
|
|
537ca1 |
FT_IPv6, BASE_NONE, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
- { &hf_smcr_proposal_client_preferred_mac, {
|
|
|
537ca1 |
+ { &hf_smc_proposal_client_preferred_mac, {
|
|
|
537ca1 |
"Client Preferred MAC Address",
|
|
|
537ca1 |
- "smcr.proposal.client.preferred.mac",
|
|
|
537ca1 |
+ "smc.proposal.client.preferred.mac",
|
|
|
537ca1 |
FT_ETHER, BASE_NONE, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_accept_server_peer_id, {
|
|
|
537ca1 |
- "Sender (Server) Peer ID", "smcr.accept.sender.server.peer.id",
|
|
|
537ca1 |
+ "Sender (Server) Peer ID", "smc.accept.sender.server.peer.id",
|
|
|
537ca1 |
FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_accept_server_preferred_gid, {
|
|
|
537ca1 |
- "Server Preferred GID", "smcr.accept.server.preferred.gid",
|
|
|
537ca1 |
+ "Server Preferred GID", "smc.accept.server.preferred.gid",
|
|
|
537ca1 |
FT_IPv6, BASE_NONE, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_accept_server_preferred_mac, {
|
|
|
537ca1 |
"Server Preferred MAC Address",
|
|
|
537ca1 |
- "smcr.accept.server.preferred.mac",
|
|
|
537ca1 |
+ "smc.accept.server.preferred.mac",
|
|
|
537ca1 |
FT_ETHER, BASE_NONE, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
- { &hf_smcr_proposal_outgoing_interface_subnet_mask, {
|
|
|
537ca1 |
+ { &hf_smc_proposal_rocev2_gid_ipv6_addr, {
|
|
|
537ca1 |
+ "RoCEv2 GID IPv6 Address",
|
|
|
537ca1 |
+ "smc.proposal.rocev2.gid.ipv6",
|
|
|
537ca1 |
+ FT_IPv6, BASE_NONE, NULL, 0x0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smc_proposal_rocev2_gid_ipv4_addr, {
|
|
|
537ca1 |
+ "RoCEv2 GID IPv4 Address",
|
|
|
537ca1 |
+ "smc.proposal.rocev2.gid.ipv4",
|
|
|
537ca1 |
+ FT_IPv4, BASE_NETMASK, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smc_proposal_outgoing_interface_subnet_mask, {
|
|
|
537ca1 |
"Outgoing Interface Subnet Mask",
|
|
|
537ca1 |
- "smcr.outgoing.interface.subnet.mask",
|
|
|
537ca1 |
+ "smc.outgoing.interface.subnet.mask",
|
|
|
537ca1 |
FT_IPv4, BASE_NETMASK, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
- { &hf_smcr_proposal_outgoing_subnet_mask_signifcant_bits, {
|
|
|
537ca1 |
+ { &hf_smc_proposal_outgoing_subnet_mask_signifcant_bits, {
|
|
|
537ca1 |
"Outgoing Interface Subnet Mask Number of Significant Bits",
|
|
|
537ca1 |
- "smcr.outgoing.interface.subnet.mask.number.of.significant.bits",
|
|
|
537ca1 |
+ "smc.outgoing.interface.subnet.mask.number.of.significant.bits",
|
|
|
537ca1 |
FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
- { &hf_smcr_proposal_ipv6_prefix, {
|
|
|
537ca1 |
- "IPv6 Prefix Value","smcr.proposal.ipv6.prefix.value",
|
|
|
537ca1 |
+ { &hf_smc_proposal_ipv6_prefix, {
|
|
|
537ca1 |
+ "IPv6 Prefix Value","smc.proposal.ipv6.prefix.value",
|
|
|
537ca1 |
FT_IPv6, BASE_NONE, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
- { &hf_smcr_proposal_ipv6_prefix_length, {
|
|
|
537ca1 |
- "IPv6 Prefix Length", "smcr.proposal.ipv6.prefix.length",
|
|
|
537ca1 |
+ { &hf_smc_proposal_ipv6_prefix_length, {
|
|
|
537ca1 |
+ "IPv6 Prefix Length", "smc.proposal.ipv6.prefix.length",
|
|
|
537ca1 |
FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_accept_server_qp_number, {
|
|
|
537ca1 |
- "Server QP Number","smcr.accept.server.qp.number",
|
|
|
537ca1 |
+ "Server QP Number","smc.accept.server.qp.number",
|
|
|
537ca1 |
FT_UINT24, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_accept_server_rmb_rkey, {
|
|
|
537ca1 |
- "Server RMB Rkey","smcr.accept.server.rmb.rkey",
|
|
|
537ca1 |
+ "Server RMB Rkey","smc.accept.server.rmb.rkey",
|
|
|
537ca1 |
FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_accept_server_tcp_conn_index, {
|
|
|
537ca1 |
"Server TCP Connection Index",
|
|
|
537ca1 |
- "smcr.accept.server.tcp.conn.index",
|
|
|
537ca1 |
+ "smc.accept.server.tcp.conn.index",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_accept_server_rmb_element_alert_token, {
|
|
|
537ca1 |
"Server RMB Element Alert Token",
|
|
|
537ca1 |
- "smcr.accept.server.rmb.element.alert.token",
|
|
|
537ca1 |
+ "smc.accept.server.rmb.element.alert.token",
|
|
|
537ca1 |
FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_accept_server_rmb_virtual_address, {
|
|
|
537ca1 |
"Server's RMB Virtual Address",
|
|
|
537ca1 |
- "smcr.accept.server.rmb.virtual.address",
|
|
|
537ca1 |
+ "smc.accept.server.rmb.virtual.address",
|
|
|
537ca1 |
FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_accept_initial_psn, {
|
|
|
537ca1 |
- "Initial PSN","smcr.accept.initial.psn",
|
|
|
537ca1 |
+ "Initial PSN","smc.accept.initial.psn",
|
|
|
537ca1 |
FT_UINT24, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_client_peer_id, {
|
|
|
537ca1 |
"Sender (Client) Peer ID",
|
|
|
537ca1 |
- "smcr.confirm.sender.client.peer.id",
|
|
|
537ca1 |
+ "smc.confirm.sender.client.peer.id",
|
|
|
537ca1 |
FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_client_gid, {
|
|
|
537ca1 |
- "Client GID", "smcr.client.gid",
|
|
|
537ca1 |
+ "Client GID", "smc.client.gid",
|
|
|
537ca1 |
FT_IPv6, BASE_NONE, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_client_mac, {
|
|
|
537ca1 |
- "Client MAC Address", "smcr.confirm.client.mac",
|
|
|
537ca1 |
+ "Client MAC Address", "smc.confirm.client.mac",
|
|
|
537ca1 |
FT_ETHER, BASE_NONE, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_client_qp_number, {
|
|
|
537ca1 |
- "Client QP Number","smcr.confirm.client.qp.number",
|
|
|
537ca1 |
+ "Client QP Number","smc.confirm.client.qp.number",
|
|
|
537ca1 |
FT_UINT24, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_client_rmb_rkey, {
|
|
|
537ca1 |
- "Client RMB Rkey","smcr.confirm.client.rmb.rkey",
|
|
|
537ca1 |
+ "Client RMB Rkey","smc.confirm.client.rmb.rkey",
|
|
|
537ca1 |
FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_client_tcp_conn_index, {
|
|
|
537ca1 |
"Client TCP Connection Index",
|
|
|
537ca1 |
- "smcr.confirm.client.tcp.conn.index",
|
|
|
537ca1 |
+ "smc.confirm.client.tcp.conn.index",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_client_rmb_element_alert_token, {
|
|
|
537ca1 |
"Client RMB Element Alert Token",
|
|
|
537ca1 |
- "smcr.client.rmb.element.alert.token",
|
|
|
537ca1 |
+ "smc.client.rmb.element.alert.token",
|
|
|
537ca1 |
FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_client_rmb_virtual_address, {
|
|
|
537ca1 |
"Client's RMB Virtual Address",
|
|
|
537ca1 |
- "smcr.client.rmb.virtual.address",
|
|
|
537ca1 |
+ "smc.client.rmb.virtual.address",
|
|
|
537ca1 |
FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_initial_psn, {
|
|
|
537ca1 |
- "Initial PSN","smcr.initial.psn",
|
|
|
537ca1 |
+ "Initial PSN","smc.initial.psn",
|
|
|
537ca1 |
FT_UINT24, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
- { &hf_smcr_decline_peer_id, {
|
|
|
537ca1 |
- "Sender Peer ID", "smcr.sender.peer.id",
|
|
|
537ca1 |
+ { &hf_smc_decline_peer_id, {
|
|
|
537ca1 |
+ "Sender Peer ID", "smc.sender.peer.id",
|
|
|
537ca1 |
FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
- { &hf_smcr_decline_diag_info, {
|
|
|
537ca1 |
- "Peer Diagnosis Information", "smcr.peer.diag.info",
|
|
|
537ca1 |
+ { &hf_smc_decline_diag_info, {
|
|
|
537ca1 |
+ "Peer Diagnosis Information", "smc.peer.diag.info",
|
|
|
537ca1 |
FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
+ { &hf_decline_os_type, {
|
|
|
537ca1 |
+ "OS Type", "smc.decline.os.type",
|
|
|
537ca1 |
+ FT_UINT8, BASE_DEC, VALS(smc_clc_os_message_txt), 0xF0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
{ &hf_smcr_confirm_link_gid, {
|
|
|
537ca1 |
- "Sender GID", "smcr.sender.gid",
|
|
|
537ca1 |
+ "Sender GID", "smc.sender.gid",
|
|
|
537ca1 |
FT_IPv6, BASE_NONE, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_link_mac, {
|
|
|
537ca1 |
- "Sender MAC Address", "smcr.confirm.link.sender.mac",
|
|
|
537ca1 |
+ "Sender MAC Address", "smc.confirm.link.sender.mac",
|
|
|
537ca1 |
FT_ETHER, BASE_NONE, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_link_qp_number, {
|
|
|
537ca1 |
- "Sender QP Number","smcr.confirm.link.sender.qp.number",
|
|
|
537ca1 |
+ "Sender QP Number","smc.confirm.link.sender.qp.number",
|
|
|
537ca1 |
FT_UINT24, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_link_number, {
|
|
|
537ca1 |
- "Link Number", "smcr.confirm.link.number",
|
|
|
537ca1 |
+ "Link Number", "smc.confirm.link.number",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_link_userid, {
|
|
|
537ca1 |
"Sender Link User ID",
|
|
|
537ca1 |
- "smcr.confirm.link.sender.link.userid",
|
|
|
537ca1 |
+ "smc.confirm.link.sender.link.userid",
|
|
|
537ca1 |
FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_link_max_links, {
|
|
|
537ca1 |
- "Max Links","smcr.confirm.link.max.links",
|
|
|
537ca1 |
+ "Max Links","smc.confirm.link.max.links",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_link_flags, {
|
|
|
537ca1 |
- "Flags", "smcr.confirm.link.flags",
|
|
|
537ca1 |
+ "Flags", "smc.confirm.link.flags",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_link_response, {
|
|
|
537ca1 |
- "Response", "smcr.confirm.link.response",
|
|
|
537ca1 |
+ "Response", "smc.confirm.link.response",
|
|
|
537ca1 |
FT_BOOLEAN, 8, NULL, 0x80, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_add_link_gid, {
|
|
|
537ca1 |
- "Sender GID", "smcr.add.link.sender.gid",
|
|
|
537ca1 |
+ "Sender GID", "smc.add.link.sender.gid",
|
|
|
537ca1 |
FT_IPv6, BASE_NONE, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_add_link_mac, {
|
|
|
537ca1 |
- "Sender MAC Address", "smcr.add.link.sender.mac",
|
|
|
537ca1 |
+ "Sender MAC Address", "smc.add.link.sender.mac",
|
|
|
537ca1 |
FT_ETHER, BASE_NONE, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_add_link_qp_number, {
|
|
|
537ca1 |
- "Sender QP Number","smcr.add.link.sender.qp.number",
|
|
|
537ca1 |
+ "Sender QP Number","smc.add.link.sender.qp.number",
|
|
|
537ca1 |
FT_UINT24, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_add_link_number, {
|
|
|
537ca1 |
- "Link Number", "smcr.add.link.link.number",
|
|
|
537ca1 |
+ "Link Number", "smc.add.link.link.number",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_add_link_initial_psn, {
|
|
|
537ca1 |
- "Initial PSN", "smcr.add.link.initial.psn",
|
|
|
537ca1 |
+ "Initial PSN", "smc.add.link.initial.psn",
|
|
|
537ca1 |
FT_UINT24, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_add_link_flags, {
|
|
|
537ca1 |
- "Flags", "smcr.add.link.flags",
|
|
|
537ca1 |
+ "Flags", "smc.add.link.flags",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_add_link_response, {
|
|
|
537ca1 |
- "Add Link Response", "smcr.add.link.response",
|
|
|
537ca1 |
+ "Add Link Response", "smc.add.link.response",
|
|
|
537ca1 |
FT_BOOLEAN, 8, NULL, 0x80, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_add_link_response_rejected, {
|
|
|
537ca1 |
- "Add Link Rejected", "smcr.add.link.response.rejected",
|
|
|
537ca1 |
+ "Add Link Rejected", "smc.add.link.response.rejected",
|
|
|
537ca1 |
FT_BOOLEAN, 8, NULL, 0x40, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_add_link_flags2, {
|
|
|
537ca1 |
- "Flags", "smcr.add.link.flags2",
|
|
|
537ca1 |
+ "Flags", "smc.add.link.flags2",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_add_link_qp_mtu_value, {
|
|
|
537ca1 |
- "QP MTU Value", "smcr.add.link.qp.mtu.value",
|
|
|
537ca1 |
+ "QP MTU Value", "smc.add.link.qp.mtu.value",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x0F, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_add_link_cont_flags, {
|
|
|
537ca1 |
- "Flags", "smcr.add.link.cont.flags",
|
|
|
537ca1 |
+ "Flags", "smc.add.link.cont.flags",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_add_link_cont_response, {
|
|
|
537ca1 |
- "Response", "smcr.add.link.cont.response",
|
|
|
537ca1 |
+ "Response", "smc.add.link.cont.response",
|
|
|
537ca1 |
FT_BOOLEAN, 8, NULL, 0x80, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_add_link_cont_link_number, {
|
|
|
537ca1 |
- "Link Number", "smcr.add.link.cont.link.number",
|
|
|
537ca1 |
+ "Link Number", "smc.add.link.cont.link.number",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x00, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_add_link_cont_number_of_rkeys, {
|
|
|
537ca1 |
- "Number of Rkeys", "smcr.add.link.cont.rkey.number",
|
|
|
537ca1 |
+ "Number of Rkeys", "smc.add.link.cont.rkey.number",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x00, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_add_link_cont_p1_rkey, {
|
|
|
537ca1 |
"RMB RToken Pair 1 - Rkey as known on this SMC Link",
|
|
|
537ca1 |
- "smcr.add.link.cont.rmb.RTok1.Rkey1",
|
|
|
537ca1 |
+ "smc.add.link.cont.rmb.RTok1.Rkey1",
|
|
|
537ca1 |
FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_add_link_cont_p1_rkey2, {
|
|
|
537ca1 |
"RMB RToken Pair 1 - Equivalent Rkey for the new SMC Link",
|
|
|
537ca1 |
- "smcr.add.link.cont.rmb.RTok1.Rkey2",
|
|
|
537ca1 |
+ "smc.add.link.cont.rmb.RTok1.Rkey2",
|
|
|
537ca1 |
FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_add_link_cont_p1_virt_addr, {
|
|
|
537ca1 |
"RMB RToken Pair 1 Virtual Address for the new SMC Link",
|
|
|
537ca1 |
- "smcr.add.link.cont.rmb.RTok1.virt",
|
|
|
537ca1 |
+ "smc.add.link.cont.rmb.RTok1.virt",
|
|
|
537ca1 |
FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_add_link_cont_p2_rkey, {
|
|
|
537ca1 |
"RMB RToken Pair 2 - Rkey as known on this SMC Link",
|
|
|
537ca1 |
- "smcr.add.link.cont.rmb.RTok2.Rkey1",
|
|
|
537ca1 |
+ "smc.add.link.cont.rmb.RTok2.Rkey1",
|
|
|
537ca1 |
FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_add_link_cont_p2_rkey2, {
|
|
|
537ca1 |
"RMB RToken Pair 2 - Equivalent Rkey for the new SMC Link",
|
|
|
537ca1 |
- "smcr.add.link.cont.rmb.RTok2.Rkey2",
|
|
|
537ca1 |
+ "smc.add.link.cont.rmb.RTok2.Rkey2",
|
|
|
537ca1 |
FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_add_link_cont_p2_virt_addr, {
|
|
|
537ca1 |
"RMB RToken Pair 2 Virtual Address for the new SMC Link",
|
|
|
537ca1 |
- "smcr.add.link.cont.rmb.RTok1.virt",
|
|
|
537ca1 |
+ "smc.add.link.cont.rmb.RTok1.virt",
|
|
|
537ca1 |
FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_delete_link_flags, {
|
|
|
537ca1 |
- "Flags", "smcr.delete.link.flags",
|
|
|
537ca1 |
+ "Flags", "smc.delete.link.flags",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_delete_link_response, {
|
|
|
537ca1 |
- "Response", "smcr.delete.link.response",
|
|
|
537ca1 |
+ "Response", "smc.delete.link.response",
|
|
|
537ca1 |
FT_BOOLEAN, 8, NULL, 0x80, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_delete_link_all, {
|
|
|
537ca1 |
"Terminate All Links In The Link Group",
|
|
|
537ca1 |
- "smcr.delete.link.all",
|
|
|
537ca1 |
+ "smc.delete.link.all",
|
|
|
537ca1 |
FT_BOOLEAN, 8, NULL, 0x40, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_delete_link_orderly, {
|
|
|
537ca1 |
- "Terminate Links Orderly", "smcr.delete.link.orderly",
|
|
|
537ca1 |
+ "Terminate Links Orderly", "smc.delete.link.orderly",
|
|
|
537ca1 |
FT_BOOLEAN, 8, NULL, 0x20, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_delete_link_number, {
|
|
|
537ca1 |
- "Link Number For The Failed Link", "smcr.delete.link.number",
|
|
|
537ca1 |
+ "Link Number For The Failed Link", "smc.delete.link.number",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x00, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_delete_link_reason_code, {
|
|
|
537ca1 |
- "Reason Code", "smcr.delete.link.reason.code",
|
|
|
537ca1 |
+ "Reason Code", "smc.delete.link.reason.code",
|
|
|
537ca1 |
FT_UINT32, BASE_HEX, NULL, 0x00, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_rkey_flags, {
|
|
|
537ca1 |
- "Flags", "smcr.confirm.rkey.flags",
|
|
|
537ca1 |
+ "Flags", "smc.confirm.rkey.flags",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_rkey_response, {
|
|
|
537ca1 |
- "Response", "smcr.confirm.rkey.response",
|
|
|
537ca1 |
+ "Response", "smc.confirm.rkey.response",
|
|
|
537ca1 |
FT_BOOLEAN, 8, NULL, 0x80, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_rkey_negative_response, {
|
|
|
537ca1 |
- "Negative Response", "smcr.confirm.rkey.negative.response",
|
|
|
537ca1 |
+ "Negative Response", "smc.confirm.rkey.negative.response",
|
|
|
537ca1 |
FT_BOOLEAN, 8, NULL, 0x20, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_rkey_retry_rkey_set, {
|
|
|
537ca1 |
- "Retry Rkey Set", "smcr.confirm.rkey.retry.rkey.set",
|
|
|
537ca1 |
+ "Retry Rkey Set", "smc.confirm.rkey.retry.rkey.set",
|
|
|
537ca1 |
FT_BOOLEAN, 8, NULL, 0x10, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_rkey_number, {
|
|
|
537ca1 |
- "Number of other QP", "smcr.confirm.rkey.number.qp",
|
|
|
537ca1 |
+ "Number of other QP", "smc.confirm.rkey.number.qp",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x00, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_rkey_new_rkey, {
|
|
|
537ca1 |
- "New Rkey for this link","smcr.confirm.rkey.new.rkey",
|
|
|
537ca1 |
+ "New Rkey for this link","smc.confirm.rkey.new.rkey",
|
|
|
537ca1 |
FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_rkey_virtual_address, {
|
|
|
537ca1 |
"New RMB virtual address for this link",
|
|
|
537ca1 |
- "smcr.confirm.rkey.new.virt",
|
|
|
537ca1 |
+ "smc.confirm.rkey.new.virt",
|
|
|
537ca1 |
FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_confirm_rkey_link_number, {
|
|
|
537ca1 |
- "Link Number", "smcr.confirm.rkey.link.number",
|
|
|
537ca1 |
+ "Link Number", "smc.confirm.rkey.link.number",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x00, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_delete_rkey_flags, {
|
|
|
537ca1 |
- "Flags", "smcr.delete.rkey.flags",
|
|
|
537ca1 |
+ "Flags", "smc.delete.rkey.flags",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_delete_rkey_response, {
|
|
|
537ca1 |
- "Response", "smcr.delete.rkey.response",
|
|
|
537ca1 |
+ "Response", "smc.delete.rkey.response",
|
|
|
537ca1 |
FT_BOOLEAN, 8, NULL, 0x80, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_delete_rkey_negative_response, {
|
|
|
537ca1 |
- "Negative Response", "smcr.delete.rkey.negative.response",
|
|
|
537ca1 |
+ "Negative Response", "smc.delete.rkey.negative.response",
|
|
|
537ca1 |
FT_BOOLEAN, 8, NULL, 0x20, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_delete_rkey_mask, {
|
|
|
537ca1 |
- "Error Mask", "smcr.delete.rkey.error.mask",
|
|
|
537ca1 |
+ "Error Mask", "smc.delete.rkey.error.mask",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x00, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_delete_rkey_deleted, {
|
|
|
537ca1 |
- "RMB Rkey to be deleted", "smcr.delete.rkey.deleted",
|
|
|
537ca1 |
+ "RMB Rkey to be deleted", "smc.delete.rkey.deleted",
|
|
|
537ca1 |
FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_test_link_flags, {
|
|
|
537ca1 |
- "Flags", "smcr.test.link.flags",
|
|
|
537ca1 |
+ "Flags", "smc.test.link.flags",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_test_link_response, {
|
|
|
537ca1 |
- "Response", "smcr.test.link.response",
|
|
|
537ca1 |
+ "Response", "smc.test.link.response",
|
|
|
537ca1 |
FT_BOOLEAN, 8, NULL, 0x80, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_rmbe_ctrl_seqno, {
|
|
|
537ca1 |
- "Sequence Number", "smcr.rmbe.ctrl.seqno",
|
|
|
537ca1 |
+ "Sequence Number", "smc.rmbe.ctrl.seqno",
|
|
|
537ca1 |
FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_rmbe_ctrl_alert_token, {
|
|
|
537ca1 |
- "Alert Token", "smcr.rmbe.ctrl.alert.token",
|
|
|
537ca1 |
+ "Alert Token", "smc.rmbe.ctrl.alert.token",
|
|
|
537ca1 |
FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
+ { &hf_smc_proposal_eid, {
|
|
|
537ca1 |
+ "EID", "smc.proposal.eid",
|
|
|
537ca1 |
+ FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smc_proposal_system_eid, {
|
|
|
537ca1 |
+ "SEID", "smc.proposal.system.eid",
|
|
|
537ca1 |
+ FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
{ &hf_smcr_rmbe_ctrl_prod_wrap_seqno, {
|
|
|
537ca1 |
"Producer window wrap sequence number",
|
|
|
537ca1 |
- "smcr.rmbe.ctrl.prod.wrap.seq",
|
|
|
537ca1 |
+ "smc.rmbe.ctrl.prod.wrap.seq",
|
|
|
537ca1 |
FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_rmbe_ctrl_peer_prod_curs, {
|
|
|
537ca1 |
- "Peer Producer Cursor", "smcr.rmbe.ctrl.peer.prod.curs",
|
|
|
537ca1 |
+ "Peer Producer Cursor", "smc.rmbe.ctrl.peer.prod.curs",
|
|
|
537ca1 |
FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_rmbe_ctrl_cons_wrap_seqno, {
|
|
|
537ca1 |
"Consumer window wrap sequence number",
|
|
|
537ca1 |
- "smcr.rmbe.ctrl.prod.wrap.seq",
|
|
|
537ca1 |
+ "smc.rmbe.ctrl.prod.wrap.seq",
|
|
|
537ca1 |
FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_rmbe_ctrl_peer_cons_curs, {
|
|
|
537ca1 |
- "Peer Consumer Cursor", "smcr.rmbe.ctrl.peer.prod.curs",
|
|
|
537ca1 |
+ "Peer Consumer Cursor", "smc.rmbe.ctrl.peer.prod.curs",
|
|
|
537ca1 |
FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_rmbe_ctrl_conn_rw_status_flags, {
|
|
|
537ca1 |
"Connection read/write status flags",
|
|
|
537ca1 |
- "smcr.rmbe.ctrl.conn.rw.status.flags",
|
|
|
537ca1 |
+ "smc.rmbe.ctrl.conn.rw.status.flags",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_rmbe_ctrl_write_blocked, {
|
|
|
537ca1 |
- "Write Blocked", "smcr.rmbe.ctrl.write.blocked",
|
|
|
537ca1 |
+ "Write Blocked", "smc.rmbe.ctrl.write.blocked",
|
|
|
537ca1 |
FT_BOOLEAN, 8, NULL, 0x80, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_rmbe_ctrl_urgent_pending, {
|
|
|
537ca1 |
- "Urgent Data Pending", "smcr.rmbe.ctrl.urgent.pending",
|
|
|
537ca1 |
+ "Urgent Data Pending", "smc.rmbe.ctrl.urgent.pending",
|
|
|
537ca1 |
FT_BOOLEAN, 8, NULL, 0x40, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_rmbe_ctrl_urgent_present, {
|
|
|
537ca1 |
- "Urgent Data Present", "smcr.rmbe.ctrl.urgent.present",
|
|
|
537ca1 |
+ "Urgent Data Present", "smc.rmbe.ctrl.urgent.present",
|
|
|
537ca1 |
FT_BOOLEAN, 8, NULL, 0x20, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_rmbe_ctrl_cons_update_requested, {
|
|
|
537ca1 |
"Consumer Cursor Update Requested",
|
|
|
537ca1 |
- "smcr.rmbe.ctrl.cons.update.requested",
|
|
|
537ca1 |
+ "smc.rmbe.ctrl.cons.update.requested",
|
|
|
537ca1 |
FT_BOOLEAN, 8, NULL, 0x10, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_rmbe_ctrl_failover_validation, {
|
|
|
537ca1 |
"Failover Validation Indicator",
|
|
|
537ca1 |
- "smcr.rmbe.ctrl.failover.validation",
|
|
|
537ca1 |
+ "smc.rmbe.ctrl.failover.validation",
|
|
|
537ca1 |
FT_BOOLEAN, 8, NULL, 0x08, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_rmbe_ctrl_peer_conn_state_flags, {
|
|
|
537ca1 |
"Peer Connection State Flags",
|
|
|
537ca1 |
- "smcr.rmbe.ctrl.peer.conn.state.flags",
|
|
|
537ca1 |
+ "smc.rmbe.ctrl.peer.conn.state.flags",
|
|
|
537ca1 |
FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_rmbe_ctrl_peer_sending_done, {
|
|
|
537ca1 |
- "Peer Sending Done", "smcr.rmbe.ctrl.peer.sending.done",
|
|
|
537ca1 |
+ "Peer Sending Done", "smc.rmbe.ctrl.peer.sending.done",
|
|
|
537ca1 |
FT_BOOLEAN, 8, NULL, 0x80, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_rmbe_ctrl_peer_closed_conn, {
|
|
|
537ca1 |
- "Peer Closed Connection", "smcr.rmbe.ctrl.peer.closed.conn",
|
|
|
537ca1 |
+ "Peer Closed Connection", "smc.rmbe.ctrl.peer.closed.conn",
|
|
|
537ca1 |
FT_BOOLEAN, 8, NULL, 0x40, NULL, HFILL}},
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcr_rmbe_ctrl_peer_abnormal_close, {
|
|
|
537ca1 |
- "Peer Abnormal Close", "smcr.rmbe.ctrl.peer.abnormal.close",
|
|
|
537ca1 |
- FT_BOOLEAN, 8, NULL, 0x20, NULL, HFILL}}
|
|
|
537ca1 |
+ "Peer Abnormal Close", "smc.rmbe.ctrl.peer.abnormal.close",
|
|
|
537ca1 |
+ FT_BOOLEAN, 8, NULL, 0x20, NULL, HFILL}},
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smcd_accept_eid, {
|
|
|
537ca1 |
+ "EID", "smc.accept.eid",
|
|
|
537ca1 |
+ FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smcd_confirm_eid, {
|
|
|
537ca1 |
+ "EID", "smc.confirm.eid",
|
|
|
537ca1 |
+ FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smcd_accept_peer_name, {
|
|
|
537ca1 |
+ "Peer Host Name", "smc.accept.peer.host.name",
|
|
|
537ca1 |
+ FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smcd_confirm_peer_name, {
|
|
|
537ca1 |
+ "Peer Host Name", "smc.confirm.peer.host.name",
|
|
|
537ca1 |
+ FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smcd_accept_first_contact, {
|
|
|
537ca1 |
+ "First Contact", "smc.accept.first.contact",
|
|
|
537ca1 |
+ FT_BOOLEAN, 8, NULL, 0x08, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smcd_confirm_first_contact, {
|
|
|
537ca1 |
+ "First Contact", "smc.confirm.first.contact",
|
|
|
537ca1 |
+ FT_BOOLEAN, 8, NULL, 0x08, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_accept_smc_version_release_number, {
|
|
|
537ca1 |
+ "SMC Version Release Number", "smc.accept.smc.version.relnum",
|
|
|
537ca1 |
+ FT_UINT8, BASE_DEC, NULL, 0x0F, NULL, HFILL } },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_confirm_smc_version_release_number, {
|
|
|
537ca1 |
+ "SMC Version Release Number", "smc.confirm.smc.version.relnum",
|
|
|
537ca1 |
+ FT_UINT8, BASE_DEC, NULL, 0x0F, NULL, HFILL } },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_accept_os_type, {
|
|
|
537ca1 |
+ "OS Type", "smc.accept.os.type",
|
|
|
537ca1 |
+ FT_UINT8, BASE_DEC, VALS(smc_clc_os_message_txt), 0xF0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_confirm_os_type, {
|
|
|
537ca1 |
+ "OS Type", "smc.confirm.os.type",
|
|
|
537ca1 |
+ FT_UINT8, BASE_DEC, VALS(smc_clc_os_message_txt), 0xF0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smcd_accept_dmb_token, {
|
|
|
537ca1 |
+ "DMB Token", "smc.accept.dmb.token",
|
|
|
537ca1 |
+ FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smcd_confirm_dmb_token, {
|
|
|
537ca1 |
+ "DMB Token", "smc.confirm.dmb.token",
|
|
|
537ca1 |
+ FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_accept_dmb_buffer_size, {
|
|
|
537ca1 |
+ "Server DMBE Buffers Size (Compressed Notation)",
|
|
|
537ca1 |
+ "smc.accept.dmbe.buffer.size",
|
|
|
537ca1 |
+ FT_UINT8, BASE_DEC, NULL, 0xF0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smcd_confirm_dmb_buffer_size, {
|
|
|
537ca1 |
+ "Client DMBE Buffers Size (Compressed Notation)",
|
|
|
537ca1 |
+ "smc.confirm.dmbe.buffer.size",
|
|
|
537ca1 |
+ FT_UINT8, BASE_DEC, NULL, 0xF0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smcd_accept_smc_chid, {
|
|
|
537ca1 |
+ "ISM CHID", "smc.accept.smc.chid",
|
|
|
537ca1 |
+ FT_UINT16, BASE_HEX, NULL, 0x00, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smcd_confirm_smc_chid, {
|
|
|
537ca1 |
+ "ISM CHID", "smc.confirm.smc.chid",
|
|
|
537ca1 |
+ FT_UINT16, BASE_HEX, NULL, 0x00, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smcd_accept_server_peer_id, {
|
|
|
537ca1 |
+ "Sender (Server) ISM GID", "smc.accept.sender.server.ism.gid",
|
|
|
537ca1 |
+ FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smcd_confirm_client_peer_id, {
|
|
|
537ca1 |
+ "Sender (Client) ISM GID", "smc.confirm.sender.client.ism.gid",
|
|
|
537ca1 |
+ FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smcd_accept_dmbe_conn_index, {
|
|
|
537ca1 |
+ "DMBE Connection Index",
|
|
|
537ca1 |
+ "smc.accept.dmbe.conn.index",
|
|
|
537ca1 |
+ FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smcd_accept_server_link_id, {
|
|
|
537ca1 |
+ "Server Link ID",
|
|
|
537ca1 |
+ "smc.accept.server.linkid",
|
|
|
537ca1 |
+ FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smcd_confirm_dmbe_conn_index, {
|
|
|
537ca1 |
+ "DMBE Connection Index",
|
|
|
537ca1 |
+ "smc.confirm.dmbe.conn.index",
|
|
|
537ca1 |
+ FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smcd_confirm_client_link_id, {
|
|
|
537ca1 |
+ "Client Link ID",
|
|
|
537ca1 |
+ "smc.confirm.client.linkid",
|
|
|
537ca1 |
+ FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smcd_accept_flags, {
|
|
|
537ca1 |
+ "Flags", "smc.accept.flags",
|
|
|
537ca1 |
+ FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smcd_confirm_flags, {
|
|
|
537ca1 |
+ "Flags", "smc.confirm.flags",
|
|
|
537ca1 |
+ FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smcd_accept_flags2, {
|
|
|
537ca1 |
+ "DMBE Size", "smc.accept.dmbe.size",
|
|
|
537ca1 |
+ FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smcd_confirm_flags2, {
|
|
|
537ca1 |
+ "DMBE Size", "smc.confirm.dmbe.size",
|
|
|
537ca1 |
+ FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smcd_accept_fce_flags, {
|
|
|
537ca1 |
+ "Flags", "smc.accept.fce.flags",
|
|
|
537ca1 |
+ FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL} }
|
|
|
537ca1 |
};
|
|
|
537ca1 |
|
|
|
537ca1 |
/* Setup protocol subtree arrays */
|
|
|
537ca1 |
- static gint *ett[] = {
|
|
|
537ca1 |
+ static gint* ett[] = {
|
|
|
537ca1 |
&ett_smcr,
|
|
|
537ca1 |
&ett_proposal_flag,
|
|
|
537ca1 |
+ &ett_proposal_ext_flag2,
|
|
|
537ca1 |
&ett_accept_flag,
|
|
|
537ca1 |
&ett_accept_flag2,
|
|
|
537ca1 |
+ &ett_smcd_accept_flag,
|
|
|
537ca1 |
+ &ett_smcd_accept_flag2,
|
|
|
537ca1 |
+ &ett_smcd_accept_fce_flag,
|
|
|
537ca1 |
+ &ett_smcd_confirm_flag,
|
|
|
537ca1 |
+ &ett_smcd_confirm_fce_flag,
|
|
|
537ca1 |
+ &ett_smcd_confirm_flag2,
|
|
|
537ca1 |
&ett_confirm_flag,
|
|
|
537ca1 |
&ett_confirm_flag2,
|
|
|
537ca1 |
&ett_confirm_link_flag,
|
|
|
537ca1 |
+ &ett_decline_flag,
|
|
|
537ca1 |
+ &ett_decline_flag2,
|
|
|
537ca1 |
&ett_add_link_flag,
|
|
|
537ca1 |
&ett_add_link_flag2,
|
|
|
537ca1 |
&ett_add_link_cont_flag,
|
|
|
537ca1 |
@@ -1405,21 +2085,21 @@ proto_register_smcr(void)
|
|
|
537ca1 |
&ett_rmbe_ctrl_peer_conn_state_flag
|
|
|
537ca1 |
};
|
|
|
537ca1 |
|
|
|
537ca1 |
- proto_smcr = proto_register_protocol("Shared Memory Communications - RDMA",
|
|
|
537ca1 |
- "SMCR", "smcr");
|
|
|
537ca1 |
+ proto_smc = proto_register_protocol("Shared Memory Communications",
|
|
|
537ca1 |
+ "SMC", "smc");
|
|
|
537ca1 |
|
|
|
537ca1 |
- proto_register_field_array(proto_smcr, hf, array_length(hf));
|
|
|
537ca1 |
+ proto_register_field_array(proto_smc, hf, array_length(hf));
|
|
|
537ca1 |
proto_register_subtree_array(ett, array_length(ett));
|
|
|
537ca1 |
|
|
|
537ca1 |
- smcr_tcp_handle = register_dissector("smcr", dissect_smcr_tcp, proto_smcr);
|
|
|
537ca1 |
+ smc_tcp_handle = register_dissector("smc", dissect_smc_tcp, proto_smc);
|
|
|
537ca1 |
}
|
|
|
537ca1 |
|
|
|
537ca1 |
void
|
|
|
537ca1 |
proto_reg_handoff_smcr(void)
|
|
|
537ca1 |
{
|
|
|
537ca1 |
- heur_dissector_add("tcp", dissect_smcr_tcp_heur, "Shared Memory Communications over TCP", "smcr_tcp", proto_smcr, HEURISTIC_ENABLE);
|
|
|
537ca1 |
- heur_dissector_add("infiniband.payload", dissect_smcr_infiniband_heur, "Shared Memory Communications Infiniband", "smcr_infiniband", proto_smcr, HEURISTIC_ENABLE);
|
|
|
537ca1 |
- dissector_add_for_decode_as("infiniband", create_dissector_handle( dissect_smcr_infiniband, proto_smcr ) );
|
|
|
537ca1 |
+ heur_dissector_add("tcp", dissect_smc_tcp_heur, "Shared Memory Communications over TCP", "smc_tcp", proto_smc, HEURISTIC_ENABLE);
|
|
|
537ca1 |
+ heur_dissector_add("infiniband.payload", dissect_smcr_infiniband_heur, "Shared Memory Communications Infiniband", "smcr_infiniband", proto_smc, HEURISTIC_ENABLE);
|
|
|
537ca1 |
+ dissector_add_for_decode_as("infiniband", create_dissector_handle( dissect_smcr_infiniband, proto_smc ) );
|
|
|
537ca1 |
}
|
|
|
537ca1 |
|
|
|
537ca1 |
/*
|
|
|
537ca1 |
diff --git a/epan/dissectors/packet-smc.c b/epan/dissectors/packet-smc.c
|
|
|
537ca1 |
index bbfa9c07ef..0a4e96e055 100644
|
|
|
537ca1 |
--- a/epan/dissectors/packet-smc.c
|
|
|
537ca1 |
+++ b/epan/dissectors/packet-smc.c
|
|
|
537ca1 |
@@ -592,7 +592,7 @@ disect_smcd_accept(tvbuff_t* tvb, proto_tree* tree)
|
|
|
537ca1 |
offset += FLAG_BYTE_LEN;
|
|
|
537ca1 |
offset += TWO_BYTE_RESERVED;
|
|
|
537ca1 |
proto_tree_add_item(tree, hf_smcd_accept_peer_name, tvb, offset, 32, ENC_ASCII | ENC_NA);
|
|
|
537ca1 |
- offset += 32;
|
|
|
537ca1 |
+ /* offset += 32; */
|
|
|
537ca1 |
}
|
|
|
537ca1 |
}
|
|
|
537ca1 |
}
|
|
|
537ca1 |
@@ -661,7 +661,7 @@ disect_smcd_confirm(tvbuff_t* tvb, proto_tree* tree)
|
|
|
537ca1 |
offset += FLAG_BYTE_LEN;
|
|
|
537ca1 |
offset += TWO_BYTE_RESERVED;
|
|
|
537ca1 |
proto_tree_add_item(tree, hf_smcd_confirm_peer_name, tvb, offset, 32, ENC_ASCII | ENC_NA);
|
|
|
537ca1 |
- offset += 32;
|
|
|
537ca1 |
+ /* offset += 32; */
|
|
|
537ca1 |
}
|
|
|
537ca1 |
}
|
|
|
537ca1 |
}
|
|
|
537ca1 |
diff --git a/epan/dissectors/packet-smc.c b/epan/dissectors/packet-smc.c
|
|
|
537ca1 |
index 0a4e96e055..6ede4690db 100644
|
|
|
537ca1 |
--- a/epan/dissectors/packet-smc.c
|
|
|
537ca1 |
+++ b/epan/dissectors/packet-smc.c
|
|
|
537ca1 |
@@ -1,3 +1,6 @@
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+
|
|
|
537ca1 |
/* packet-smc.c
|
|
|
537ca1 |
* SMC dissector for wireshark
|
|
|
537ca1 |
* By Joe Fowler <fowlerja@us.ibm.com>
|
|
|
537ca1 |
@@ -191,6 +194,8 @@ static int hf_smc_proposal_outgoing_subnet_mask_signifcant_bits = -1;
|
|
|
537ca1 |
static int hf_smc_proposal_ipv6_prefix = -1;
|
|
|
537ca1 |
static int hf_smc_proposal_ipv6_prefix_length = -1;
|
|
|
537ca1 |
|
|
|
537ca1 |
+static int hf_smc_reserved = -1;
|
|
|
537ca1 |
+
|
|
|
537ca1 |
/* SMC-R Accept */
|
|
|
537ca1 |
static int ett_accept_flag = -1;
|
|
|
537ca1 |
static int ett_accept_flag2 = -1;
|
|
|
537ca1 |
@@ -427,6 +432,8 @@ disect_smc_proposal(tvbuff_t *tvb, proto_tree *tree, bool is_ipv6)
|
|
|
537ca1 |
|
|
|
537ca1 |
if (mask_offset != 0) {
|
|
|
537ca1 |
suboffset = offset;
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_reserved, tvb,
|
|
|
537ca1 |
+ suboffset, TWO_BYTE_RESERVED, ENC_NA);
|
|
|
537ca1 |
suboffset += TWO_BYTE_RESERVED;
|
|
|
537ca1 |
if (is_smcdv1 || is_smcdv2) {
|
|
|
537ca1 |
proto_tree_add_item(tree, hf_smc_proposal_ism_gid, tvb,
|
|
|
537ca1 |
@@ -439,6 +446,8 @@ disect_smc_proposal(tvbuff_t *tvb, proto_tree *tree, bool is_ipv6)
|
|
|
537ca1 |
LENGTH_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
}
|
|
|
537ca1 |
suboffset += LENGTH_BYTE_LEN;
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_reserved, tvb,
|
|
|
537ca1 |
+ suboffset, TWO_BYTE_RESERVED, ENC_NA);
|
|
|
537ca1 |
v2_ext_offset = tvb_get_ntohs(tvb, suboffset);
|
|
|
537ca1 |
v2_ext_pos = suboffset + TWO_BYTE_RESERVED + v2_ext_offset;
|
|
|
537ca1 |
}
|
|
|
537ca1 |
@@ -451,7 +460,8 @@ disect_smc_proposal(tvbuff_t *tvb, proto_tree *tree, bool is_ipv6)
|
|
|
537ca1 |
proto_tree_add_item(tree, hf_smc_proposal_outgoing_subnet_mask_signifcant_bits, tvb,
|
|
|
537ca1 |
offset, 1, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
offset += 1;
|
|
|
537ca1 |
- /* Bump past reserved bytes */
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_reserved, tvb,
|
|
|
537ca1 |
+ offset, TWO_BYTE_RESERVED, ENC_NA);
|
|
|
537ca1 |
offset += TWO_BYTE_RESERVED;
|
|
|
537ca1 |
ipv6_prefix_count = tvb_get_guint8(tvb, offset);
|
|
|
537ca1 |
offset += 1;
|
|
|
537ca1 |
@@ -472,7 +482,8 @@ disect_smc_proposal(tvbuff_t *tvb, proto_tree *tree, bool is_ipv6)
|
|
|
537ca1 |
offset += FLAG_BYTE_LEN;
|
|
|
537ca1 |
num_of_gids = tvb_get_guint8(tvb, offset);
|
|
|
537ca1 |
offset += FLAG_BYTE_LEN;
|
|
|
537ca1 |
- /*Skip reserved flag 1*/
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_reserved, tvb,
|
|
|
537ca1 |
+ offset, 1, ENC_NA);
|
|
|
537ca1 |
offset += 1;
|
|
|
537ca1 |
proposal_flag_item = proto_tree_add_item(tree, hf_smc_proposal_ext_flags, tvb,
|
|
|
537ca1 |
offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
@@ -482,7 +493,8 @@ disect_smc_proposal(tvbuff_t *tvb, proto_tree *tree, bool is_ipv6)
|
|
|
537ca1 |
proto_tree_add_item(proposal_flag_tree, hf_proposal_smc_version_seid, tvb,
|
|
|
537ca1 |
offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
offset += FLAG_BYTE_LEN;
|
|
|
537ca1 |
- /*Skip not used 2 bytes*/
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_reserved, tvb,
|
|
|
537ca1 |
+ offset, 2, ENC_NA);
|
|
|
537ca1 |
offset += 2;
|
|
|
537ca1 |
smcd_v2_ext_offset = tvb_get_ntohs(tvb, offset);
|
|
|
537ca1 |
offset += 2;
|
|
|
537ca1 |
@@ -499,7 +511,8 @@ disect_smc_proposal(tvbuff_t *tvb, proto_tree *tree, bool is_ipv6)
|
|
|
537ca1 |
offset, IPV4_SUBNET_MASK_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
offset += IPV4_SUBNET_MASK_LEN;
|
|
|
537ca1 |
}
|
|
|
537ca1 |
- /*Skip reserved 16 bytes*/
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_reserved, tvb,
|
|
|
537ca1 |
+ offset, 16, ENC_NA);
|
|
|
537ca1 |
offset += 16;
|
|
|
537ca1 |
while (num_of_eids != 0) {
|
|
|
537ca1 |
proto_tree_add_item(tree, hf_smc_proposal_eid, tvb,
|
|
|
537ca1 |
@@ -512,7 +525,8 @@ disect_smc_proposal(tvbuff_t *tvb, proto_tree *tree, bool is_ipv6)
|
|
|
537ca1 |
proto_tree_add_item(tree, hf_smc_proposal_system_eid, tvb,
|
|
|
537ca1 |
offset, EID_LEN, ENC_ASCII | ENC_NA);
|
|
|
537ca1 |
offset += EID_LEN;
|
|
|
537ca1 |
- /*Skip reserved 16 bytes*/
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_reserved, tvb,
|
|
|
537ca1 |
+ offset, 16, ENC_NA);
|
|
|
537ca1 |
offset += 16;
|
|
|
537ca1 |
while (num_of_gids != 0) {
|
|
|
537ca1 |
proto_tree_add_item(tree, hf_smc_proposal_ism_gid, tvb,
|
|
|
537ca1 |
@@ -580,16 +594,21 @@ disect_smcd_accept(tvbuff_t* tvb, proto_tree* tree)
|
|
|
537ca1 |
|
|
|
537ca1 |
proto_tree_add_item(tree, hf_smcd_accept_eid, tvb, offset, 32, ENC_ASCII | ENC_NA);
|
|
|
537ca1 |
offset += 32;
|
|
|
537ca1 |
- /* Reserved bytes */
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_reserved, tvb,
|
|
|
537ca1 |
+ offset, 8, ENC_NA);
|
|
|
537ca1 |
offset += 8;
|
|
|
537ca1 |
|
|
|
537ca1 |
if (first_contact) {
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_reserved, tvb,
|
|
|
537ca1 |
+ offset, ONE_BYTE_RESERVED, ENC_NA);
|
|
|
537ca1 |
offset += ONE_BYTE_RESERVED;
|
|
|
537ca1 |
accept_flag_item = proto_tree_add_item(tree, hf_smcd_accept_fce_flags, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
accept_flag_tree = proto_item_add_subtree(accept_flag_item, ett_smcd_accept_fce_flag);
|
|
|
537ca1 |
proto_tree_add_item(accept_flag_tree, hf_accept_os_type, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
proto_tree_add_item(accept_flag_tree, hf_accept_smc_version_release_number, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
offset += FLAG_BYTE_LEN;
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_reserved, tvb,
|
|
|
537ca1 |
+ offset, TWO_BYTE_RESERVED, ENC_NA);
|
|
|
537ca1 |
offset += TWO_BYTE_RESERVED;
|
|
|
537ca1 |
proto_tree_add_item(tree, hf_smcd_accept_peer_name, tvb, offset, 32, ENC_ASCII | ENC_NA);
|
|
|
537ca1 |
/* offset += 32; */
|
|
|
537ca1 |
@@ -637,6 +656,8 @@ disect_smcd_confirm(tvbuff_t* tvb, proto_tree* tree)
|
|
|
537ca1 |
confirm_flag2_tree = proto_item_add_subtree(confirm_flag2_item, ett_smcd_confirm_flag2);
|
|
|
537ca1 |
proto_tree_add_item(confirm_flag2_tree, hf_smcd_confirm_dmb_buffer_size, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
offset += FLAG_BYTE_LEN;
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_reserved, tvb,
|
|
|
537ca1 |
+ offset, ONE_BYTE_RESERVED, ENC_NA);
|
|
|
537ca1 |
offset += TWO_BYTE_RESERVED;
|
|
|
537ca1 |
proto_tree_add_item(tree, hf_smcd_confirm_client_link_id, tvb,
|
|
|
537ca1 |
offset, ALERT_TOKEN_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
@@ -649,16 +670,21 @@ disect_smcd_confirm(tvbuff_t* tvb, proto_tree* tree)
|
|
|
537ca1 |
|
|
|
537ca1 |
proto_tree_add_item(tree, hf_smcd_confirm_eid, tvb, offset, 32, ENC_ASCII | ENC_NA);
|
|
|
537ca1 |
offset += 32;
|
|
|
537ca1 |
- /* Reserved bytes */
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_reserved, tvb,
|
|
|
537ca1 |
+ offset, 8, ENC_NA);
|
|
|
537ca1 |
offset += 8;
|
|
|
537ca1 |
|
|
|
537ca1 |
if (first_contact) {
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_reserved, tvb,
|
|
|
537ca1 |
+ offset, ONE_BYTE_RESERVED, ENC_NA);
|
|
|
537ca1 |
offset += ONE_BYTE_RESERVED;
|
|
|
537ca1 |
confirm_flag_item = proto_tree_add_item(tree, hf_smcd_accept_fce_flags, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
confirm_flag_tree = proto_item_add_subtree(confirm_flag_item, ett_smcd_confirm_fce_flag);
|
|
|
537ca1 |
proto_tree_add_item(confirm_flag_tree, hf_confirm_os_type, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
proto_tree_add_item(confirm_flag_tree, hf_confirm_smc_version_release_number, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
offset += FLAG_BYTE_LEN;
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_reserved, tvb,
|
|
|
537ca1 |
+ offset, TWO_BYTE_RESERVED, ENC_NA);
|
|
|
537ca1 |
offset += TWO_BYTE_RESERVED;
|
|
|
537ca1 |
proto_tree_add_item(tree, hf_smcd_confirm_peer_name, tvb, offset, 32, ENC_ASCII | ENC_NA);
|
|
|
537ca1 |
/* offset += 32; */
|
|
|
537ca1 |
@@ -711,12 +737,14 @@ disect_smcr_accept(tvbuff_t *tvb, proto_tree *tree)
|
|
|
537ca1 |
proto_tree_add_item(accept_flag2_tree, hf_accept_rmb_buffer_size, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
proto_tree_add_item(accept_flag2_tree, hf_accept_qp_mtu_value, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
offset += FLAG_BYTE_LEN;
|
|
|
537ca1 |
- /* Bump past reserved byte */
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_reserved, tvb,
|
|
|
537ca1 |
+ offset, ONE_BYTE_RESERVED, ENC_NA);
|
|
|
537ca1 |
offset += ONE_BYTE_RESERVED;
|
|
|
537ca1 |
proto_tree_add_item(tree, hf_smcr_accept_server_rmb_virtual_address, tvb,
|
|
|
537ca1 |
offset, VIRTUAL_ADDR_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
offset += VIRTUAL_ADDR_LEN;
|
|
|
537ca1 |
- /* Bump past reserved byte */
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_reserved, tvb,
|
|
|
537ca1 |
+ offset, ONE_BYTE_RESERVED, ENC_NA);
|
|
|
537ca1 |
offset += ONE_BYTE_RESERVED;
|
|
|
537ca1 |
proto_tree_add_item(tree, hf_smcr_accept_initial_psn, tvb,
|
|
|
537ca1 |
offset, PSN_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
@@ -765,12 +793,14 @@ disect_smcr_confirm(tvbuff_t *tvb, proto_tree *tree)
|
|
|
537ca1 |
proto_tree_add_item(confirm_flag2_tree, hf_confirm_rmb_buffer_size, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
proto_tree_add_item(confirm_flag2_tree, hf_confirm_qp_mtu_value, tvb, offset, FLAG_BYTE_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
offset += FLAG_BYTE_LEN;
|
|
|
537ca1 |
- /* Bump past reserved byte */
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_reserved, tvb,
|
|
|
537ca1 |
+ offset, ONE_BYTE_RESERVED, ENC_NA);
|
|
|
537ca1 |
offset += ONE_BYTE_RESERVED;
|
|
|
537ca1 |
proto_tree_add_item(tree, hf_smcr_confirm_client_rmb_virtual_address, tvb,
|
|
|
537ca1 |
offset, VIRTUAL_ADDR_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
offset += VIRTUAL_ADDR_LEN;
|
|
|
537ca1 |
- /* Bump past reserved byte */
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_reserved, tvb,
|
|
|
537ca1 |
+ offset, ONE_BYTE_RESERVED, ENC_NA);
|
|
|
537ca1 |
offset += ONE_BYTE_RESERVED;
|
|
|
537ca1 |
proto_tree_add_item(tree, hf_smcr_confirm_initial_psn, tvb,
|
|
|
537ca1 |
offset, PSN_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
@@ -866,7 +896,8 @@ disect_smcr_add_link(tvbuff_t *tvb, proto_tree *tree)
|
|
|
537ca1 |
proto_tree_add_item(tree, hf_smcr_add_link_mac, tvb,
|
|
|
537ca1 |
offset, MAC_ADDR_LEN, ENC_NA);
|
|
|
537ca1 |
offset += MAC_ADDR_LEN;
|
|
|
537ca1 |
- /* Bump past reserved bytes */
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_reserved, tvb,
|
|
|
537ca1 |
+ offset, TWO_BYTE_RESERVED, ENC_NA);
|
|
|
537ca1 |
offset += TWO_BYTE_RESERVED;
|
|
|
537ca1 |
proto_tree_add_item(tree, hf_smcr_add_link_gid, tvb,
|
|
|
537ca1 |
offset, GID_LEN, ENC_NA);
|
|
|
537ca1 |
@@ -1084,12 +1115,13 @@ disect_smcr_rmbe_ctrl(tvbuff_t *tvb, proto_tree *tree)
|
|
|
537ca1 |
offset += SEQNO_LEN;
|
|
|
537ca1 |
proto_tree_add_item(tree, hf_smcr_rmbe_ctrl_alert_token, tvb, offset, ALERT_TOKEN_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
offset += ALERT_TOKEN_LEN;
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_reserved, tvb, offset, TWO_BYTE_RESERVED, ENC_NA);
|
|
|
537ca1 |
offset += TWO_BYTE_RESERVED;
|
|
|
537ca1 |
proto_tree_add_item(tree, hf_smcr_rmbe_ctrl_prod_wrap_seqno, tvb, offset, SEQNO_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
offset += SEQNO_LEN;
|
|
|
537ca1 |
proto_tree_add_item(tree, hf_smcr_rmbe_ctrl_peer_prod_curs, tvb, offset, CURSOR_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
offset += CURSOR_LEN;
|
|
|
537ca1 |
- /* Bump past reserved bytes */
|
|
|
537ca1 |
+ proto_tree_add_item(tree, hf_smc_reserved, tvb, offset, TWO_BYTE_RESERVED, ENC_NA);
|
|
|
537ca1 |
offset += TWO_BYTE_RESERVED;
|
|
|
537ca1 |
proto_tree_add_item(tree, hf_smcr_rmbe_ctrl_cons_wrap_seqno, tvb, offset, SEQNO_LEN, ENC_BIG_ENDIAN);
|
|
|
537ca1 |
offset += SEQNO_LEN;
|
|
|
537ca1 |
@@ -2053,7 +2085,11 @@ proto_register_smcr(void)
|
|
|
537ca1 |
|
|
|
537ca1 |
{ &hf_smcd_accept_fce_flags, {
|
|
|
537ca1 |
"Flags", "smc.accept.fce.flags",
|
|
|
537ca1 |
- FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL} }
|
|
|
537ca1 |
+ FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL} },
|
|
|
537ca1 |
+
|
|
|
537ca1 |
+ { &hf_smc_reserved, {
|
|
|
537ca1 |
+ "Reserved", "smc.reserved",
|
|
|
537ca1 |
+ FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL} }
|
|
|
537ca1 |
};
|
|
|
537ca1 |
|
|
|
537ca1 |
/* Setup protocol subtree arrays */
|