summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lnet.h
blob: 6093c7e11657d1299a0430304c8443bc1892fb47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/* packet-lnet.h
 * Copyright (c) 2017 Intel Corporation.
 *
 * Wireshark - Network traffic analyzer
 * By Gerald Combs <gerald@wireshark.org>
 * Copyright 1998 Gerald Combs
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */
#ifndef __PACKET_LNET_H__
#define __PACKET_LNET_H__

#include <epan/packet.h>

#define portal_index_VALUE_STRING_LIST(XXX) \
    XXX(CONNMGR_REQUEST_PORTAL, 1) \
    XXX(CONNMGR_REPLY_PORTAL, 2) \
    XXX(OSC_REQUEST_PORTAL, 3) \
    XXX(OSC_REPLY_PORTAL, 4) \
    XXX(OSC_BULK_PORTAL, 5) \
    XXX(OST_IO_PORTAL, 6) \
    XXX(OST_CREATE_PORTAL, 7) \
    XXX(OST_BULK_PORTAL, 8) \
    XXX(MDC_REQUEST_PORTAL, 9) \
    XXX(MDC_REPLY_PORTAL, 10) \
    XXX(MDC_BULK_PORTAL, 11) \
    XXX(MDS_REQUEST_PORTAL, 12) \
    XXX(MDS_REPLY_PORTAL, 13) \
    XXX(MDS_BULK_PORTAL, 14) \
    XXX(LDLM_CB_REQUEST_PORTAL, 15) \
    XXX(LDLM_CB_REPLY_PORTAL, 16) \
    XXX(LDLM_CANCEL_REQUEST_PORTAL, 17) \
    XXX(LDLM_CANCEL_REPLY_PORTAL, 18) \
    XXX(PTLBD_REQUEST_PORTAL, 19) \
    XXX(PTLBD_REPLY_PORTAL, 20) \
    XXX(PTLBD_BULK_PORTAL, 21) \
    XXX(MDS_SETATTR_PORTAL, 22) \
    XXX(MDS_READPAGE_PORTAL, 23) \
    XXX(MDS_MDS_PORTAL, 24) \
    XXX(MGC_REPLY_PORTAL, 25) \
    XXX(MGS_REQUEST_PORTAL, 26) \
    XXX(MGS_REPLY_PORTAL, 27) \
    XXX(OST_REQUEST_PORTAL, 28) \
    XXX(FLD_REQUEST_PORTAL, 29) \
    XXX(SEQ_METADATA_PORTAL, 30) \
    XXX(SEQ_DATA_PORTAL, 31) \
    XXX(SEQ_CONTROLLER_PORTAL, 32) \
    XXX(MGS_BULK_PORTAL, 33)
VALUE_STRING_ENUM2(portal_index);
//VALUE_STRING_ARRAY2(portal_index);

struct lnet_trans_info {
    guint64 match_bits;
};

int lnet_dissect_struct_nid(tvbuff_t *tvb, proto_tree *parent_tree, int offset, int hf_index);

#endif