aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-infiniband.h
diff options
context:
space:
mode:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2010-04-08 08:41:56 +0000
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2010-04-08 08:41:56 +0000
commit1d08e35674b6418cc39245873b44f2695b037a3f (patch)
tree192d37a16a5d2ff3201652933f499eb9d841ad4a /epan/dissectors/packet-infiniband.h
parentb65bae112609685b9fec77efc56e650468f85941 (diff)
From Stephen Donnelly:
InfiniBand Link Packet (flow control) dissector. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4656 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32425 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-infiniband.h')
-rw-r--r--epan/dissectors/packet-infiniband.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/epan/dissectors/packet-infiniband.h b/epan/dissectors/packet-infiniband.h
index 5d4c819ce2..0d3f3b3a93 100644
--- a/epan/dissectors/packet-infiniband.h
+++ b/epan/dissectors/packet-infiniband.h
@@ -31,6 +31,7 @@
/* Wireshark ID */
static int proto_infiniband = -1;
+static int proto_infiniband_link = -1;
/* Variables to hold expansion values between packets */
/* static gint ett_infiniband = -1; */
@@ -84,6 +85,8 @@ static gint ett_tracerecord = -1;
static gint ett_multipathrecord = -1;
static gint ett_serviceassocrecord = -1;
+static gint ett_link = -1;
+
/* Global ref to highest level tree should we find other protocols encapsulated in IB */
static proto_tree *top_tree = NULL;
@@ -108,6 +111,7 @@ static dissector_handle_t data_handle;
static dissector_table_t ethertype_dissector_table;
static void dissect_infiniband(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
+static void dissect_infiniband_link(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
static gint32 find_next_header_sequence(guint32 OpCode);
static gboolean contains(guint32 value, guint32* arr, int length);
static void dissect_general_info(tvbuff_t *tvb, gint offset, packet_info *pinfo);
@@ -932,6 +936,20 @@ static int hf_infiniband_Trap_DataValid = -1;
static int hf_infiniband_Trap_PKEY = -1;
static int hf_infiniband_Trap_SWLIDADDR = -1;
+/* Infiniband Link */
+static int hf_infiniband_link_op = -1;
+static int hf_infiniband_link_fctbs = -1;
+static int hf_infiniband_link_vl = -1;
+static int hf_infiniband_link_fccl = -1;
+static int hf_infiniband_link_lpcrc = -1;
+
+/* Trap Type/Descriptions for dissection */
+static const value_string Operand_Description[]= {
+ { 0, " Normal Flow Control"},
+ { 1, " Flow Control Init"},
+ { 0, NULL}
+};
+
/* Trap Type/Descriptions for dissection */
static const value_string Trap_Description[]= {
{ 64, " (Informational) <GIDADDR> is now in service"},