1 /* packet-iwarp-ddp-rdmap.c
2 * Routines for Direct Data Placement (DDP) and
3 * Remote Direct Memory Access Protocol (RDMAP) dissection
4 * According to IETF RFC 5041 and RFC 5040
5 * Copyright 2008, Yves Geissbuehler <yves.geissbuehler@gmx.net>
6 * Copyright 2008, Philip Frey <frey.philip@gmail.com>
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <gerald@wireshark.org>
10 * Copyright 1998 Gerald Combs
12 * SPDX-License-Identifier: GPL-2.0-or-later
14 #ifndef __PACKET_IWARP_DDP_RDMAP_H_
15 #define __PACKET_IWARP_DDP_RDMAP_H_
18 #define RDMA_WRITE 0x00
19 #define RDMA_READ_REQUEST 0x01
20 #define RDMA_READ_RESPONSE 0x02
21 #define RDMA_SEND 0x03
22 #define RDMA_SEND_INVALIDATE 0x04
23 #define RDMA_SEND_SE 0x05
24 #define RDMA_SEND_SE_INVALIDATE 0x06
25 #define RDMA_TERMINATE 0x07
27 /* Read request info */
28 typedef struct rdmap_request
{
30 uint64_t sink_toffset
;
32 uint64_t source_toffset
;
33 uint32_t message_size
;
36 typedef struct rdmapinfo
{
41 /* Tagged Buffer Model */
43 uint32_t steering_tag
;
44 uint64_t tagged_offset
;
46 /* Untagged Buffer Model */
48 uint32_t queue_number
;
49 uint32_t message_seq_num
;
50 uint32_t message_offset
;
53 rdmap_request_t
*read_request
;
56 #endif /* __PACKET_IWARP_DDP_RDMAP_H_ */