2003-10-30 02:06:13 +00:00
|
|
|
/* packet-fc-sb3.c
|
|
|
|
* Routines for Fibre Channel Single Byte Protocol (SBCCS); used in FICON.
|
|
|
|
* This decoder is for FC-SB3 version 1.4
|
|
|
|
* Copyright 2003, Dinesh G Dutt <ddutt@cisco.com>
|
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
2003-10-30 02:06:13 +00:00
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2003-10-30 02:06:13 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2011-09-21 23:42:55 +00:00
|
|
|
*
|
2003-10-30 02:06:13 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2011-09-21 23:42:55 +00:00
|
|
|
*
|
2003-10-30 02:06:13 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-06-28 23:18:38 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2003-10-30 02:06:13 +00:00
|
|
|
*/
|
|
|
|
|
2012-09-20 02:03:38 +00:00
|
|
|
#include "config.h"
|
2003-10-30 02:06:13 +00:00
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
|
|
|
|
#include <epan/packet.h>
|
|
|
|
#include <epan/conversation.h>
|
2005-09-17 00:02:31 +00:00
|
|
|
#include <epan/etypes.h>
|
2003-10-30 02:06:13 +00:00
|
|
|
#include "packet-fc.h"
|
|
|
|
#include "packet-fcsb3.h"
|
|
|
|
|
2013-12-15 23:44:12 +00:00
|
|
|
void proto_register_fcsbccs(void);
|
|
|
|
void proto_reg_handoff_fcsbccs(void);
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
/* Initialize the protocol and registered fields */
|
2012-05-03 19:31:03 +00:00
|
|
|
static int proto_fc_sbccs = -1;
|
|
|
|
static int hf_sbccs_chid = -1;
|
|
|
|
static int hf_sbccs_cuid = -1;
|
|
|
|
static int hf_sbccs_devaddr = -1;
|
|
|
|
static int hf_sbccs_ccw = -1;
|
|
|
|
static int hf_sbccs_token = -1;
|
|
|
|
static int hf_sbccs_dib_iucnt = -1;
|
|
|
|
static int hf_sbccs_dib_datacnt = -1;
|
|
|
|
static int hf_sbccs_dib_ccw_cmd = -1;
|
|
|
|
static int hf_sbccs_dib_ccw_cnt = -1;
|
|
|
|
static int hf_sbccs_dib_residualcnt = -1;
|
|
|
|
static int hf_sbccs_dib_qtuf = -1;
|
|
|
|
static int hf_sbccs_dib_qtu = -1;
|
|
|
|
static int hf_sbccs_dib_dtuf = -1;
|
|
|
|
static int hf_sbccs_dib_dtu = -1;
|
|
|
|
static int hf_sbccs_dib_ctlfn = -1;
|
|
|
|
static int hf_sbccs_lrc = -1;
|
|
|
|
static int hf_sbccs_dib_iupacing = -1;
|
|
|
|
static int hf_sbccs_dev_xcp_code = -1;
|
|
|
|
static int hf_sbccs_prg_pth_errcode = -1;
|
|
|
|
static int hf_sbccs_prg_rsp_errcode = -1;
|
|
|
|
static int hf_sbccs_dib_ctccntr = -1;
|
|
|
|
static int hf_sbccs_dib_lprcode = -1;
|
2003-10-30 02:06:13 +00:00
|
|
|
static int hf_sbccs_dib_tin_imgid_cnt = -1;
|
2012-05-03 19:31:03 +00:00
|
|
|
static int hf_sbccs_dib_lrjcode = -1;
|
|
|
|
static int hf_sbccs_dib_ioprio = -1;
|
|
|
|
static int hf_sbccs_dib_linkctlfn = -1;
|
2005-10-10 08:36:24 +00:00
|
|
|
static int hf_sbccs_iui = -1;
|
|
|
|
static int hf_sbccs_iui_as = -1;
|
|
|
|
static int hf_sbccs_iui_es = -1;
|
|
|
|
static int hf_sbccs_iui_val = -1;
|
2005-10-10 09:12:33 +00:00
|
|
|
static int hf_sbccs_dhflags = -1;
|
|
|
|
static int hf_sbccs_dhflags_end = -1;
|
|
|
|
static int hf_sbccs_dhflags_chaining = -1;
|
|
|
|
static int hf_sbccs_dhflags_earlyend = -1;
|
|
|
|
static int hf_sbccs_dhflags_nocrc = -1;
|
2005-10-10 10:12:16 +00:00
|
|
|
static int hf_sbccs_dib_ccw_flags = -1;
|
|
|
|
static int hf_sbccs_dib_ccw_flags_cd = -1;
|
|
|
|
static int hf_sbccs_dib_ccw_flags_cc = -1;
|
|
|
|
static int hf_sbccs_dib_ccw_flags_sli = -1;
|
|
|
|
static int hf_sbccs_dib_ccw_flags_crr = -1;
|
2005-10-11 09:26:50 +00:00
|
|
|
static int hf_sbccs_dib_cmdflags = -1;
|
|
|
|
static int hf_sbccs_dib_cmdflags_du = -1;
|
|
|
|
static int hf_sbccs_dib_cmdflags_coc = -1;
|
|
|
|
static int hf_sbccs_dib_cmdflags_syr = -1;
|
|
|
|
static int hf_sbccs_dib_cmdflags_rex = -1;
|
|
|
|
static int hf_sbccs_dib_cmdflags_sss = -1;
|
|
|
|
static int hf_sbccs_dib_statusflags = -1;
|
|
|
|
static int hf_sbccs_dib_statusflags_ffc = -1;
|
|
|
|
static int hf_sbccs_dib_statusflags_ci = -1;
|
|
|
|
static int hf_sbccs_dib_statusflags_cr = -1;
|
|
|
|
static int hf_sbccs_dib_statusflags_lri = -1;
|
|
|
|
static int hf_sbccs_dib_statusflags_rv = -1;
|
|
|
|
static int hf_sbccs_dib_status = -1;
|
|
|
|
static int hf_sbccs_dib_status_attention = -1;
|
|
|
|
static int hf_sbccs_dib_status_modifier = -1;
|
|
|
|
static int hf_sbccs_dib_status_cue = -1;
|
|
|
|
static int hf_sbccs_dib_status_busy = -1;
|
|
|
|
static int hf_sbccs_dib_status_channelend = -1;
|
|
|
|
static int hf_sbccs_dib_status_deviceend = -1;
|
|
|
|
static int hf_sbccs_dib_status_unit_check = -1;
|
|
|
|
static int hf_sbccs_dib_status_unit_exception = -1;
|
2005-10-25 10:24:40 +00:00
|
|
|
static int hf_sbccs_dib_ctlparam = -1;
|
|
|
|
static int hf_sbccs_dib_ctlparam_rc = -1;
|
|
|
|
static int hf_sbccs_dib_ctlparam_ru = -1;
|
|
|
|
static int hf_sbccs_dib_ctlparam_ro = -1;
|
2005-10-25 10:38:36 +00:00
|
|
|
static int hf_sbccs_dib_linkctlinfo = -1;
|
|
|
|
static int hf_sbccs_dib_linkctlinfo_ctcconn = -1;
|
|
|
|
static int hf_sbccs_dib_linkctlinfo_ecrcg = -1;
|
2003-10-30 02:06:13 +00:00
|
|
|
|
|
|
|
/* Initialize the subtree pointers */
|
|
|
|
static gint ett_fc_sbccs = -1;
|
2005-10-10 08:36:24 +00:00
|
|
|
static gint ett_sbccs_iui = -1;
|
2005-10-10 09:12:33 +00:00
|
|
|
static gint ett_sbccs_dhflags = -1;
|
2005-10-10 10:12:16 +00:00
|
|
|
static gint ett_sbccs_dib_ccw_flags = -1;
|
2005-10-11 09:26:50 +00:00
|
|
|
static gint ett_sbccs_dib_cmdflags = -1;
|
|
|
|
static gint ett_sbccs_dib_statusflags = -1;
|
|
|
|
static gint ett_sbccs_dib_status = -1;
|
2005-10-25 10:24:40 +00:00
|
|
|
static gint ett_sbccs_dib_ctlparam = -1;
|
2005-10-25 10:38:36 +00:00
|
|
|
static gint ett_sbccs_dib_linkctlinfo = -1;
|
2003-10-30 02:06:13 +00:00
|
|
|
|
|
|
|
static dissector_handle_t data_handle;
|
|
|
|
|
2013-10-31 14:12:53 +00:00
|
|
|
#if 0
|
2003-10-30 02:06:13 +00:00
|
|
|
typedef struct {
|
|
|
|
guint32 conv_id;
|
|
|
|
guint32 task_id;
|
|
|
|
} sb3_task_id_t;
|
2013-10-31 14:12:53 +00:00
|
|
|
#endif
|
2003-10-30 02:06:13 +00:00
|
|
|
|
|
|
|
static const value_string fc_sbccs_iu_val[] = {
|
|
|
|
{FC_SBCCS_IU_DATA, "Data"},
|
|
|
|
{FC_SBCCS_IU_CMD_HDR, "Command Header"},
|
|
|
|
{FC_SBCCS_IU_STATUS, "Status"},
|
|
|
|
{FC_SBCCS_IU_CTL, "Control"},
|
|
|
|
{FC_SBCCS_IU_CMD_DATA, "Command Header & Data"},
|
|
|
|
{FC_SBCCS_IU_CMD_LINK_CTL, "Link Control"},
|
|
|
|
{0x6, "Reserved"},
|
|
|
|
{0x7, "Reserved"},
|
|
|
|
{0x0, NULL},
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string fc_sbccs_dib_cmd_val[] = {
|
2012-05-03 19:31:03 +00:00
|
|
|
{ 0, "Reserved"},
|
|
|
|
{ 1, "Write"},
|
|
|
|
{ 2, "Read"},
|
|
|
|
{ 3, "Control"},
|
|
|
|
{ 4, "Sense"},
|
|
|
|
{ 5, "Write (Modifier)"},
|
|
|
|
{ 6, "Read (Modifier)"},
|
|
|
|
{ 7, "Control (Modifier)"},
|
|
|
|
{ 8, "Reserved"},
|
|
|
|
{ 9, "Write (Modifier)"},
|
2003-10-30 02:06:13 +00:00
|
|
|
{10, "Read (Modifier)"},
|
|
|
|
{11, "Control (Modifier)"},
|
|
|
|
{12, "Read Backward"},
|
|
|
|
{13, "Write (Modifier)"},
|
|
|
|
{14, "Read (Modifier)"},
|
|
|
|
{15, "Control (Modifier)"},
|
|
|
|
{0, NULL},
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string fc_sbccs_dib_ctl_fn_val[] = {
|
|
|
|
{FC_SBCCS_CTL_FN_CTL_END, "Control End"},
|
|
|
|
{FC_SBCCS_CTL_FN_CMD_RSP, "Command Response"},
|
|
|
|
{FC_SBCCS_CTL_FN_STK_STS, "Stack Status"},
|
|
|
|
{FC_SBCCS_CTL_FN_CANCEL, "Cancel"},
|
|
|
|
{FC_SBCCS_CTL_FN_SYS_RST, "System Reset"},
|
|
|
|
{FC_SBCCS_CTL_FN_SEL_RST, "Selective Reset"},
|
|
|
|
{FC_SBCCS_CTL_FN_REQ_STS, "Request Status"},
|
|
|
|
{FC_SBCCS_CTL_FN_DEV_XCP, "Device Level Exception"},
|
|
|
|
{FC_SBCCS_CTL_FN_STS_ACC, "Status Accepted"},
|
|
|
|
{FC_SBCCS_CTL_FN_DEV_ACK, "Device-Level Ack"},
|
|
|
|
{FC_SBCCS_CTL_FN_PRG_PTH, "Purge Path"},
|
|
|
|
{FC_SBCCS_CTL_FN_PRG_RSP, "Purge Path Response"},
|
|
|
|
{0, NULL},
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string fc_sbccs_dib_dev_xcpcode_val[] = {
|
|
|
|
{1, "Address Exception"},
|
|
|
|
{0, NULL},
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string fc_sbccs_dib_purge_path_err_val[] = {
|
2012-05-03 19:31:03 +00:00
|
|
|
{ 0, "Error Code Xfer Not Supported"},
|
|
|
|
{ 1, "SB-3 Protocol Timeout"},
|
|
|
|
{ 2, "SB-3 Link Failure"},
|
|
|
|
{ 3, "Reserved"},
|
|
|
|
{ 4, "SB-3 Offline Condition"},
|
|
|
|
{ 5, "FC-PH Link Failure"},
|
|
|
|
{ 6, "SB-3 Length Error"},
|
|
|
|
{ 7, "LRC Error"},
|
|
|
|
{ 8, "SB-3 CRC Error"},
|
|
|
|
{ 9, "IU Count Error"},
|
2003-10-30 02:06:13 +00:00
|
|
|
{10, "SB-3 Link Level Protocol Error"},
|
|
|
|
{11, "SB-3 Device Level Protocol Error"},
|
|
|
|
{12, "Receive ABTS"},
|
|
|
|
{13, "Cancel Function Timeout"},
|
|
|
|
{14, "Abnormal Termination of Xchg"},
|
|
|
|
{15, "Reserved"},
|
|
|
|
{0, NULL},
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string fc_sbccs_dib_purge_path_rsp_err_val[] = {
|
2012-05-03 19:31:03 +00:00
|
|
|
{ 0, "No Errors"},
|
|
|
|
{ 1, "SB-3 Protocol Timeout"},
|
|
|
|
{ 2, "SB-3 Link Failure"},
|
|
|
|
{ 3, "Logical Path Timeout Error"},
|
|
|
|
{ 4, "SB-3 Offline Condition"},
|
|
|
|
{ 5, "FC-PH Link Failure"},
|
|
|
|
{ 6, "SB-3 Length Error"},
|
|
|
|
{ 7, "LRC Error"},
|
|
|
|
{ 8, "SB-3 CRC Error"},
|
|
|
|
{ 9, "IU Count Error"},
|
2003-10-30 02:06:13 +00:00
|
|
|
{10, "SB-3 Link Level Protocol Error"},
|
|
|
|
{11, "SB-3 Device Level Protocol Error"},
|
|
|
|
{12, "Receive ABTS"},
|
|
|
|
{13, "Reserved"},
|
|
|
|
{14, "Abnormal Termination of Xchg"},
|
|
|
|
{15, "Logical Path Not Estd"},
|
|
|
|
{16, "Test Init Result Error"},
|
|
|
|
{0, NULL},
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string fc_sbccs_dib_link_ctl_fn_val[] = {
|
2012-05-03 19:31:03 +00:00
|
|
|
{FC_SBCCS_LINK_CTL_FN_ELP, "ELP"},
|
|
|
|
{FC_SBCCS_LINK_CTL_FN_RLP, "RLP"},
|
|
|
|
{FC_SBCCS_LINK_CTL_FN_TIN, "TIN"},
|
|
|
|
{FC_SBCCS_LINK_CTL_FN_LPE, "LPE"},
|
|
|
|
{FC_SBCCS_LINK_CTL_FN_LPR, "LPR"},
|
|
|
|
{FC_SBCCS_LINK_CTL_FN_TIR, "TIR"},
|
|
|
|
{FC_SBCCS_LINK_CTL_FN_LRJ, "LRJ"},
|
|
|
|
{FC_SBCCS_LINK_CTL_FN_LBY, "LBY"},
|
2003-10-30 02:06:13 +00:00
|
|
|
{FC_SBCCS_LINK_CTL_FN_LACK, "LACK"},
|
|
|
|
{0, NULL},
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string fc_sbccs_dib_lpr_errcode_val[] = {
|
|
|
|
{0x0, "Response to RLP"},
|
|
|
|
{0x1, "Optional Features Conflict"},
|
|
|
|
{0x2, "Out of Resources"},
|
|
|
|
{0x3, "Device Init In Progress"},
|
|
|
|
{0x4, "No CU Image"},
|
|
|
|
{0x0, NULL},
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string fc_sbccs_dib_lrj_errcode_val[] = {
|
|
|
|
{0x6, "Logical Path Not Estd"},
|
|
|
|
{0x9, "Protocol Error"},
|
|
|
|
{0x0, NULL},
|
|
|
|
};
|
|
|
|
|
2005-10-10 08:36:24 +00:00
|
|
|
static void
|
|
|
|
dissect_iui_flags (proto_tree *parent_tree, tvbuff_t *tvb, int offset, guint16 flags)
|
|
|
|
{
|
2012-05-03 19:31:03 +00:00
|
|
|
proto_item *item = NULL;
|
|
|
|
proto_tree *tree = NULL;
|
|
|
|
|
|
|
|
if (parent_tree) {
|
|
|
|
item=proto_tree_add_uint(parent_tree, hf_sbccs_iui,
|
|
|
|
tvb, offset, 1, flags);
|
|
|
|
tree=proto_item_add_subtree(item, ett_sbccs_iui);
|
|
|
|
}
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_iui_as, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x10) {
|
|
|
|
proto_item_append_text(item, " AS");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x10 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_iui_es, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x08) {
|
|
|
|
proto_item_append_text(item, " ES");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x08 ));
|
|
|
|
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_iui_val, tvb, offset, 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_item_append_text(item, "%s", val_to_str (flags & 0x7, fc_sbccs_iu_val, "0x%x"));
|
2013-07-15 18:06:08 +00:00
|
|
|
/*flags &= (~( 0x07 ));*/
|
2003-10-30 02:06:13 +00:00
|
|
|
}
|
|
|
|
|
2005-10-25 10:38:36 +00:00
|
|
|
static void
|
|
|
|
dissect_linkctlinfo (proto_tree *parent_tree, tvbuff_t *tvb, int offset, guint16 flags)
|
|
|
|
{
|
2012-05-03 19:31:03 +00:00
|
|
|
proto_item *item = NULL;
|
|
|
|
proto_tree *tree = NULL;
|
|
|
|
|
|
|
|
if (parent_tree) {
|
|
|
|
item=proto_tree_add_uint(parent_tree, hf_sbccs_dib_linkctlinfo,
|
|
|
|
tvb, offset, 2, flags);
|
|
|
|
tree=proto_item_add_subtree(item, ett_sbccs_dib_linkctlinfo);
|
|
|
|
}
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_linkctlinfo_ctcconn, tvb, offset, 2, flags);
|
|
|
|
if (flags & 0x80) {
|
|
|
|
proto_item_append_text(item, " CTC Conn");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x80 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_linkctlinfo_ecrcg, tvb, offset, 2, flags);
|
|
|
|
if (flags & 0x01) {
|
|
|
|
proto_item_append_text(item, " Enhanced CRC Gen");
|
|
|
|
}
|
2013-07-15 18:06:08 +00:00
|
|
|
/*flags &= (~( 0x01 ));*/
|
2005-10-25 10:38:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-10-10 09:12:33 +00:00
|
|
|
static void
|
|
|
|
dissect_dh_flags (proto_tree *parent_tree, tvbuff_t *tvb, int offset, guint16 flags)
|
|
|
|
{
|
2012-05-03 19:31:03 +00:00
|
|
|
proto_item *item = NULL;
|
|
|
|
proto_tree *tree = NULL;
|
|
|
|
|
|
|
|
if (parent_tree) {
|
|
|
|
item=proto_tree_add_uint(parent_tree, hf_sbccs_dhflags,
|
|
|
|
tvb, offset, 1, flags);
|
|
|
|
tree=proto_item_add_subtree(item, ett_sbccs_dhflags);
|
|
|
|
}
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dhflags_end, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x80) {
|
|
|
|
proto_item_append_text(item, " End");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x80 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dhflags_chaining, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x10) {
|
|
|
|
proto_item_append_text(item, " Chaining");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x10 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dhflags_earlyend, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x08) {
|
|
|
|
proto_item_append_text(item, " Early End");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x08 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dhflags_nocrc, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x04) {
|
|
|
|
proto_item_append_text(item, " No CRC");
|
|
|
|
}
|
2013-07-15 18:06:08 +00:00
|
|
|
/*flags &= (~( 0x04 ));*/
|
2003-10-30 02:06:13 +00:00
|
|
|
}
|
|
|
|
|
2005-10-10 10:12:16 +00:00
|
|
|
|
|
|
|
static void
|
|
|
|
dissect_ccw_flags (proto_tree *parent_tree, tvbuff_t *tvb, int offset, guint8 flags)
|
2003-10-30 02:06:13 +00:00
|
|
|
{
|
2012-05-03 19:31:03 +00:00
|
|
|
proto_item *item = NULL;
|
|
|
|
proto_tree *tree = NULL;
|
|
|
|
|
|
|
|
if (parent_tree) {
|
|
|
|
item=proto_tree_add_uint(parent_tree, hf_sbccs_dib_ccw_flags,
|
|
|
|
tvb, offset, 1, flags);
|
|
|
|
tree=proto_item_add_subtree(item, ett_sbccs_dib_ccw_flags);
|
|
|
|
}
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_ccw_flags_cd, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x80) {
|
|
|
|
proto_item_append_text(item, " CD");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x80 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_ccw_flags_cc, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x40) {
|
|
|
|
proto_item_append_text(item, " CC");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x40 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_ccw_flags_sli, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x20) {
|
|
|
|
proto_item_append_text(item, " SLI");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x20 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_ccw_flags_crr, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x08) {
|
|
|
|
proto_item_append_text(item, " CRR");
|
|
|
|
}
|
2013-07-15 18:06:08 +00:00
|
|
|
/*flags &= (~( 0x08 ));*/
|
2003-10-30 02:06:13 +00:00
|
|
|
}
|
|
|
|
|
2005-10-11 09:26:50 +00:00
|
|
|
|
|
|
|
static void
|
|
|
|
dissect_cmd_flags (proto_tree *parent_tree, tvbuff_t *tvb, int offset, guint8 flags)
|
2003-10-30 02:06:13 +00:00
|
|
|
{
|
2012-05-03 19:31:03 +00:00
|
|
|
proto_item *item = NULL;
|
|
|
|
proto_tree *tree = NULL;
|
|
|
|
|
|
|
|
if (parent_tree) {
|
|
|
|
item=proto_tree_add_uint(parent_tree, hf_sbccs_dib_cmdflags,
|
|
|
|
tvb, offset, 1, flags);
|
|
|
|
tree=proto_item_add_subtree(item, ett_sbccs_dib_cmdflags);
|
|
|
|
}
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_cmdflags_du, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x10) {
|
|
|
|
proto_item_append_text(item, " DU");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x10 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_cmdflags_coc, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x08) {
|
|
|
|
proto_item_append_text(item, " COC");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x08 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_cmdflags_syr, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x04) {
|
|
|
|
proto_item_append_text(item, " SYR");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x04 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_cmdflags_rex, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x02) {
|
|
|
|
proto_item_append_text(item, " REX");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x02 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_cmdflags_sss, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x01) {
|
|
|
|
proto_item_append_text(item, " SSS");
|
|
|
|
}
|
2013-07-15 18:06:08 +00:00
|
|
|
/*flags &= (~( 0x01 ));*/
|
2005-10-11 09:26:50 +00:00
|
|
|
}
|
2003-10-30 02:06:13 +00:00
|
|
|
|
2005-10-11 09:26:50 +00:00
|
|
|
static const value_string status_ffc_val[] = {
|
2012-05-03 19:31:03 +00:00
|
|
|
{ 0, "" },
|
|
|
|
{ 1, "FFC:Queuing Information Valid" },
|
|
|
|
{ 2, "FFC:Resetting Event" },
|
|
|
|
{ 0, NULL }
|
2005-10-11 09:26:50 +00:00
|
|
|
};
|
2003-10-30 02:06:13 +00:00
|
|
|
|
|
|
|
|
2005-10-11 09:26:50 +00:00
|
|
|
static void
|
|
|
|
dissect_status_flags (proto_tree *parent_tree, tvbuff_t *tvb, int offset, guint8 flags)
|
2003-10-30 02:06:13 +00:00
|
|
|
{
|
2012-05-03 19:31:03 +00:00
|
|
|
proto_item *item = NULL;
|
|
|
|
proto_tree *tree = NULL;
|
|
|
|
|
|
|
|
if (parent_tree) {
|
|
|
|
item=proto_tree_add_uint(parent_tree, hf_sbccs_dib_statusflags,
|
|
|
|
tvb, offset, 1, flags);
|
|
|
|
tree=proto_item_add_subtree(item, ett_sbccs_dib_statusflags);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_statusflags_ffc, tvb, offset, 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_item_append_text(item, "%s", val_to_str ((flags>>5) & 0x07, status_ffc_val, "Reserved:0x%x"));
|
|
|
|
flags &= (~( 0xE0 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_statusflags_ci, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x10) {
|
|
|
|
proto_item_append_text(item, " CI");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x10 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_statusflags_cr, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x04) {
|
|
|
|
proto_item_append_text(item, " CR");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x04 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_statusflags_lri, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x02) {
|
|
|
|
proto_item_append_text(item, " LRI");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x02 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_statusflags_rv, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x01) {
|
|
|
|
proto_item_append_text(item, " RV");
|
|
|
|
}
|
2013-07-15 18:06:08 +00:00
|
|
|
/*flags &= (~( 0x01 ));*/
|
2003-10-30 02:06:13 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-10-11 09:26:50 +00:00
|
|
|
static void
|
|
|
|
dissect_status (packet_info *pinfo, proto_tree *parent_tree, tvbuff_t *tvb, int offset, guint8 flags)
|
|
|
|
{
|
2012-05-03 19:31:03 +00:00
|
|
|
proto_item *item = NULL;
|
|
|
|
proto_tree *tree = NULL;
|
|
|
|
|
|
|
|
if (parent_tree) {
|
|
|
|
item=proto_tree_add_uint(parent_tree, hf_sbccs_dib_status,
|
|
|
|
tvb, offset, 1, flags);
|
|
|
|
tree=proto_item_add_subtree(item, ett_sbccs_dib_status);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_status_attention, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x80) {
|
|
|
|
proto_item_append_text(item, " Attention");
|
|
|
|
col_append_str(pinfo->cinfo, COL_INFO, " Attention");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x80 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_status_modifier, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x40) {
|
|
|
|
proto_item_append_text(item, " Status Modifier");
|
|
|
|
col_append_str(pinfo->cinfo, COL_INFO, " Status Modifier");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x40 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_status_cue, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x20) {
|
|
|
|
proto_item_append_text(item, " Control-Unit End");
|
|
|
|
col_append_str(pinfo->cinfo, COL_INFO, " Control-Unit End");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x20 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_status_busy, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x10) {
|
|
|
|
proto_item_append_text(item, " Busy");
|
|
|
|
col_append_str(pinfo->cinfo, COL_INFO, " Busy");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x10 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_status_channelend, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x08) {
|
|
|
|
proto_item_append_text(item, " Channel End");
|
|
|
|
col_append_str(pinfo->cinfo, COL_INFO, " Channel End");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x08 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_status_deviceend, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x04) {
|
|
|
|
proto_item_append_text(item, " Device End");
|
|
|
|
col_append_str(pinfo->cinfo, COL_INFO, " Device End");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x04 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_status_unit_check, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x02) {
|
|
|
|
proto_item_append_text(item, " Unit Check");
|
|
|
|
col_append_str(pinfo->cinfo, COL_INFO, " Unit Check");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x02 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_status_unit_exception, tvb, offset, 1, flags);
|
|
|
|
if (flags & 0x01) {
|
|
|
|
proto_item_append_text(item, " Unit Exception");
|
|
|
|
col_append_str(pinfo->cinfo, COL_INFO, " Unit Exception");
|
|
|
|
}
|
2013-07-15 18:06:08 +00:00
|
|
|
/*flags &= (~( 0x01 ));*/
|
2003-10-30 02:06:13 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2005-10-25 10:24:40 +00:00
|
|
|
|
|
|
|
static void
|
|
|
|
dissect_sel_rst_param (proto_tree *parent_tree, tvbuff_t *tvb, int offset, guint32 flags)
|
2003-10-30 02:06:13 +00:00
|
|
|
{
|
2012-05-03 19:31:03 +00:00
|
|
|
proto_item *item = NULL;
|
|
|
|
proto_tree *tree = NULL;
|
|
|
|
|
|
|
|
if (parent_tree) {
|
|
|
|
item=proto_tree_add_uint(parent_tree, hf_sbccs_dib_ctlparam,
|
|
|
|
tvb, offset, 3, flags);
|
|
|
|
tree=proto_item_add_subtree(item, ett_sbccs_dib_ctlparam);
|
|
|
|
}
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_ctlparam_rc, tvb, offset, 3, flags);
|
|
|
|
if (flags & 0x80) {
|
|
|
|
proto_item_append_text(item, " RC");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x80 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_ctlparam_ru, tvb, offset, 3, flags);
|
|
|
|
if (flags & 0x10) {
|
|
|
|
proto_item_append_text(item, " RU");
|
|
|
|
}
|
|
|
|
flags &= (~( 0x10 ));
|
|
|
|
|
|
|
|
proto_tree_add_boolean(tree, hf_sbccs_dib_ctlparam_ro, tvb, offset, 3, flags);
|
|
|
|
if (flags & 0x08) {
|
|
|
|
proto_item_append_text(item, " RO");
|
|
|
|
}
|
2013-07-15 18:06:08 +00:00
|
|
|
/*flags &= (~( 0x08 ));*/
|
2003-10-30 02:06:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void get_fc_sbccs_conv_data (tvbuff_t *tvb, guint offset,
|
|
|
|
guint16 *ch_cu_id, guint16 *dev_addr,
|
|
|
|
guint16 *ccw)
|
|
|
|
{
|
2012-05-03 19:31:03 +00:00
|
|
|
*ch_cu_id = *dev_addr = *ccw = 0;
|
2003-10-30 02:06:13 +00:00
|
|
|
|
2012-05-03 19:31:03 +00:00
|
|
|
*ch_cu_id = (tvb_get_guint8 (tvb, offset+1)) << 8;
|
2003-10-30 02:06:13 +00:00
|
|
|
*ch_cu_id |= tvb_get_guint8 (tvb, offset+3);
|
2012-05-03 19:31:03 +00:00
|
|
|
*dev_addr = tvb_get_ntohs (tvb, offset+4);
|
|
|
|
*ccw = tvb_get_ntohs (tvb, offset+10);
|
2003-10-30 02:06:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Decode both the SB-3 and basic IU header */
|
|
|
|
static void
|
|
|
|
dissect_fc_sbccs_sb3_iu_hdr (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
|
|
|
|
guint offset)
|
|
|
|
{
|
|
|
|
proto_item *subti;
|
|
|
|
proto_tree *sb3hdr_tree;
|
|
|
|
proto_tree *iuhdr_tree;
|
2012-05-03 19:31:03 +00:00
|
|
|
guint8 iui, dhflags;
|
|
|
|
guint type;
|
2011-09-21 23:42:55 +00:00
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
/* Decode the basic SB3 and IU header and determine type of frame */
|
|
|
|
type = get_fc_sbccs_iu_type (tvb, offset);
|
|
|
|
|
2013-06-14 01:02:11 +00:00
|
|
|
col_add_str (pinfo->cinfo, COL_INFO, val_to_str (type, fc_sbccs_iu_val,
|
2003-10-30 02:06:13 +00:00
|
|
|
"0x%x"));
|
2011-09-21 23:42:55 +00:00
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
if (tree) {
|
|
|
|
/* Dissect SB3 header first */
|
|
|
|
subti = proto_tree_add_text (tree, tvb, offset, FC_SBCCS_SB3_HDR_SIZE,
|
|
|
|
"SB-3 Header");
|
|
|
|
sb3hdr_tree = proto_item_add_subtree (subti, ett_fc_sbccs);
|
|
|
|
|
2011-10-06 03:35:44 +00:00
|
|
|
proto_tree_add_item (sb3hdr_tree, hf_sbccs_chid, tvb, offset+1, 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item (sb3hdr_tree, hf_sbccs_cuid, tvb, offset+3, 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item (sb3hdr_tree, hf_sbccs_devaddr, tvb, offset+4, 2, ENC_BIG_ENDIAN);
|
2003-10-30 02:06:13 +00:00
|
|
|
|
|
|
|
/* Dissect IU Header */
|
|
|
|
subti = proto_tree_add_text (tree, tvb, offset + FC_SBCCS_SB3_HDR_SIZE,
|
|
|
|
FC_SBCCS_IU_HDR_SIZE, "IU Header");
|
|
|
|
iuhdr_tree = proto_item_add_subtree (subti, ett_fc_sbccs);
|
|
|
|
offset += FC_SBCCS_SB3_HDR_SIZE;
|
|
|
|
|
|
|
|
iui = tvb_get_guint8 (tvb, offset);
|
2012-05-03 19:31:03 +00:00
|
|
|
dissect_iui_flags(iuhdr_tree, tvb, offset, iui);
|
2005-10-10 08:36:24 +00:00
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
dhflags = tvb_get_guint8 (tvb, offset+1);
|
2012-05-03 19:31:03 +00:00
|
|
|
dissect_dh_flags(iuhdr_tree, tvb, offset+1, dhflags);
|
2011-09-21 23:42:55 +00:00
|
|
|
|
2011-10-06 03:35:44 +00:00
|
|
|
proto_tree_add_item (iuhdr_tree, hf_sbccs_ccw, tvb, offset+2, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item (iuhdr_tree, hf_sbccs_token, tvb, offset+5, 3, ENC_BIG_ENDIAN);
|
2003-10-30 02:06:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void dissect_fc_sbccs_dib_data_hdr (tvbuff_t *tvb,
|
|
|
|
packet_info *pinfo _U_,
|
|
|
|
proto_tree *tree, guint offset)
|
|
|
|
{
|
|
|
|
if (tree) {
|
2011-10-06 03:35:44 +00:00
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_iucnt, tvb, offset+9, 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_datacnt, tvb, offset+10, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_lrc, tvb, offset+12, 4, ENC_BIG_ENDIAN);
|
2003-10-30 02:06:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void dissect_fc_sbccs_dib_cmd_hdr (tvbuff_t *tvb, packet_info *pinfo,
|
|
|
|
proto_tree *tree, guint offset)
|
|
|
|
{
|
|
|
|
guint8 flags;
|
|
|
|
|
2013-06-14 01:02:11 +00:00
|
|
|
col_append_fstr (pinfo->cinfo, COL_INFO,
|
2003-10-30 02:06:13 +00:00
|
|
|
": %s", val_to_str (tvb_get_guint8 (tvb, offset),
|
|
|
|
fc_sbccs_dib_cmd_val,
|
|
|
|
"0x%x"));
|
2011-09-21 23:42:55 +00:00
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
if (tree) {
|
2011-10-06 03:35:44 +00:00
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_ccw_cmd, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2003-10-30 02:06:13 +00:00
|
|
|
|
|
|
|
flags = tvb_get_guint8 (tvb, offset+1);
|
2012-05-03 19:31:03 +00:00
|
|
|
dissect_ccw_flags(tree, tvb, offset+1, flags);
|
2005-10-10 10:12:16 +00:00
|
|
|
|
2011-10-06 03:35:44 +00:00
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_ccw_cnt, tvb, offset+2, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_ioprio, tvb, offset+5, 1, ENC_BIG_ENDIAN);
|
2003-10-30 02:06:13 +00:00
|
|
|
|
|
|
|
flags = tvb_get_guint8 (tvb, offset+7);
|
2012-05-03 19:31:03 +00:00
|
|
|
dissect_cmd_flags(tree, tvb, offset+7, flags);
|
2005-10-11 09:26:50 +00:00
|
|
|
|
2011-10-06 03:35:44 +00:00
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_iucnt, tvb, offset+9, 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_datacnt, tvb, offset+10, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_lrc, tvb, offset+12, 4, ENC_BIG_ENDIAN);
|
2003-10-30 02:06:13 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void dissect_fc_sbccs_dib_status_hdr (tvbuff_t *tvb, packet_info *pinfo,
|
|
|
|
proto_tree *tree, guint offset)
|
|
|
|
{
|
2012-05-03 19:31:03 +00:00
|
|
|
guint8 flags;
|
|
|
|
gboolean rv_valid, qparam_valid;
|
2003-10-30 02:06:13 +00:00
|
|
|
tvbuff_t *next_tvb;
|
2012-05-03 19:31:03 +00:00
|
|
|
guint16 supp_status_cnt = 0;
|
2003-10-30 02:06:13 +00:00
|
|
|
|
|
|
|
if (tree) {
|
|
|
|
flags = tvb_get_guint8 (tvb, offset);
|
|
|
|
rv_valid = flags & 0x1; /* if residual count is valid */
|
2005-10-11 09:26:50 +00:00
|
|
|
qparam_valid = (((flags & 0xE0) >> 5) == 0x1); /* From the FFC field */
|
2012-05-03 19:31:03 +00:00
|
|
|
dissect_status_flags(tree, tvb, offset, flags);
|
2011-09-21 23:42:55 +00:00
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
flags = tvb_get_guint8 (tvb, offset+1);
|
2012-05-03 19:31:03 +00:00
|
|
|
dissect_status(pinfo, tree, tvb, offset+1, flags);
|
2005-10-11 09:26:50 +00:00
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
if (rv_valid) {
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_residualcnt, tvb, offset+2,
|
2011-10-06 03:35:44 +00:00
|
|
|
2, ENC_BIG_ENDIAN);
|
2003-10-30 02:06:13 +00:00
|
|
|
}
|
|
|
|
else {
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_iupacing, tvb, offset+3,
|
2011-10-06 03:35:44 +00:00
|
|
|
1, ENC_BIG_ENDIAN);
|
2003-10-30 02:06:13 +00:00
|
|
|
}
|
2011-09-21 23:42:55 +00:00
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
if (qparam_valid) {
|
2011-10-06 03:35:44 +00:00
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_qtuf, tvb, offset+4, 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_qtu, tvb, offset+4, 2, ENC_BIG_ENDIAN);
|
2003-10-30 02:06:13 +00:00
|
|
|
}
|
|
|
|
|
2011-10-06 03:35:44 +00:00
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_dtuf, tvb, offset+6, 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_dtu, tvb, offset+6, 2, ENC_BIG_ENDIAN);
|
2003-10-30 02:06:13 +00:00
|
|
|
|
2011-10-06 03:35:44 +00:00
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_iucnt, tvb, offset+9, 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_datacnt, tvb, offset+10, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_lrc, tvb, offset+12, 4, ENC_BIG_ENDIAN);
|
2013-10-31 14:12:53 +00:00
|
|
|
}
|
2003-10-30 02:06:13 +00:00
|
|
|
|
2013-10-31 14:12:53 +00:00
|
|
|
supp_status_cnt = tvb_get_ntohs (tvb, offset+10);
|
|
|
|
|
|
|
|
if (supp_status_cnt) {
|
|
|
|
next_tvb = tvb_new_subset_remaining (tvb, offset+FC_SBCCS_DIB_LRC_HDR_SIZE);
|
|
|
|
call_dissector (data_handle, next_tvb, pinfo, tree);
|
2003-10-30 02:06:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void dissect_fc_sbccs_dib_ctl_hdr (tvbuff_t *tvb, packet_info *pinfo,
|
|
|
|
proto_tree *tree, guint offset)
|
|
|
|
{
|
2003-12-18 00:28:39 +00:00
|
|
|
guint8 ctlfn;
|
2003-10-30 02:06:13 +00:00
|
|
|
|
|
|
|
ctlfn = tvb_get_guint8 (tvb, offset);
|
2013-06-14 01:02:11 +00:00
|
|
|
col_append_fstr (pinfo->cinfo, COL_INFO,
|
2003-10-30 02:06:13 +00:00
|
|
|
": %s",
|
2011-09-21 23:42:55 +00:00
|
|
|
val_to_str (ctlfn,
|
2003-10-30 02:06:13 +00:00
|
|
|
fc_sbccs_dib_ctl_fn_val,
|
|
|
|
"0x%x"));
|
2013-06-14 01:02:11 +00:00
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
if (tree) {
|
2011-10-06 03:35:44 +00:00
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_ctlfn, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2003-10-30 02:06:13 +00:00
|
|
|
|
|
|
|
/* Control Function Parameter is to be interpreted in some cases */
|
|
|
|
switch (ctlfn) {
|
|
|
|
case FC_SBCCS_CTL_FN_SEL_RST:
|
2005-10-25 10:24:40 +00:00
|
|
|
dissect_sel_rst_param(tree, tvb, offset+1, tvb_get_ntoh24 (tvb, offset+1));
|
2003-10-30 02:06:13 +00:00
|
|
|
break;
|
|
|
|
case FC_SBCCS_CTL_FN_DEV_XCP:
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_dev_xcp_code, tvb, offset+1,
|
2011-10-06 03:35:44 +00:00
|
|
|
1, ENC_BIG_ENDIAN);
|
2003-10-30 02:06:13 +00:00
|
|
|
break;
|
|
|
|
case FC_SBCCS_CTL_FN_PRG_PTH:
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_prg_pth_errcode, tvb, offset+1,
|
2011-10-06 03:35:44 +00:00
|
|
|
1, ENC_BIG_ENDIAN);
|
2003-10-30 02:06:13 +00:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_ctlparam, tvb, offset+1,
|
2011-10-06 03:35:44 +00:00
|
|
|
3, ENC_BIG_ENDIAN);
|
2003-10-30 02:06:13 +00:00
|
|
|
break;
|
|
|
|
}
|
2011-09-21 23:42:55 +00:00
|
|
|
|
2011-10-06 03:35:44 +00:00
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_iucnt, tvb, offset+9, 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_datacnt, tvb, offset+10, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_lrc, tvb, offset+12, 4, ENC_BIG_ENDIAN);
|
2003-10-30 02:06:13 +00:00
|
|
|
|
|
|
|
if (ctlfn == FC_SBCCS_CTL_FN_PRG_RSP) {
|
|
|
|
/* Need to decode the LESBs */
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_prg_rsp_errcode, tvb, offset+60,
|
2011-10-06 03:35:44 +00:00
|
|
|
1, ENC_BIG_ENDIAN);
|
2003-10-30 02:06:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void dissect_fc_sbccs_dib_link_hdr (tvbuff_t *tvb, packet_info *pinfo,
|
|
|
|
proto_tree *tree, guint offset)
|
|
|
|
{
|
2012-05-03 19:31:03 +00:00
|
|
|
guint8 link_ctl;
|
2003-10-30 02:06:13 +00:00
|
|
|
guint16 ctl_info;
|
2012-05-03 19:31:03 +00:00
|
|
|
guint link_payload_len, i;
|
2003-10-30 02:06:13 +00:00
|
|
|
|
2013-06-14 01:02:11 +00:00
|
|
|
col_append_fstr (pinfo->cinfo, COL_INFO,
|
2003-10-30 02:06:13 +00:00
|
|
|
": %s",
|
|
|
|
val_to_str (tvb_get_guint8 (tvb, offset+1),
|
|
|
|
fc_sbccs_dib_link_ctl_fn_val,
|
|
|
|
"0x%x"));
|
|
|
|
|
|
|
|
if (tree) {
|
|
|
|
link_ctl = tvb_get_guint8 (tvb, offset+1);
|
2011-10-06 03:35:44 +00:00
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_linkctlfn, tvb, offset+1, 1, ENC_BIG_ENDIAN);
|
2003-10-30 02:06:13 +00:00
|
|
|
|
|
|
|
ctl_info = tvb_get_ntohs (tvb, offset+2);
|
|
|
|
switch (link_ctl) {
|
|
|
|
case FC_SBCCS_LINK_CTL_FN_ELP:
|
|
|
|
case FC_SBCCS_LINK_CTL_FN_LPE:
|
2005-10-25 10:38:36 +00:00
|
|
|
dissect_linkctlinfo(tree, tvb, offset+2, ctl_info);
|
2003-10-30 02:06:13 +00:00
|
|
|
break;
|
|
|
|
case FC_SBCCS_LINK_CTL_FN_LPR:
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_lprcode, tvb, offset+2, 1,
|
2011-10-06 03:35:44 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2003-10-30 02:06:13 +00:00
|
|
|
break;
|
|
|
|
case FC_SBCCS_LINK_CTL_FN_TIN:
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_tin_imgid_cnt, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset+3, 1, ENC_BIG_ENDIAN);
|
2003-10-30 02:06:13 +00:00
|
|
|
break;
|
|
|
|
case FC_SBCCS_LINK_CTL_FN_TIR:
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_tin_imgid_cnt, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset+3, 1, ENC_BIG_ENDIAN);
|
2003-10-30 02:06:13 +00:00
|
|
|
break;
|
|
|
|
case FC_SBCCS_LINK_CTL_FN_LRJ:
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_lrjcode, tvb, offset+2,
|
2011-10-06 03:35:44 +00:00
|
|
|
1, ENC_BIG_ENDIAN);
|
2003-10-30 02:06:13 +00:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
/* Do Nothing */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2011-10-06 03:35:44 +00:00
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_ctccntr, tvb, offset+4, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_iucnt, tvb, offset+9, 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_dib_datacnt, tvb, offset+10, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item (tree, hf_sbccs_lrc, tvb, offset+12, 4, ENC_BIG_ENDIAN);
|
2003-10-30 02:06:13 +00:00
|
|
|
|
|
|
|
if (link_ctl == FC_SBCCS_LINK_CTL_FN_TIR) {
|
|
|
|
link_payload_len = tvb_get_ntohs (tvb, offset+10);
|
|
|
|
i = 0;
|
|
|
|
offset += 16;
|
2011-09-21 23:42:55 +00:00
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
while (i < link_payload_len) {
|
|
|
|
proto_tree_add_text (tree, tvb, offset, 4,
|
2004-12-30 23:47:52 +00:00
|
|
|
"Logical Paths %d-%d: %s",
|
|
|
|
i*8, ((i+4)*8) - 1,
|
2013-12-19 15:49:09 +00:00
|
|
|
tvb_bytes_to_ep_str_punct (tvb, offset, 4, ':'));
|
2003-10-30 02:06:13 +00:00
|
|
|
i += 4;
|
|
|
|
offset += 4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void dissect_fc_sbccs (tvbuff_t *tvb, packet_info *pinfo,
|
|
|
|
proto_tree *tree)
|
|
|
|
{
|
2012-05-03 19:31:03 +00:00
|
|
|
guint8 type;
|
|
|
|
guint16 ch_cu_id, dev_addr, ccw;
|
|
|
|
guint offset = 0;
|
|
|
|
proto_item *ti;
|
|
|
|
proto_tree *sb3_tree = NULL;
|
|
|
|
proto_tree *dib_tree = NULL;
|
|
|
|
tvbuff_t *next_tvb;
|
2003-10-30 02:06:13 +00:00
|
|
|
conversation_t *conversation;
|
2013-10-31 14:12:53 +00:00
|
|
|
#if 0
|
2012-05-03 19:31:03 +00:00
|
|
|
sb3_task_id_t task_key;
|
2013-10-31 14:12:53 +00:00
|
|
|
#endif
|
2011-09-21 23:42:55 +00:00
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
/* Make entries in Protocol column and Info column on summary display */
|
2009-08-09 06:26:46 +00:00
|
|
|
col_set_str(pinfo->cinfo, COL_PROTOCOL, "FC-SB3");
|
2003-10-30 02:06:13 +00:00
|
|
|
|
|
|
|
/* Decode the basic SB3 and IU header and determine type of frame */
|
|
|
|
type = get_fc_sbccs_iu_type (tvb, offset);
|
|
|
|
get_fc_sbccs_conv_data (tvb, offset, &ch_cu_id, &dev_addr, &ccw);
|
|
|
|
|
2013-06-14 01:02:11 +00:00
|
|
|
col_add_str (pinfo->cinfo, COL_INFO, val_to_str (type, fc_sbccs_iu_val,
|
2003-10-30 02:06:13 +00:00
|
|
|
"0x%x"));
|
2011-09-21 23:42:55 +00:00
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
/* Retrieve conversation state to determine expected payload */
|
2005-02-02 20:07:03 +00:00
|
|
|
conversation = find_conversation (pinfo->fd->num, &pinfo->src, &pinfo->dst,
|
2003-10-30 02:06:13 +00:00
|
|
|
PT_SBCCS, ch_cu_id, dev_addr, 0);
|
2011-09-21 23:42:55 +00:00
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
if (conversation) {
|
2013-10-31 14:12:53 +00:00
|
|
|
#if 0
|
2003-10-30 02:06:13 +00:00
|
|
|
task_key.conv_id = conversation->index;
|
|
|
|
task_key.task_id = ccw;
|
2013-10-31 14:12:53 +00:00
|
|
|
#endif
|
2003-10-30 02:06:13 +00:00
|
|
|
}
|
2011-09-21 23:42:55 +00:00
|
|
|
else if ((type == FC_SBCCS_IU_CMD_HDR) ||
|
2003-10-30 02:06:13 +00:00
|
|
|
(type != FC_SBCCS_IU_CMD_DATA)) {
|
2013-12-23 20:12:51 +00:00
|
|
|
#if 0
|
|
|
|
conversation =
|
|
|
|
#endif
|
|
|
|
conversation_new (pinfo->fd->num, &pinfo->src, &pinfo->dst,
|
2003-10-30 02:06:13 +00:00
|
|
|
PT_SBCCS, ch_cu_id, dev_addr, 0);
|
2013-10-31 14:12:53 +00:00
|
|
|
#if 0
|
2003-10-30 02:06:13 +00:00
|
|
|
task_key.conv_id = conversation->index;
|
|
|
|
task_key.task_id = ccw;
|
2013-10-31 14:12:53 +00:00
|
|
|
#endif
|
2003-10-30 02:06:13 +00:00
|
|
|
}
|
2011-09-21 23:42:55 +00:00
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
if (tree) {
|
|
|
|
ti = proto_tree_add_protocol_format (tree, proto_fc_sbccs, tvb, 0, -1,
|
|
|
|
"FC-SB3");
|
|
|
|
sb3_tree = proto_item_add_subtree (ti, ett_fc_sbccs);
|
|
|
|
|
|
|
|
dissect_fc_sbccs_sb3_iu_hdr (tvb, pinfo, sb3_tree, offset);
|
|
|
|
offset += (FC_SBCCS_SB3_HDR_SIZE + FC_SBCCS_IU_HDR_SIZE);
|
|
|
|
|
|
|
|
ti = proto_tree_add_text (sb3_tree, tvb, offset,
|
|
|
|
FC_SBCCS_DIB_LRC_HDR_SIZE, "DIB Header");
|
|
|
|
dib_tree = proto_item_add_subtree (ti, ett_fc_sbccs);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
offset += (FC_SBCCS_SB3_HDR_SIZE + FC_SBCCS_IU_HDR_SIZE);
|
|
|
|
}
|
2011-09-21 23:42:55 +00:00
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
switch (type) {
|
|
|
|
case FC_SBCCS_IU_DATA:
|
|
|
|
dissect_fc_sbccs_dib_data_hdr (tvb, pinfo, dib_tree, offset);
|
|
|
|
break;
|
|
|
|
case FC_SBCCS_IU_CMD_HDR:
|
|
|
|
case FC_SBCCS_IU_CMD_DATA:
|
|
|
|
dissect_fc_sbccs_dib_cmd_hdr (tvb, pinfo, dib_tree, offset);
|
|
|
|
break;
|
|
|
|
case FC_SBCCS_IU_STATUS:
|
|
|
|
dissect_fc_sbccs_dib_status_hdr (tvb, pinfo, dib_tree, offset);
|
|
|
|
break;
|
|
|
|
case FC_SBCCS_IU_CTL:
|
|
|
|
dissect_fc_sbccs_dib_ctl_hdr (tvb, pinfo, dib_tree, offset);
|
|
|
|
break;
|
|
|
|
case FC_SBCCS_IU_CMD_LINK_CTL:
|
|
|
|
dissect_fc_sbccs_dib_link_hdr (tvb, pinfo, dib_tree, offset);
|
|
|
|
break;
|
|
|
|
default:
|
2009-08-16 12:36:22 +00:00
|
|
|
next_tvb = tvb_new_subset_remaining (tvb, offset);
|
2003-10-30 02:06:13 +00:00
|
|
|
call_dissector (data_handle, next_tvb, pinfo, dib_tree);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ((get_fc_sbccs_iu_type (tvb, 0) != FC_SBCCS_IU_CTL) &&
|
|
|
|
(get_fc_sbccs_iu_type (tvb, 0) != FC_SBCCS_IU_CMD_LINK_CTL)) {
|
2009-08-16 12:36:22 +00:00
|
|
|
next_tvb = tvb_new_subset_remaining (tvb, offset+FC_SBCCS_DIB_LRC_HDR_SIZE);
|
2003-10-30 02:06:13 +00:00
|
|
|
call_dissector (data_handle, next_tvb, pinfo, tree);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2006-05-21 04:49:01 +00:00
|
|
|
/* Register the protocol with Wireshark */
|
2003-10-30 02:06:13 +00:00
|
|
|
|
|
|
|
/* this format is required because a script is used to build the C function
|
|
|
|
that calls all the protocol registration.
|
|
|
|
*/
|
|
|
|
|
|
|
|
void
|
|
|
|
proto_register_fcsbccs (void)
|
2011-09-21 23:42:55 +00:00
|
|
|
{
|
2003-10-30 02:06:13 +00:00
|
|
|
/* Setup list of header fields See Section 1.6.1 for details*/
|
|
|
|
static hf_register_info hf[] = {
|
|
|
|
{ &hf_sbccs_chid,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Channel Image ID", "fcsb3.chid",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_cuid,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Control Unit Image ID", "fcsb3.cuid",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_devaddr,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Device Address", "fcsb3.devaddr",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_iui,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Information Unit Identifier", "fcsb3.iui",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_dhflags,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "DH Flags", "fcsb3.dhflags",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_ccw,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "CCW Number", "fcsb3.ccw",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_token,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Token", "fcsb3.token",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT24, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_dib_iucnt,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "DIB IU Count", "fcsb3.iucnt",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_dib_datacnt,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "DIB Data Byte Count", "fcsb3.databytecnt",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_dib_ccw_cmd,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "CCW Command", "fcsb3.ccwcmd",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_HEX, VALS (fc_sbccs_dib_cmd_val), 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_dib_ccw_cnt,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "CCW Count", "fcsb3.ccwcnt",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_dib_ioprio,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "I/O Priority", "fcsb3.ioprio",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_dib_status,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Status", "fcsb3.status",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_dib_residualcnt,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Residual Count", "fcsb3.residualcnt",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_dib_iupacing,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "IU Pacing", "fcsb3.iupacing",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_dib_qtuf,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Queue-Time Unit Factor", "fcsb3.qtuf",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0xF0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_dib_qtu,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Queue-Time Unit", "fcsb3.qtu",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0xFFF,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_dib_dtuf,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Defer-Time Unit Function", "fcsb3.dtuf",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0xF0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_dib_dtu,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Defer-Time Unit", "fcsb3.dtu",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0xFFF,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_dib_ctlfn,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Control Function", "fcsb3.ctlfn",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_HEX, VALS (fc_sbccs_dib_ctl_fn_val), 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_dib_linkctlfn,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Link Control Function", "fcsb3.linkctlfn",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_HEX, VALS (fc_sbccs_dib_link_ctl_fn_val), 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_dib_ctccntr,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "CTC Counter", "fcsb3.ctccntr",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_lrc,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "LRC", "fcsb3.lrc",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_dev_xcp_code,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Device Level Exception Code", "fcsb3.dip.xcpcode",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS (fc_sbccs_dib_dev_xcpcode_val), 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_prg_pth_errcode,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Purge Path Error Code", "fcsb3.purgepathcode",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS (fc_sbccs_dib_purge_path_err_val), 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_prg_rsp_errcode,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Purge Path Response Error Code", "fcsb3.purgepathrspcode",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS (fc_sbccs_dib_purge_path_rsp_err_val), 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_dib_lprcode,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "LPR Reason Code", "fcsb3.lprcode",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS (fc_sbccs_dib_lpr_errcode_val), 0xF,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_dib_tin_imgid_cnt,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "TIN Image ID", "fcsb3.tinimageidcnt",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2003-10-30 02:06:13 +00:00
|
|
|
{ &hf_sbccs_dib_lrjcode,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "LRJ Reaspn Code", "fcsb3.lrjcode",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_HEX, VALS (fc_sbccs_dib_lrj_errcode_val), 0x7F,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-10 08:36:24 +00:00
|
|
|
{ &hf_sbccs_iui_as,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "AS", "fcsb3.iui.as",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x10,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-10 08:36:24 +00:00
|
|
|
{ &hf_sbccs_iui_es,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "ES", "fcsb3.iui.es",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x08,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-10 08:36:24 +00:00
|
|
|
{ &hf_sbccs_iui_val,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Val", "fcsb3.iui.val",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_HEX, VALS(fc_sbccs_iu_val), 0x07,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-10 09:12:33 +00:00
|
|
|
{ &hf_sbccs_dhflags_end,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "End", "fcsb3.dhflags.end",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x80,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-10 09:12:33 +00:00
|
|
|
{ &hf_sbccs_dhflags_chaining,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Chaining", "fcsb3.dhflags.chaining",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x10,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-10 09:12:33 +00:00
|
|
|
{ &hf_sbccs_dhflags_earlyend,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Early End", "fcsb3.dhflags.earlyend",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x08,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-10 09:12:33 +00:00
|
|
|
{ &hf_sbccs_dhflags_nocrc,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "No CRC", "fcsb3.dhflags.nocrc",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x04,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-10 10:12:16 +00:00
|
|
|
{ &hf_sbccs_dib_ccw_flags,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "CCW Control Flags", "fcsb3.ccwflags",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-10 10:12:16 +00:00
|
|
|
{ &hf_sbccs_dib_ccw_flags_cd,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "CD", "fcsb3.ccwflags.cd",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x80,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-10 10:12:16 +00:00
|
|
|
{ &hf_sbccs_dib_ccw_flags_cc,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "CC", "fcsb3.ccwflags.cc",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x40,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-10 10:12:16 +00:00
|
|
|
{ &hf_sbccs_dib_ccw_flags_sli,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "SLI", "fcsb3.ccwflags.sli",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x20,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-10 10:12:16 +00:00
|
|
|
{ &hf_sbccs_dib_ccw_flags_crr,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "CRR", "fcsb3.ccwflags.crr",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x08,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-11 09:26:50 +00:00
|
|
|
{ &hf_sbccs_dib_cmdflags,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Command Flags", "fcsb3.cmdflags",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-11 09:26:50 +00:00
|
|
|
{ &hf_sbccs_dib_cmdflags_du,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "DU", "fcsb3.cmdflags.du",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x10,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-11 09:26:50 +00:00
|
|
|
{ &hf_sbccs_dib_cmdflags_coc,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "COC", "fcsb3.cmdflags.coc",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x08,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-11 09:26:50 +00:00
|
|
|
{ &hf_sbccs_dib_cmdflags_syr,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "SYR", "fcsb3.cmdflags.syr",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x04,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-11 09:26:50 +00:00
|
|
|
{ &hf_sbccs_dib_cmdflags_rex,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "REX", "fcsb3.cmdflags.rex",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x02,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-11 09:26:50 +00:00
|
|
|
{ &hf_sbccs_dib_cmdflags_sss,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "SSS", "fcsb3.cmdflags.sss",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x01,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-11 09:26:50 +00:00
|
|
|
{ &hf_sbccs_dib_statusflags,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Status Flags", "fcsb3.statusflags",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_HEX, NULL, 0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-11 09:26:50 +00:00
|
|
|
{ &hf_sbccs_dib_statusflags_ffc,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "FFC", "fcsb3.statusflags.ffc",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT8, BASE_HEX, VALS(status_ffc_val), 0xE0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-11 09:26:50 +00:00
|
|
|
{ &hf_sbccs_dib_statusflags_ci,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "CI", "fcsb3.statusflags.ci",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x10,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-11 09:26:50 +00:00
|
|
|
{ &hf_sbccs_dib_statusflags_cr,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "CR", "fcsb3.statusflags.cr",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x04,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-11 09:26:50 +00:00
|
|
|
{ &hf_sbccs_dib_statusflags_lri,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "LRI", "fcsb3.statusflags.lri",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x02,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-11 09:26:50 +00:00
|
|
|
{ &hf_sbccs_dib_statusflags_rv,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "RV", "fcsb3.statusflags.rv",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x01,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-11 09:26:50 +00:00
|
|
|
{ &hf_sbccs_dib_status_attention,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Attention", "fcsb3.status.attention",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x80,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-11 09:26:50 +00:00
|
|
|
{ &hf_sbccs_dib_status_modifier,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Status Modifier", "fcsb3.status.modifier",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x40,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-11 09:26:50 +00:00
|
|
|
{ &hf_sbccs_dib_status_cue,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Control-Unit End", "fcsb3.status.cue",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x20,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-11 09:26:50 +00:00
|
|
|
{ &hf_sbccs_dib_status_busy,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Busy", "fcsb3.status.busy",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x10,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-11 09:26:50 +00:00
|
|
|
{ &hf_sbccs_dib_status_channelend,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Channel End", "fcsb3.status.channel_end",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x08,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-11 09:26:50 +00:00
|
|
|
{ &hf_sbccs_dib_status_deviceend,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Device End", "fcsb3.status.device_end",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x04,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-11 09:26:50 +00:00
|
|
|
{ &hf_sbccs_dib_status_unit_check,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Unit Check", "fcsb3.status.unit_check",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x02,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-11 09:26:50 +00:00
|
|
|
{ &hf_sbccs_dib_status_unit_exception,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Unit Exception", "fcsb3.status.unitexception",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x01,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-25 10:24:40 +00:00
|
|
|
{ &hf_sbccs_dib_ctlparam,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Control Parameters", "fcsb3.ctlparam",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT24, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-25 10:24:40 +00:00
|
|
|
{ &hf_sbccs_dib_ctlparam_rc,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "RC", "fcsb3.ctlparam.rc",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 24, TFS(&tfs_set_notset), 0x80,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-25 10:24:40 +00:00
|
|
|
{ &hf_sbccs_dib_ctlparam_ru,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "RU", "fcsb3.ctlparam.ru",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 24, TFS(&tfs_set_notset), 0x10,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-25 10:24:40 +00:00
|
|
|
{ &hf_sbccs_dib_ctlparam_ro,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "RO", "fcsb3.ctlparam.ro",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 24, TFS(&tfs_set_notset), 0x08,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-25 10:38:36 +00:00
|
|
|
{ &hf_sbccs_dib_linkctlinfo,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Link Control Information", "fcsb3.linkctlinfo",
|
2012-05-03 19:31:03 +00:00
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-25 10:38:36 +00:00
|
|
|
{ &hf_sbccs_dib_linkctlinfo_ctcconn,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "CTC Conn", "fcsb3.linkctlinfo.ctc_conn",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 16, TFS(&tfs_supported_not_supported), 0x80,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
|
|
|
|
2005-10-25 10:38:36 +00:00
|
|
|
{ &hf_sbccs_dib_linkctlinfo_ecrcg,
|
2012-08-01 01:57:18 +00:00
|
|
|
{ "Enhanced CRC Generation", "fcsb3.linkctlinfo.ecrcg",
|
2013-07-17 10:44:18 +00:00
|
|
|
FT_BOOLEAN, 16, TFS(&tfs_supported_not_supported), 0x01,
|
2012-05-03 19:31:03 +00:00
|
|
|
NULL, HFILL}},
|
2003-10-30 02:06:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/* Setup protocol subtree array */
|
|
|
|
static gint *ett[] = {
|
|
|
|
&ett_fc_sbccs,
|
2005-10-10 08:36:24 +00:00
|
|
|
&ett_sbccs_iui,
|
2005-10-10 09:12:33 +00:00
|
|
|
&ett_sbccs_dhflags,
|
2005-10-10 10:12:16 +00:00
|
|
|
&ett_sbccs_dib_ccw_flags,
|
2005-10-11 09:26:50 +00:00
|
|
|
&ett_sbccs_dib_cmdflags,
|
|
|
|
&ett_sbccs_dib_statusflags,
|
|
|
|
&ett_sbccs_dib_status,
|
2005-10-25 10:24:40 +00:00
|
|
|
&ett_sbccs_dib_ctlparam,
|
2005-10-25 10:38:36 +00:00
|
|
|
&ett_sbccs_dib_linkctlinfo,
|
2003-10-30 02:06:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Register the protocol name and description */
|
|
|
|
proto_fc_sbccs = proto_register_protocol ("Fibre Channel Single Byte Command",
|
2012-08-01 01:57:18 +00:00
|
|
|
"FC-SB3", "fcsb3");
|
2003-10-30 02:06:13 +00:00
|
|
|
|
|
|
|
proto_register_field_array(proto_fc_sbccs, hf, array_length(hf));
|
|
|
|
proto_register_subtree_array(ett, array_length(ett));
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
proto_reg_handoff_fcsbccs (void)
|
|
|
|
{
|
|
|
|
dissector_handle_t fc_sbccs_handle;
|
|
|
|
|
|
|
|
fc_sbccs_handle = create_dissector_handle (dissect_fc_sbccs,
|
|
|
|
proto_fc_sbccs);
|
|
|
|
|
2010-12-20 05:35:29 +00:00
|
|
|
dissector_add_uint("fc.ftype", FC_FTYPE_SBCCS, fc_sbccs_handle);
|
2003-10-30 02:06:13 +00:00
|
|
|
|
|
|
|
data_handle = find_dissector ("data");
|
|
|
|
}
|
|
|
|
|
2013-12-23 20:13:48 +00:00
|
|
|
/*
|
|
|
|
* Editor modelines - http://www.wireshark.org/tools/modelines.html
|
|
|
|
*
|
|
|
|
* Local variables:
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* vi: set shiftwidth=4 tabstop=8 expandtab:
|
|
|
|
* :indentSize=4:tabSize=8:noTabs=true:
|
|
|
|
*/
|