#define _IBDIAG_COMMON_H_
#include <infiniband/mad.h>
-#include "ibdiag_osd.h"
extern int ibdebug;
extern int ibverbose;
/*========================================================*/
#undef DEBUG
-#define DEBUG if (ibdebug || ibverbose) IBWARN
-#define VERBOSE if (ibdebug || ibverbose > 1) IBWARN
-#define IBERROR(fmt, ...) iberror(__FUNCTION__, fmt, ## __VA_ARGS__)
+#define DEBUG(fmt, ...) do { \
+ if (ibdebug || ibverbose) IBWARN(fmt, ## __VA_ARGS__); \
+} while (0)
+#define VERBOSE(fmt, ...) do { \
+ if (ibdebug || ibverbose > 1) IBWARN(fmt, ## __VA_ARGS__); \
+} while (0)
+#define IBERROR(fmt, ...) iberror(__FUNCTION__, fmt, ## __VA_ARGS__)
struct ibdiag_opt {
const char *name;
--- /dev/null
+/*\r
+ * Copyright (c) 2009 Intel Corp, Inc. All rights reserved.\r
+ *\r
+ * This software is available to you under a choice of one of two\r
+ * licenses. You may choose to be licensed under the terms of the GNU\r
+ * General Public License (GPL) Version 2, available from the file\r
+ * COPYING in the main directory of this source tree, or the\r
+ * OpenIB.org BSD license below:\r
+ *\r
+ * Redistribution and use in source and binary forms, with or\r
+ * without modification, are permitted provided that the following\r
+ * conditions are met:\r
+ *\r
+ * - Redistributions of source code must retain the above\r
+ * copyright notice, this list of conditions and the following\r
+ * disclaimer.\r
+ *\r
+ * - Redistributions in binary form must reproduce the above\r
+ * copyright notice, this list of conditions and the following\r
+ * disclaimer in the documentation and/or other materials\r
+ * provided with the distribution.\r
+ *\r
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\r
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\r
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r
+ * SOFTWARE.\r
+ *\r
+ */\r
+\r
+#ifndef _CONFIG_H_\r
+#define _CONFIG_H_\r
+\r
+#include <../../../../ulp/libibverbs/include/infiniband/verbs.h>\r
+\r
+#define strdup _strdup\r
+#define strdupa _strdup\r
+#define strncasecmp _strnicmp\r
+\r
+#endif /* _CONFIG_H_ */\r
+++ /dev/null
-/*\r
- * Copyright (c) 2009 Intel Corp, Inc. All rights reserved.\r
- *\r
- * This software is available to you under a choice of one of two\r
- * licenses. You may choose to be licensed under the terms of the GNU\r
- * General Public License (GPL) Version 2, available from the file\r
- * COPYING in the main directory of this source tree, or the\r
- * OpenIB.org BSD license below:\r
- *\r
- * Redistribution and use in source and binary forms, with or\r
- * without modification, are permitted provided that the following\r
- * conditions are met:\r
- *\r
- * - Redistributions of source code must retain the above\r
- * copyright notice, this list of conditions and the following\r
- * disclaimer.\r
- *\r
- * - Redistributions in binary form must reproduce the above\r
- * copyright notice, this list of conditions and the following\r
- * disclaimer in the documentation and/or other materials\r
- * provided with the distribution.\r
- *\r
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\r
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\r
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r
- * SOFTWARE.\r
- *\r
- */\r
-\r
-#ifndef _IBDIAG_OSD_H_\r
-#define _IBDIAG_OSD_H_\r
-\r
-#include <../../../../ulp/libibverbs/include/infiniband/verbs.h>\r
-\r
-#define _CDECL __cdecl\r
-\r
-#define strdupa _strdup\r
-#define strncasecmp _strnicmp\r
-\r
-#endif /* _IBDIAG_OSD_H_ */\r
--- /dev/null
+/*
+ * Copyright (c) 2009 Intel Corp, Inc. All rights reserved.
+ *
+ * This software is available to you under a choice of one of two
+ * licenses. You may choose to be licensed under the terms of the GNU
+ * General Public License (GPL) Version 2, available from the file
+ * COPYING in the main directory of this source tree, or the
+ * OpenIB.org BSD license below:
+ *
+ * Redistribution and use in source and binary forms, with or
+ * without modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * - Redistributions of source code must retain the above
+ * copyright notice, this list of conditions and the following
+ * disclaimer.
+ *
+ * - Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following
+ * disclaimer in the documentation and/or other materials
+ * provided with the distribution.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ */
+
+#ifndef _INTTYPES_H_
+#define _INTTYPES_H_
+
+#endif /* _INTTYPES_H_ */
--- /dev/null
+/*
+ * Copyright (c) 2009 Intel Corp, Inc. All rights reserved.
+ *
+ * This software is available to you under a choice of one of two
+ * licenses. You may choose to be licensed under the terms of the GNU
+ * General Public License (GPL) Version 2, available from the file
+ * COPYING in the main directory of this source tree, or the
+ * OpenIB.org BSD license below:
+ *
+ * Redistribution and use in source and binary forms, with or
+ * without modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * - Redistributions of source code must retain the above
+ * copyright notice, this list of conditions and the following
+ * disclaimer.
+ *
+ * - Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following
+ * disclaimer in the documentation and/or other materials
+ * provided with the distribution.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ */
+
+#ifndef _IN_H_
+#define _IN_H_
+
+#endif /* _IN_H_ */
--- /dev/null
+/*
+ * Copyright (c) 2009 Intel Corp, Inc. All rights reserved.
+ *
+ * This software is available to you under a choice of one of two
+ * licenses. You may choose to be licensed under the terms of the GNU
+ * General Public License (GPL) Version 2, available from the file
+ * COPYING in the main directory of this source tree, or the
+ * OpenIB.org BSD license below:
+ *
+ * Redistribution and use in source and binary forms, with or
+ * without modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * - Redistributions of source code must retain the above
+ * copyright notice, this list of conditions and the following
+ * disclaimer.
+ *
+ * - Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following
+ * disclaimer in the documentation and/or other materials
+ * provided with the distribution.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ */
+
+#ifndef _UNISTD_H_
+#define _UNISTD_H_
+
+#endif /* _UNISTD_H_ */
perfquery \\r
sminfo \\r
smpdump \\r
+ smpquery \\r
vendstat
\ No newline at end of file
#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
#include <getopt.h>
#include <infiniband/umad.h>
return 0;
}
-int _CDECL main(int argc, char **argv)
+int main(int argc, char **argv)
{
int mgmt_classes[3] = {IB_SMI_CLASS, IB_SMI_DIRECT_CLASS, IB_SA_CLASS};
ib_portid_t portid = {0};
..\..\..\..\ulp\libibumad\include;\\r
..\..\..\..\inc;..\..\..\..\inc\user;\r
\r
-TARGETLIBS = \\r
+C_DEFINES = $(C_DEFINES) /DHAVE_CONFIG_H\r
+\r
+TARGETLIBS = \\r
$(SDK_LIB_PATH)\kernel32.lib \\r
- $(SDK_LIB_PATH)\ws2_32.lib \\r
+ $(SDK_LIB_PATH)\ws2_32.lib \\r
!if $(FREEBUILD)\r
$(TARGETPATH)\*\libibmad.lib \\r
$(TARGETPATH)\*\libibumad.lib \r
$(TARGETPATH)\*\libibumadd.lib \r
!endif\r
\r
+MSC_WARNING_LEVEL = /W3 /WX /wd4007\r
#include <stdlib.h>
#include <stdarg.h>
#include <sys/types.h>
+#include <unistd.h>
#include <ctype.h>
+#include <config.h>
#include <getopt.h>
#include <infiniband/umad.h>
char str_opts[1024];
const struct ibdiag_opt *o;
- memset((void *) opts_map, 0, sizeof(opts_map));
-
prog_name = argv[0];
prog_args = usage_args;
prog_examples = usage_examples;
+/*\r
+ * Copyright (c) 2009 Intel Corp., Inc.\r
+ *\r
+ * This software is available to you under a choice of one of two\r
+ * licenses. You may choose to be licensed under the terms of the GNU\r
+ * General Public License (GPL) Version 2, available from the file\r
+ * COPYING in the main directory of this source tree, or the\r
+ * OpenIB.org BSD license below:\r
+ *\r
+ * Redistribution and use in source and binary forms, with or\r
+ * without modification, are permitted provided that the following\r
+ * conditions are met:\r
+ *\r
+ * - Redistributions of source code must retain the above\r
+ * copyright notice, this list of conditions and the following\r
+ * disclaimer.\r
+ *\r
+ * - Redistributions in binary form must reproduce the above\r
+ * copyright notice, this list of conditions and the following\r
+ * disclaimer in the documentation and/or other materials\r
+ * provided with the distribution.\r
+ *\r
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\r
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\r
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r
+ * SOFTWARE.\r
+ *\r
+ */\r
+\r
#include "..\..\..\..\etc\user\getopt.c"\r
#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
#include <string.h>
+#include <signal.h>
#include <getopt.h>
+#include <sys/time.h>
#include <infiniband/umad.h>
#include <infiniband/mad.h>
{ "flood", 'f', 0, NULL, "flood destination" },
{ "oui", 'o', 1, NULL, "use specified OUI number" },
{ "Server", 'S', 0, NULL, "start in server mode" },
- { 0 }
+ { }
};
char usage_args[] = "<dest lid|guid>";
#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
#include <string.h>
#include <getopt.h>
}
}
-int _CDECL main(int argc, char **argv)
+int main(int argc, char **argv)
{
int mgmt_classes[3] = {IB_SMI_CLASS, IB_SMI_DIRECT_CLASS, IB_SA_CLASS};
ib_portid_t portid = {0};
..\..\..\..\ulp\libibumad\include;\\r
..\..\..\..\inc;..\..\..\..\inc\user;\r
\r
-TARGETLIBS = \\r
+C_DEFINES = $(C_DEFINES) /DHAVE_CONFIG_H\r
+\r
+TARGETLIBS = \\r
$(SDK_LIB_PATH)\kernel32.lib \\r
!if $(FREEBUILD)\r
$(TARGETPATH)\*\libibmad.lib \\r
$(TARGETPATH)\*\libibumadd.lib\r
!endif\r
\r
+MSC_WARNING_LEVEL = /W3 /WX /wd4007\r
# include <config.h>
#endif /* HAVE_CONFIG_H */
+#include <inttypes.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
+#include <netinet/in.h>
#include <infiniband/umad.h>
#include <infiniband/mad.h>
return 0;
}
-int _CDECL main(int argc, char *argv[])
+int main(int argc, char *argv[])
{
char names[UMAD_MAX_DEVICES][UMAD_CA_NAME_LEN];
int dev_port = -1;
..\..\..\..\ulp\libibumad\include;\\r
..\..\..\..\inc;..\..\..\..\inc\user;\r
\r
+C_DEFINES = $(C_DEFINES) /DHAVE_CONFIG_H\r
+\r
TARGETLIBS = \\r
$(SDK_LIB_PATH)\kernel32.lib \\r
!if $(FREEBUILD)\r
$(TARGETPATH)\*\libibumadd.lib \r
!endif\r
\r
+MSC_WARNING_LEVEL = /W3 /WX /wd4007\r
#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
#include <getopt.h>
+#include <netinet/in.h>
#include <infiniband/umad.h>
#include <infiniband/mad.h>
return 0;
}
-int _CDECL main(int argc, char **argv)
+int main(int argc, char **argv)
{
int mgmt_classes[4] = {IB_SMI_CLASS, IB_SMI_DIRECT_CLASS, IB_SA_CLASS, IB_PERFORMANCE_CLASS};
ib_portid_t portid = {0};
..\..\..\..\ulp\libibumad\include;\\r
..\..\..\..\inc;..\..\..\..\inc\user;\r
\r
-TARGETLIBS = \\r
+C_DEFINES = $(C_DEFINES) /DHAVE_CONFIG_H\r
+\r
+TARGETLIBS = \\r
$(SDK_LIB_PATH)\kernel32.lib \\r
- $(SDK_LIB_PATH)\ws2_32.lib \\r
+ $(SDK_LIB_PATH)\ws2_32.lib \\r
!if $(FREEBUILD)\r
$(TARGETPATH)\*\libibmad.lib \\r
$(TARGETPATH)\*\libibumad.lib \r
$(TARGETPATH)\*\libibumadd.lib \r
!endif\r
\r
+MSC_WARNING_LEVEL = /W3 /WX /wd4007\r
#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
+#include <inttypes.h>
#include <getopt.h>
#include <infiniband/umad.h>
return 0;
}
-int _CDECL main(int argc, char **argv)
+int main(int argc, char **argv)
{
int mgmt_classes[3] = {IB_SMI_CLASS, IB_SMI_DIRECT_CLASS, IB_SA_CLASS};
int mod = 0;
..\..\..\..\ulp\libibumad\include;\\r
..\..\..\..\inc;..\..\..\..\inc\user;\r
\r
-TARGETLIBS = \\r
+C_DEFINES = $(C_DEFINES) /DHAVE_CONFIG_H\r
+\r
+TARGETLIBS = \\r
$(SDK_LIB_PATH)\kernel32.lib \\r
!if $(FREEBUILD)\r
$(TARGETPATH)\*\libibmad.lib \\r
$(TARGETPATH)\*\libibumadd.lib \r
!endif\r
\r
+MSC_WARNING_LEVEL = /W3 /WX /wd4007
\ No newline at end of file
# include <config.h>
#endif /* HAVE_CONFIG_H */
+#include <inttypes.h>
#include <string.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
+#include <netinet/in.h>
#include <infiniband/mad.h>
#include <infiniband/umad.h>
return 0;
}
-int _CDECL main(int argc, char *argv[])
+int main(int argc, char *argv[])
{
int dlid = 0;
void *umad;
..\..\..\..\ulp\libibumad\include;\\r
..\..\..\..\inc;..\..\..\..\inc\user;\r
\r
+C_DEFINES = $(C_DEFINES) /DHAVE_CONFIG_H\r
+\r
TARGETLIBS = \\r
$(SDK_LIB_PATH)\kernel32.lib \\r
$(SDK_LIB_PATH)\ws2_32.lib \\r
$(TARGETPATH)\*\libibumadd.lib \r
!endif\r
\r
+MSC_WARNING_LEVEL = /W3 /WX /wd4007\r
#include <infiniband/umad.h>
#include <infiniband/mad.h>
-#include <infiniband/complib/cl_nodenamemap.h>
+#include <complib/cl_nodenamemap.h>
#include "ibdiag_common.h"
} else
mad_decode_field(data, IB_NODE_PARTITION_CAP_F, &n);
- for (i = 0; i < (n + 31) / 32; i++) {
+ for (i = 0; i < (uint32_t) ((n + 31) / 32); i++) {
mod = i | (portnum << 16);
if (!smp_query(data, dest, IB_ATTR_PKEY_TBL, mod, 0))
return "pkey table query failed";
return "port info failed";
mad_decode_field(data, IB_PORT_GUID_CAP_F, &n);
- for (i = 0; i < (n + 7) / 8; i++) {
+ for (i = 0; i < (uint32_t) ((n + 7) / 8); i++) {
mod = i;
if (!smp_query(data, dest, IB_ATTR_GUID_INFO, mod, 0))
return "guid info query failed";
const struct ibdiag_opt opts[] = {
{ "combined", 'c', 0, NULL, "use Combined route address argument"},
{ "node-name-map", 1, 1, "<file>", "node name map file"},
- {}
+ { 0 }
};
const char *usage_examples[] = {
"portinfo 3 1\t\t\t\t# portinfo by lid, with port modifier",
--- /dev/null
+TARGETNAME = smpquery\r
+TARGETPATH = ..\..\..\..\bin\user\obj$(BUILD_ALT_DIR)\r
+TARGETTYPE = PROGRAM\r
+\r
+UMTYPE = console\r
+UMENTRY = main\r
+\r
+USE_MSVCRT = 1\r
+\r
+SOURCES = ..\smpquery.c ..\ibdiag_common.c ..\ibdiag_windows.c smpquery.rc\r
+ \r
+INCLUDES = ..\..\include;..\..\include\windows;\\r
+ ..\..\..\..\ulp\libibmad\include;\\r
+ ..\..\..\..\ulp\libibumad\include;\\r
+ ..\..\..\..\inc;..\..\..\..\inc\user;\r
+\r
+C_DEFINES = $(C_DEFINES) /DHAVE_CONFIG_H\r
+\r
+TARGETLIBS = \\r
+ $(SDK_LIB_PATH)\kernel32.lib \\r
+ $(SDK_LIB_PATH)\ws2_32.lib \\r
+!if $(FREEBUILD)\r
+ $(TARGETPATH)\*\complib.lib \\r
+ $(TARGETPATH)\*\libibmad.lib \\r
+ $(TARGETPATH)\*\libibumad.lib\r
+!else\r
+ $(TARGETPATH)\*\complibd.lib \\r
+ $(TARGETPATH)\*\libibmadd.lib \\r
+ $(TARGETPATH)\*\libibumadd.lib \r
+!endif\r
+\r
+MSC_WARNING_LEVEL = /W3 /WX /wd4007\r
--- /dev/null
+#\r
+# DO NOT EDIT THIS FILE!!! Edit .\sources. if you want to add a new source\r
+# file to this component. This file merely indirects to the real make file\r
+# that is shared by all the driver components of the OpenIB Windows project.\r
+#\r
+\r
+!INCLUDE ..\..\..\..\inc\openib.def\r
--- /dev/null
+/*\r
+ * Copyright (c) 2009 Intel Corporation. All rights reserved.\r
+ *\r
+ * This software is available to you under the OpenIB.org BSD license\r
+ * below:\r
+ *\r
+ * Redistribution and use in source and binary forms, with or\r
+ * without modification, are permitted provided that the following\r
+ * conditions are met:\r
+ *\r
+ * - Redistributions of source code must retain the above\r
+ * copyright notice, this list of conditions and the following\r
+ * disclaimer.\r
+ *\r
+ * - Redistributions in binary form must reproduce the above\r
+ * copyright notice, this list of conditions and the following\r
+ * disclaimer in the documentation and/or other materials\r
+ * provided with the distribution.\r
+ *\r
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\r
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\r
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r
+ * SOFTWARE.\r
+ *\r
+ * $Id$\r
+ */\r
+\r
+\r
+#include <oib_ver.h>\r
+\r
+#define VER_FILETYPE VFT_APP\r
+#define VER_FILESUBTYPE VFT2_UNKNOWN\r
+\r
+#ifdef DBG\r
+#define VER_FILEDESCRIPTION_STR "Query IB SM Attributes (Debug)"\r
+#else\r
+#define VER_FILEDESCRIPTION_STR "Query IB SM Attributes"\r
+#endif\r
+\r
+#define VER_INTERNALNAME_STR "smpquery.exe"\r
+#define VER_ORIGINALFILENAME_STR "smpquery.exe"\r
+\r
+#include <common.ver>\r
#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
#include <getopt.h>
+#include <netinet/in.h>
#include <infiniband/umad.h>
#include <infiniband/mad.h>
return 0;
}
-int _CDECL main(int argc, char **argv)
+int main(int argc, char **argv)
{
int mgmt_classes[4] = {IB_SMI_CLASS, IB_SMI_DIRECT_CLASS, IB_SA_CLASS, IB_MLX_VENDOR_CLASS};
ib_portid_t portid = {0};
..\..\..\..\ulp\libibumad\include;\\r
..\..\..\..\inc;..\..\..\..\inc\user;\r
\r
-TARGETLIBS = \\r
+C_DEFINES = $(C_DEFINES) /DHAVE_CONFIG_H\r
+\r
+TARGETLIBS = \\r
$(SDK_LIB_PATH)\kernel32.lib \\r
- $(SDK_LIB_PATH)\ws2_32.lib \\r
+ $(SDK_LIB_PATH)\ws2_32.lib \\r
!if $(FREEBUILD)\r
$(TARGETPATH)\*\libibmad.lib \\r
$(TARGETPATH)\*\libibumad.lib \r
$(TARGETPATH)\*\libibumadd.lib \r
!endif\r
\r
+MSC_WARNING_LEVEL = /W3 /WX /wd4007\r