Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / packet-iwarp-ddp-rdmap.h
blob90488e80e27333fc58c26d3d58a9a564b519b903
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_
17 /* RDMA messages */
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 {
29 uint32_t sink_stag;
30 uint64_t sink_toffset;
31 uint32_t source_stag;
32 uint64_t source_toffset;
33 uint32_t message_size;
34 } rdmap_request_t;
36 typedef struct rdmapinfo {
37 uint8_t opcode;
38 bool last_flag;
39 bool is_tagged;
40 union {
41 /* Tagged Buffer Model */
42 struct {
43 uint32_t steering_tag;
44 uint64_t tagged_offset;
46 /* Untagged Buffer Model */
47 struct {
48 uint32_t queue_number;
49 uint32_t message_seq_num;
50 uint32_t message_offset;
53 rdmap_request_t *read_request;
54 } rdmap_info_t;
56 #endif /* __PACKET_IWARP_DDP_RDMAP_H_ */