aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-fc.h
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2013-11-25 16:04:57 +0000
committerMichael Mann <mmann78@netscape.net>2013-11-25 16:04:57 +0000
commita9dd765d474264d86c9809f943fb872f29aa9b06 (patch)
treecc6f3db65a0eee0a790d7a35e5745ba364ceb1bf /epan/dissectors/packet-fc.h
parentd4c4e24351173085ba78ebdb461f15a9c2f96c5b (diff)
Remove Fibre Channel specific fields from packet_info and just have the fc_hdr or fc_data_t structure passed between all necessary dissectors.
svn path=/trunk/; revision=53569
Diffstat (limited to 'epan/dissectors/packet-fc.h')
-rw-r--r--epan/dissectors/packet-fc.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/epan/dissectors/packet-fc.h b/epan/dissectors/packet-fc.h
index 907fc10424..335b6092fe 100644
--- a/epan/dissectors/packet-fc.h
+++ b/epan/dissectors/packet-fc.h
@@ -26,6 +26,7 @@
#ifndef __PACKET_FC_H_
#define __PACKET_FC_H_
+#include <epan/conversation.h>
#include "packet-scsi.h"
#include "ws_symbol_export.h"
@@ -146,4 +147,20 @@ typedef struct _fc_hdr {
guint32 relative_offset;
} fc_hdr;
+#define FC_DATA_SOF_FIRST_FRAME 0x1
+#define FC_DATA_SOF_SOFF 0x2
+#define FC_DATA_EOF_LAST_FRAME 0x80
+#define FC_DATA_EOF_INVALID 0x40
+
+/* Data structure to pass into FC dissector */
+typedef struct _fc_data {
+ guint ethertype;
+ guint8 sof_eof; /**< FC's SOF/EOF encoding passed to FC decoder
+ * Bit 7 set if Last frame in sequence
+ * Bit 6 set if invalid frame content
+ * Bit 2 set if SOFf
+ * Bit 1 set if first frame in sequence
+ */
+} fc_data_t;
+
#endif /* __PACKET_FC_H_ */