summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-iwarp-ddp-rdmap.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
commite4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch)
tree68cb5ef9081156392f1dd62a00c6ccc1451b93df /epan/dissectors/packet-iwarp-ddp-rdmap.h
parentInitial commit. (diff)
downloadwireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz
wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/dissectors/packet-iwarp-ddp-rdmap.h')
-rw-r--r--epan/dissectors/packet-iwarp-ddp-rdmap.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/epan/dissectors/packet-iwarp-ddp-rdmap.h b/epan/dissectors/packet-iwarp-ddp-rdmap.h
new file mode 100644
index 00000000..3abcf2a6
--- /dev/null
+++ b/epan/dissectors/packet-iwarp-ddp-rdmap.h
@@ -0,0 +1,56 @@
+/* packet-iwarp-ddp-rdmap.c
+ * Routines for Direct Data Placement (DDP) and
+ * Remote Direct Memory Access Protocol (RDMAP) dissection
+ * According to IETF RFC 5041 and RFC 5040
+ * Copyright 2008, Yves Geissbuehler <yves.geissbuehler@gmx.net>
+ * Copyright 2008, Philip Frey <frey.philip@gmail.com>
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 1998 Gerald Combs
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+#ifndef __PACKET_IWARP_DDP_RDMAP_H_
+#define __PACKET_IWARP_DDP_RDMAP_H_
+
+/* RDMA messages */
+#define RDMA_WRITE 0x00
+#define RDMA_READ_REQUEST 0x01
+#define RDMA_READ_RESPONSE 0x02
+#define RDMA_SEND 0x03
+#define RDMA_SEND_INVALIDATE 0x04
+#define RDMA_SEND_SE 0x05
+#define RDMA_SEND_SE_INVALIDATE 0x06
+#define RDMA_TERMINATE 0x07
+
+/* Read request info */
+typedef struct rdmap_request {
+ guint32 sink_stag;
+ guint64 sink_toffset;
+ guint32 source_stag;
+ guint64 source_toffset;
+ guint32 message_size;
+} rdmap_request_t;
+
+typedef struct rdmapinfo {
+ guint8 opcode;
+ gboolean last_flag;
+ gboolean is_tagged;
+ union {
+ /* Tagged Buffer Model */
+ struct {
+ guint32 steering_tag;
+ guint64 tagged_offset;
+ };
+ /* Untagged Buffer Model */
+ struct {
+ guint32 queue_number;
+ guint32 message_seq_num;
+ guint32 message_offset;
+ };
+ };
+ rdmap_request_t *read_request;
+} rdmap_info_t;
+
+#endif /* __PACKET_IWARP_DDP_RDMAP_H_ */