summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ipmi-bridge.c
blob: 7e0ebd2e51d197d71c0d4d42f202c8abbabc8a6f (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/* packet-ipmi-bridge.c
 * Sub-dissectors for IPMI messages (netFn=Bridge)
 * Copyright 2007-2008, Alexey Neyman, Pigeon Point Systems <avn@pigeonpoint.com>
 *
 * Wireshark - Network traffic analyzer
 * By Gerald Combs <gerald@wireshark.org>
 * Copyright 1998 Gerald Combs
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#include "config.h"

#include <epan/packet.h>

#include "packet-ipmi.h"

void proto_register_ipmi_bridge(void);

/* Bridge commands are not implemented (yet) */


static const ipmi_cmd_t cmd_bridge[] = {
  /* Bridge management commands (ICMB) */
  { 0x00, IPMI_TBD,   NULL, NULL, "[ICMB] Get Bridge State", 0 },
  { 0x01, IPMI_TBD,   NULL, NULL, "[ICMB] Set Bridge State", 0 },
  { 0x02, IPMI_TBD,   NULL, NULL, "[ICMB] Get ICMB Address", 0 },
  { 0x03, IPMI_TBD,   NULL, NULL, "[ICMB] Set ICMB Address", 0 },
  { 0x04, IPMI_TBD,   NULL, NULL, "[ICMB] Set Bridge Proxy Address", 0 },
  { 0x05, IPMI_TBD,   NULL, NULL, "[ICMB] Get Bridge Statistics", 0 },
  { 0x06, IPMI_TBD,   NULL, NULL, "[ICMB] Get ICMB Capabilities", 0 },
  { 0x08, IPMI_TBD,   NULL, NULL, "[ICMB] Clear Bridge Statistics", 0 },
  { 0x09, IPMI_TBD,   NULL, NULL, "[ICMB] Get Bridge Proxy Address", 0 },
  { 0x0a, IPMI_TBD,   NULL, NULL, "[ICMB] Get ICMB Connector Info", 0 },
  { 0x0b, IPMI_TBD,   NULL, NULL, "[ICMB] Get ICMB Connection ID", 0 },
  { 0x0c, IPMI_TBD,   NULL, NULL, "[ICMB] Send ICMB Connection ID", 0 },

  /* Discovery Commands (ICMB) */
  { 0x10, IPMI_TBD,   NULL, NULL, "[ICMB] Prepare For Discovery", 0 },
  { 0x11, IPMI_TBD,   NULL, NULL, "[ICMB] Get Addresses", 0 },
  { 0x12, IPMI_TBD,   NULL, NULL, "[ICMB] Set Discovered", 0 },
  { 0x13, IPMI_TBD,   NULL, NULL, "[ICMB] Get Chassis Device ID", 0 },
  { 0x14, IPMI_TBD,   NULL, NULL, "[ICMB] Set Chassis Device ID", 0 },

  /* Bridging Commands (ICMB) */
  { 0x20, IPMI_TBD,   NULL, NULL, "[ICMB] Bridge Request", 0 },
  { 0x21, IPMI_TBD,   NULL, NULL, "[ICMB] Bridge Message", 0 },

  /* Event Commands (ICMB) */
  { 0x30, IPMI_TBD,   NULL, NULL, "[ICMB] Get Event Count", 0 },
  { 0x31, IPMI_TBD,   NULL, NULL, "[ICMB] Set Event Destination", 0 },
  { 0x32, IPMI_TBD,   NULL, NULL, "[ICMB] Set Event Reception State", 0 },
  { 0x33, IPMI_TBD,   NULL, NULL, "[ICMB] Send ICMB Event Message", 0 },
  { 0x34, IPMI_TBD,   NULL, NULL, "[ICMB] Get Event Destination", 0 },
  { 0x35, IPMI_TBD,   NULL, NULL, "[ICMB] Get Event Reception State", 0 },

  /* OEM Commands for Bridge NetFn */
  { 0xc0, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xc1, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xc2, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xc3, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xc4, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xc5, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xc6, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xc7, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xc8, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xc9, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xca, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xcb, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xcc, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xcd, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xce, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xcf, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xd0, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xd1, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xd2, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xd3, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xd4, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xd5, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xd6, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xd7, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xd8, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xd9, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xda, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xdb, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xdc, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xdd, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xde, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xdf, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xe0, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xe1, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xe2, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xe3, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xe4, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xe5, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xe6, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xe7, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xe8, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xe9, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xea, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xeb, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xec, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xed, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xee, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xef, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xf0, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xf1, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xf2, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xf3, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xf4, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xf5, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xf6, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xf7, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xf8, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xf9, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xfa, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xfb, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xfc, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xfd, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },
  { 0xfe, IPMI_TBD,   NULL, NULL, "[ICMB] OEM Command", 0 },

  /* Other Bridge Commands */
  { 0xff, IPMI_TBD,   NULL, NULL, "[ICMB] Error Report", 0 },
};

void
proto_register_ipmi_bridge(void)
{
  ipmi_register_netfn_cmdtab(IPMI_BRIDGE_REQ, IPMI_OEM_NONE, NULL, 0, NULL,
                             cmd_bridge, array_length(cmd_bridge));
}

/*
 * Editor modelines  -  https://www.wireshark.org/tools/modelines.html
 *
 * Local Variables:
 * c-basic-offset: 2
 * tab-width: 8
 * indent-tabs-mode: nil
 * End:
 *
 * ex: set shiftwidth=2 tabstop=8 expandtab:
 * :indentSize=2:tabSize=8:noTabs=true:
 */