aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ipmi-update.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2008-08-06 20:51:02 +0000
committerAnders Broman <anders.broman@ericsson.com>2008-08-06 20:51:02 +0000
commit46a26582ec6db7f495ccda806f40ca5a0afc6989 (patch)
treef2852ffbca62fada03e9a50597ef65d4404ea022 /epan/dissectors/packet-ipmi-update.c
parentc77c787122c06036a8faf0a8f4d26e47782a0b00 (diff)
From Alexey Neyman :
(Note just checking in the new files not yet added to the build process on purpose the changes to packet-ipmi.c is also not done yet - Anders). Generic changes: - IPMI session wrapper dissection has been separated from the dissection of IPMI itself. This will allow for possible dissection of captures directly from IPMB (as the IPMB messages lack the IPMI session wrapper). IPMI changes: - Implemented request-response matching for IPMI sessions. This makes easy serves two purposes: first, it allows for easy location of response to a certain request and vice versa. Second, it allows for dissection of responses where response format depends on the request data. - IPMI dissector can now dissect much broader set of commands. - Command-specific completion codes are now handled. - The dissector is able to parse IPMI commands embedded into other IPMI commands (for now, only Send Message; Get Message and Forward Message can be implemented later). Such embedded commands also matched with responses to them. svn path=/trunk/; revision=25948
Diffstat (limited to 'epan/dissectors/packet-ipmi-update.c')
-rw-r--r--epan/dissectors/packet-ipmi-update.c53
1 files changed, 53 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ipmi-update.c b/epan/dissectors/packet-ipmi-update.c
new file mode 100644
index 0000000000..d3d35760bb
--- /dev/null
+++ b/epan/dissectors/packet-ipmi-update.c
@@ -0,0 +1,53 @@
+/* packet-ipmi-update.c
+ * Sub-dissectors for IPMI messages (netFn=Firmware Update, PPS-specific)
+ * Copyright 2007-2008, Alexey Neyman, Pigeon Point Systems <avn@pigeonpoint.com>
+ *
+ * $Id$
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 1998 Gerald Combs
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
+#include <epan/packet.h>
+
+#include "packet-ipmi.h"
+
+static ipmi_cmd_t cmd_update[] = {
+ { 0x00, IPMI_TBD, NULL, NULL, "[PPS OEM] Upgrade Status", 0 },
+ { 0x01, IPMI_TBD, NULL, NULL, "[PPS OEM] Upgrade Start", 0 },
+ { 0x02, IPMI_TBD, NULL, NULL, "[PPS OEM] Upgrade Prepare", 0 },
+ { 0x03, IPMI_TBD, NULL, NULL, "[PPS OEM] Upgrade Write", 0 },
+ { 0x04, IPMI_TBD, NULL, NULL, "[PPS OEM] Upgrade Complete", 0 },
+ { 0x05, IPMI_TBD, NULL, NULL, "[PPS OEM] Restore Backup", 0 },
+ { 0x06, IPMI_TBD, NULL, NULL, "[PPS OEM] Query Backup Version", 0 }
+};
+
+void
+ipmi_register_update(gint proto_ipmi _U_)
+{
+ ipmi_register_netfn_cmdtab(IPMI_UPDATE_REQ, IPMI_OEM_PPS, NULL, 0, NULL,
+ cmd_update, array_length(cmd_update));
+}