pmi-ping.h 13 May 2004 17:32:57 - 1.1
+++ libfreeipmi/src/ipmi-ping.h 31 Oct 2005 16:46:17 -
@@ -31,6 +31,9 @@
extern "C" {
#endif
+#define IPMI_PING_VERSION_1_50
+#define IPMI_PING_VERSION_2_01
+
/* Ipmi_Ping_CreatePacket
* - Create a ping request packet and store it in the buffer
* - Return length of packet created, or -1 on error.
@@ -38,6 +41,7 @@ extern "C" {
typedef int (*Ipmi_Ping_CreatePacket)(char *buffer,
int buflen,
unsigned int seq_num_count,
+ int version,
int debug);
/* Ipmi_Ping_ParsePacket
@@ -51,6 +55,7 @@ typedef int (*Ipmi_Ping_ParsePacket)(cha
const char *from,
unsigned int seq_num_count,
int verbose,
+ int version,
int debug);
/* Ipmi_Ping_LatePacket
@@ -71,11 +76,15 @@ typedef int (*Ipmi_Ping_EndResult)(const
*/
void ipmi_ping_err_exit(char *fmt, ...);
-/* ipmi_ping_common
- * - wrapper function for common ping utilities
+/* ipmi_ping_setup
+ * - setup ipmi ping code by parsing command line arguments
+ */
+void ipmi_ping_setup(int argc, char **argv, char *options);
+
+/* ipmi_ping_loop
+ * - handle looping ping code
*/
-void ipmi_ping_main(int argc, char **argv,
-Ipmi_Ping_CreatePacket _create,
+void ipmi_ping_loop(Ipmi_Ping_CreatePacket _create,
Ipmi_Ping_ParsePacket _parse,
Ipmi_Ping_LatePacket _late,
Ipmi_Ping_EndResult _end);
Index: rmcpping/src/rmcpping.c
===
RCS file: /cvsroot/freeipmi/freeipmi/rmcpping/src/rmcpping.c,v
retrieving revision 1.1
diff -u -p -r1.1 rmcpping.c
--- rmcpping/src/rmcpping.c 13 May 2004 17:32:57 - 1.1
+++ rmcpping/src/rmcpping.c 31 Oct 2005 16:46:17 -0000
@@ -78,6 +78,7 @@ int
createpacket(char *buffer,
int buflen,
unsigned int seq_num_count,
+ int version,
int debug)
{
fiid_obj_t obj_rmcp_hdr = NULL;
@@ -128,6 +129,7 @@ parsepacket(char *buffer,
const char *from,
unsigned int seq_num_count,
int verbose,
+int version,
int debug)
{
fiid_obj_t obj_rmcp_hdr = NULL;
@@ -221,10 +223,11 @@ endresult(const char *progname,
int
main(int argc, char **argv)
{
- ipmi_ping_main(argc, argv,
- createpacket,
- parsepacket,
- latepacket,
- endresult);
+#ifndef NDEBUG
+ ipmi_ping_setup(argc, argv, "hVc:i:I:t:vd");
+#else
+ ipmi_ping_setup(argc, argv, "hVc:i:I:t:v");
+#endif
+ ipmi_ping_loop(createpacket, parsepacket, latepacket, endresult);
exit(1);/* NOT REACHED */
}
--
Albert Chu
[EMAIL PROTECTED]
Lawrence Livermore National Laboratory
- Original Message -
From: Anand Babu <[EMAIL PROTECTED]>
Date: Thursday, November 3, 2005 6:54 pm
Subject: Re: [Freeipmi-devel] ipmiping 2.0 patch
> ,[ Albert Chu <[EMAIL PROTECTED]> ]
> | Does someone out there have a ipmi 2.0 machine[1] that could sanity
> | check this patch?? After applying and compiling, try:
> `
> I cannot find the patch!
> --
> Anand Babu
> GPG Key ID: 0x62E15A31
> Blog [http://ab.freeshell.org]
> The GNU Operating System [http://www.gnu.org]
>
___
Freeipmi-devel mailing list
Freeipmi-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/freeipmi-devel