12#ifndef __PACKET_IPMI_H__
13#define __PACKET_IPMI_H__
20#define IPMI_NETFN_MAX 32
24#define IPMI_CHASSIS_REQ 0x00
25#define IPMI_BRIDGE_REQ 0x02
26#define IPMI_SE_REQ 0x04
27#define IPMI_APP_REQ 0x06
28#define IPMI_UPDATE_REQ 0x08
29#define IPMI_STORAGE_REQ 0x0a
30#define IPMI_TRANSPORT_REQ 0x0c
31#define IPMI_GROUP_REQ 0x2c
32#define IPMI_OEM_REQ 0x2e
75typedef void (*ipmi_cmd_handler_t)(
tvbuff_t *,
81 ipmi_cmd_handler_t parse_req;
82 ipmi_cmd_handler_t parse_resp;
90#define CMD_CALLRQ 0x02
99void ipmi_set_data(
packet_info *pinfo,
unsigned idx, uint32_t data);
102bool ipmi_get_data(
packet_info *pinfo,
unsigned idx, uint32_t * data);
108 unsigned oem_selector;
117#define IPMI_TBD ipmi_notimpl, ipmi_notimpl
121 unsigned offs,
bool is_fru);
130void ipmi_fmt_10ms_1based(
char *, uint32_t);
131void ipmi_fmt_500ms_0based(
char *, uint32_t);
132void ipmi_fmt_500ms_1based(
char *, uint32_t);
133void ipmi_fmt_1s_0based(
char *, uint32_t);
134void ipmi_fmt_1s_1based(
char *, uint32_t);
135void ipmi_fmt_2s_0based(
char *, uint32_t);
136void ipmi_fmt_5s_1based(
char *, uint32_t);
137void ipmi_fmt_version(
char *, uint32_t);
138void ipmi_fmt_channel(
char *, uint32_t);
139void ipmi_fmt_udpport(
char *, uint32_t);
140void ipmi_fmt_percent(
char *, uint32_t);
143void ipmi_register_netfn_cmdtab(uint32_t netfn,
unsigned oem_selector,
144 const uint8_t *sig, uint32_t siglen,
const char *desc,
145 const ipmi_cmd_t *cmdtab, uint32_t cmdtablen);
148uint32_t ipmi_getsiglen(uint32_t netfn);
150ipmi_netfn_t *ipmi_getnetfn(uint32_t netfn,
const uint8_t *sig);
152const char *ipmi_get_completion_code(uint8_t completion,
const ipmi_cmd_t *cmd);
155extern int proto_ipmi;
158#define IPMI_D_NONE 0x0001
159#define IPMI_D_SESSION_HANDLE 0x0002
160#define IPMI_D_BROADCAST 0x0004
161#define IPMI_D_TRG_SA 0x0008
162#define IPMI_D_TMODE 0x0010
163#define IPMI_D_NO_CKS 0x0020
164#define IPMI_D_NO_RQ_SA 0x0040
165#define IPMI_D_NO_SEQ 0x0080
Definition packet_info.h:43
Definition value_string.h:25
Definition wmem_allocator.h:27
Definition packet-ipmi.h:79
Definition packet-ipmi.h:168
Definition packet-ipmi.h:105
Definition tvbuff-int.h:35